Class BTExistingResourceWorkShiftSearch
java.lang.Object
overit.geocall.bl.BusinessTask<ExistingResourceWorkShiftSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ExistingResourceWorkShiftSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ExistingResourceWorkShiftSearchEvent>
overit.geocallapp.wfm.calendars.bl.workshift.task.BTExistingResourceWorkShiftSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ExistingResourceWorkShiftSearchEvent.class)
public class BTExistingResourceWorkShiftSearch
extends ValidPermissionBusinessTask<ExistingResourceWorkShiftSearchEvent>
Business task in order to search for existing
When the
BOWorkShifts,
related to a given resource for a certain day. When the
ExistingResourceWorkShiftSearchEvent is launched the BT notices the call and
searches the list of existing BOWorkShift basing on the event's input. - Since:
- 17.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(ExistingResourceWorkShiftSearchEvent event, PoolKit poolKit) Writes the searchedBOWorkShifts into the event journal.protected List<BOWorkShift> Extracts the list of the existingBOWorkShiftobjects.booleanDetermines whether the current state is valid for execution.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
-
BTExistingResourceWorkShiftSearch
public BTExistingResourceWorkShiftSearch()
-
-
Method Details
-
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
-
execute
protected void execute(ExistingResourceWorkShiftSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the searchedBOWorkShifts into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ExistingResourceWorkShiftSearchEvent>- Parameters:
event- theExistingResourceWorkShiftSearchEventpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
existingResourceWorkShift
protected List<BOWorkShift> existingResourceWorkShift(Long resourceID, Map<String, Object> filter, PoolKit poolKit) throws DAException, DAValidateExceptionExtracts the list of the existingBOWorkShiftobjects.- Parameters:
resourceID- the ID of the resource to which the existingBOWorkShiftare relatedfilter- the query filterspoolKit- thePoolKit- Returns:
- the list of the existing work shifts related to a given resource for a certain da
- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-