Package com.avoka.fc.core.service.fluent
Class FluentTransactionHistoryPublisher
- java.lang.Object
-
- com.avoka.fc.core.service.fluent.AbstractFluentService
-
- com.avoka.fc.core.service.fluent.FluentTransactionHistoryPublisher
-
- All Implemented Interfaces:
IFluentService
,IServiceDefinitionAware
,ITransactionHistoryPublisher
,IUnitTestableService
public class FluentTransactionHistoryPublisher extends AbstractFluentService implements ITransactionHistoryPublisher
Provides a Fluent API Groovy script Transaction History publish service.- Since:
- 5.1.0
-
-
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
Constructors Constructor Description FluentTransactionHistoryPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorType()
int
getFetchLimit()
Return the fetch limit to limit the maximum number of published records.List<Number>
publish(List<Map<String,Object>> rows)
Perform transaction history publishing.void
setFetchLimit(int fetchLimit)
Set the fetch limit to limit the maximum number of published records.-
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
-
-
-
-
Method Detail
-
publish
public List<Number> publish(List<Map<String,Object>> rows)
Perform transaction history publishing.- Specified by:
publish
in interfaceITransactionHistoryPublisher
- Parameters:
rows
- list of rows to publish- Returns:
- list of id-s of the published records
- See Also:
ITransactionHistoryPublisher.publish(List)
-
getErrorType
public String getErrorType()
- Specified by:
getErrorType
in interfaceIFluentService
- Returns:
- the service error type to be used to classify the error logging records
-
getFetchLimit
public int getFetchLimit()
Return the fetch limit to limit the maximum number of published records.- Specified by:
getFetchLimit
in interfaceITransactionHistoryPublisher
- Returns:
- the fetch limit to limit the maximum number of published records
-
setFetchLimit
public void setFetchLimit(int fetchLimit)
Set the fetch limit to limit the maximum number of published records.- Parameters:
fetchLimit
- the fetch limit to limit the maximum number of published records
-
-