Class BTCrewShellTypeSearch
java.lang.Object
overit.geocall.bl.BusinessTask<CrewShellTypeSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CrewShellTypeSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CrewShellTypeSearchEvent>
overit.geocallapp.wfm.crewshell.bl.type.task.BTCrewShellTypeSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CrewShellTypeSearchEvent.class)
public class BTCrewShellTypeSearch
extends ValidPermissionBusinessTask<CrewShellTypeSearchEvent>
Business task in order to search a
When the
BOCrewShellType. When the
CrewShellTypeSearchEvent is launched the BT notices the call and searches the BOCrewShellType basing on the event's input. - Since:
- 18.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(CrewShellTypeSearchEvent event, PoolKit poolKit) Writes thePageResponseof the searched crew shell type into the event journal.booleanDetermines whether the current state is valid for execution.protected PageResponse<BOCrewShellType> searchCrewShellType(Page page, CrewShellTypeSearchFilter searchFilter, PoolKit pk) Searches for the needed crew shell type using the information contained into the givenCrewShellTypeSearchEventMethods 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
-
BTCrewShellTypeSearch
public BTCrewShellTypeSearch()
-
-
Method Details
-
execute
protected void execute(CrewShellTypeSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes thePageResponseof the searched crew shell type into the event journal.- Specified by:
executein classValidExecutionBusinessTask<CrewShellTypeSearchEvent>- Parameters:
event- theCrewShellTypeSearchEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
searchCrewShellType
protected PageResponse<BOCrewShellType> searchCrewShellType(Page page, CrewShellTypeSearchFilter searchFilter, PoolKit pk) throws DAException, DAValidateException Searches for the needed crew shell type using the information contained into the givenCrewShellTypeSearchEvent- Parameters:
page- thePagewith the needed pagination informationsearchFilter- theCrewShellTypeSearchFilterpk- thePoolKit- Returns:
- the
PageResponsecontaining the paginated results - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
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
-