Class BTMaterialHistorySearch
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialHistorySearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialHistorySearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialHistorySearchEvent>
overit.geocallapp.wfm.core.bl.material.history.task.BTMaterialHistorySearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MaterialHistorySearchEvent.class)
public class BTMaterialHistorySearch
extends ValidPermissionBusinessTask<MaterialHistorySearchEvent>
Business task in order to search a
When the
BOMaterialHistory. When the
MaterialHistorySearchEvent is launched
the BT notices the call and searches the BOMaterialHistory basing on the event's input. - Since:
- 13.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(MaterialHistorySearchEvent event, PoolKit poolKit) Starting from the givenMaterialHistorySearchFilter, it searches the corresponding list ofBOMaterialHistoryand presents them as aPageResponsewhich is then written into the event journal.booleanChecks if the execution is valid.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTMaterialHistorySearch
public BTMaterialHistorySearch()
-
-
Method Details
-
execute
protected void execute(MaterialHistorySearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Starting from the givenMaterialHistorySearchFilter, it searches the corresponding list ofBOMaterialHistoryand presents them as aPageResponsewhich is then written into the event journal.- Specified by:
executein classValidExecutionBusinessTask<MaterialHistorySearchEvent>- Parameters:
event- theMaterialHistorySearchEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-