Package com.avoka.fc.core.service.fluent
Class FluentVirusScanService
java.lang.Object
com.avoka.fc.core.service.fluent.AbstractFluentService
com.avoka.fc.core.service.fluent.FluentVirusScanService
- All Implemented Interfaces:
IFluentService
,IServiceDefinitionAware
,IUnitTestableService
,IVirusScanService
Provides a Fluent Virus Scan Service.
-
Field Summary
Fields inherited from interface com.avoka.fc.core.service.fluent.IFluentService
PARAM_ACTION_PROPERTIES, PARAMS_FILEDATA, PARAMS_FILENAME, PARAMS_FORM, PARAMS_FORM_XML, PARAMS_FUNC_PARAM, PARAMS_JOB, PARAMS_JOB_ACTION, PARAMS_PARAMS, PARAMS_REQUEST, PARAMS_ROWS, PARAMS_SVC_DEF, PARAMS_TEST_PARAMS, PARAMS_TXN, PARAMS_USER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isFileVirusFree
(String fileName, byte[] fileData) Scan the provided file and return true if virus free.Methods inherited from class com.avoka.fc.core.service.fluent.AbstractFluentService
createExceptionAndLog, getCause, getClient, getCommitChanges, getExecutionTimeout, getFunctionTrigger, getGroovyScript, getGroovyServiceLog, getLogger, getRequestUser, getServiceDefinition, getServiceNameAndVersion, getServiceTimeout, getSlf4jLogger, getTestLogOutput, invoke, isExceptionDebugLoggingEnabled, isGroovyDebugLogging, isGroovyLoggingEnabled, runUnitTest, setCommitChanges, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setLogger, setServiceDefinition
-
Constructor Details
-
FluentVirusScanService
public FluentVirusScanService()
-
-
Method Details
-
isFileVirusFree
Scan the provided file and return true if virus free.- Specified by:
isFileVirusFree
in interfaceIVirusScanService
- Parameters:
fileName
- the name of the file to scanfileData
- the file data- Returns:
- true if the file is virus free
- Throws:
VirusScanException
- if there occurs a virus scan service configuration error- See Also:
-
getErrorType
- Specified by:
getErrorType
in interfaceIFluentService
- Returns:
- the service error type to be used to classify the error logging records
-