Class BTSchedulingResourceSearch
java.lang.Object
overit.geocall.bl.BusinessTask<SchedulingResourceSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SchedulingResourceSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<SchedulingResourceSearchEvent>
overit.geocallapp.wfm.core.bl.schedule.schedulingresource.task.BTSchedulingResourceSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(SchedulingResourceSearchEvent.class)
public class BTSchedulingResourceSearch
extends ValidPermissionBusinessTask<SchedulingResourceSearchEvent>
Business task in order to search a
When the
The scheduling resource is searched by filtering each one of the its components:
-
-
-
SchedulingResource. When the
SchedulingResourceSearchEvent is launched the BT notices the
call and searches the SchedulingResource basing on the event's input.
The scheduling resource is searched by filtering each one of the its components:
-
SchedulingUserLoadEvent allows to filter BOSchedulingUser
-
ResourceAddressSearchEvent allows to filter
BOResourceAddress -
OperationCenterResourceAddressSearchEvent allows to filter
BOOperationCenterAddress Permission:
The fake resources are excluded in the research.
Visibility:
- the operation center addresses are filtered by the same operation center
- Since:
- 9.2
- 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 PageResponse<SchedulingResource> buildSchedulingResourceList(PageResponse<BOSchedulingUser> resources, int pageNumber, PoolKit pk) Builds theBOSchedulingUserlist.protected voidexecute(SchedulingResourceSearchEvent event, PoolKit pk) Writes the searched scheduling resource into the event journal.booleanDetermines whether the current state is valid for execution.protected List<BOOperationCenterResourceAddress> loadOperationCenterAddresses(BOSchedulingUser resource, PoolKit pk) Loads the list ofBOOperationCenterResourceAddressprotected List<BOResourceAddress> loadResourceAddresses(BOSchedulingUser resource, PoolKit pk) Loads the list ofBOResourceAddress.protected PageResponse<BOSchedulingUser> searchSchedulingResources(Page page, SchedulingResourceSearchFilter filter, PoolKit pk) Searches scheduling resources.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
-
BTSchedulingResourceSearch
public BTSchedulingResourceSearch()
-
-
Method Details
-
execute
protected void execute(SchedulingResourceSearchEvent event, PoolKit pk) throws DAException, DAValidateException Writes the searched scheduling resource into the event journal.- Specified by:
executein classValidExecutionBusinessTask<SchedulingResourceSearchEvent>- Parameters:
event- theSchedulingResourceSearchEventpk- thePoolKit- 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
-
searchSchedulingResources
protected PageResponse<BOSchedulingUser> searchSchedulingResources(Page page, SchedulingResourceSearchFilter filter, PoolKit pk) throws DAException, DAValidateException Searches scheduling resources.- Parameters:
page- thePagefilter- theSchedulingResourceSearchFilterpk- the pool kit- Returns:
- the DB view
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
buildSchedulingResourceList
protected PageResponse<SchedulingResource> buildSchedulingResourceList(PageResponse<BOSchedulingUser> resources, int pageNumber, PoolKit pk) throws DAValidateException, DAException Builds theBOSchedulingUserlist.- Parameters:
resources- the resourcespageNumber- the page numberpk- the pool kit- Returns:
- the page response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadResourceAddresses
protected List<BOResourceAddress> loadResourceAddresses(BOSchedulingUser resource, PoolKit pk) throws DAValidateException, DAException Loads the list ofBOResourceAddress.- Parameters:
resource- the resourcepk- thePoolKit- Returns:
- a list of BO resource address elements of type BOResourceAddress
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-
loadOperationCenterAddresses
protected List<BOOperationCenterResourceAddress> loadOperationCenterAddresses(BOSchedulingUser resource, PoolKit pk) throws DAValidateException, DAException Loads the list ofBOOperationCenterResourceAddress- Parameters:
resource- the resourcepk- thePoolKit- Returns:
- a list of BO operation center resource address elements of type BOOperationCenterResourceAddress
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-