Class AbstractCheckableBusinessTask<I,O>
java.lang.Object
overit.geocall.bl.BusinessTask<CheckableEvent<I,O>>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask<I,O>
- Type Parameters:
I- the generic typeO- the generic type
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTDaySchedulingsValidate,ValidExecutionAbstractCheckableBusinessTask
The Class that defines the abstract checkable business task.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(CheckableEvent<I, O> event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected CheckResultbuildOutputCheckResult(CheckResult inputCheckResult, CheckResult checkResult) protected abstract List<CheckerEvent<?>> defineCheckerEvents(I input, PoolKit poolKit) protected abstract OexecuteProcess(I input, PoolKit poolKit) protected CheckResultlaunchCheckerEvents(List<CheckerEvent<?>> checkerEvents, PoolKit poolKit) protected voidthrowExceptionIfNecessary(CheckResult checkResult, boolean throwExceptionOnErrors) protected voidvalidate(CheckResult inputCheckResult, boolean skipUserConfirms, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
AbstractCheckableBusinessTask
public AbstractCheckableBusinessTask()
-
-
Method Details
-
body
protected void body(CheckableEvent<I, O> event, PoolKit poolKit) throws DAException, DAValidateExceptionDescription copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<CheckableEvent<I,O>> - Parameters:
event- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
validate
protected void validate(CheckResult inputCheckResult, boolean skipUserConfirms, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
defineCheckerEvents
protected abstract List<CheckerEvent<?>> defineCheckerEvents(I input, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
launchCheckerEvents
protected CheckResult launchCheckerEvents(List<CheckerEvent<?>> checkerEvents, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
buildOutputCheckResult
-
throwExceptionIfNecessary
protected void throwExceptionIfNecessary(CheckResult checkResult, boolean throwExceptionOnErrors) throws DAValidateException - Throws:
DAValidateException
-
executeProcess
protected abstract O executeProcess(I input, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-