Class BTWorkOrderNoteSearch
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderNoteSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkOrderNoteSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkOrderNoteSearchEvent>
overit.geocallapp.wfm.workorders.bl.note.task.BTWorkOrderNoteSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkOrderNoteSearchEvent.class)
public class BTWorkOrderNoteSearch
extends ValidPermissionBusinessTask<WorkOrderNoteSearchEvent>
Business task in order to search a
When the
Requires at least one filter criterion (workOrder, operation, or id) to be provided.
BOWorkOrderNote. When the
WorkOrderNoteSearchEvent is launched the BT notices the call and
searches the BOWorkOrderNote basing on the event's input. Requires at least one filter criterion (workOrder, operation, or id) to be provided.
- Since:
- 22.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(WorkOrderNoteSearchEvent event, PoolKit poolKit) Searches for work order notes based on the provided filter criteria.booleanDetermines whether the current state is valid for execution.protected voidvalidate(WorkOrderNoteSearchFilter workOrderNoteFilter, PoolKit poolKit) Validates that at least one filter criterion is provided and non-empty.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
-
BTWorkOrderNoteSearch
public BTWorkOrderNoteSearch()
-
-
Method Details
-
execute
protected void execute(WorkOrderNoteSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Searches for work order notes based on the provided filter criteria.- Specified by:
executein classValidExecutionBusinessTask<WorkOrderNoteSearchEvent>- Parameters:
event- theWorkOrderNoteSearchEventpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
validate
protected void validate(WorkOrderNoteSearchFilter workOrderNoteFilter, PoolKit poolKit) throws DAException, DAValidateException Validates that at least one filter criterion is provided and non-empty.- Parameters:
workOrderNoteFilter- the filter containing search criteriapoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-