Class BTSchedulingResourceLoad
java.lang.Object
overit.geocall.bl.BusinessTask<SchedulingResourceLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SchedulingResourceLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<SchedulingResourceLoadEvent>
overit.geocallapp.wfm.core.bl.schedule.schedulingresource.task.BTSchedulingResourceLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(SchedulingResourceLoadEvent.class)
public class BTSchedulingResourceLoad
extends ValidPermissionBusinessTask<SchedulingResourceLoadEvent>
Business task in order to load a
When the
The scheduling resource is loaded by loading each one of the its components:
-
-
-
SchedulingResource. When the
SchedulingResourceLoadEvent is launched the BT notices the
call and loads the SchedulingResource basing on the event's input.
The scheduling resource is loaded by loading each one of the its components:
-
SchedulingUserLoadEvent allows to load BOSchedulingUser
-
ResourceAddressSearchEvent allows to load BOResourceAddress
-
OperationCenterResourceAddressSearchEvent allows to load
BOOperationCenterAddress Required fields:
- Scheduling Resource ID
Permission:
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 voidexecute(SchedulingResourceLoadEvent event, PoolKit pk) Writes the loaded scheduling resource into the event journal.booleanDetermines whether the current state is valid for execution.protected List<BOOperationCenterResourceAddress> Loads theBOOperationCenterAddressprotected List<BOResourceAddress> loadResourceAddresses(BOSchedulingUser user, PoolKit pk) Loads theBOResourceAddress.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
-
BTSchedulingResourceLoad
public BTSchedulingResourceLoad()
-
-
Method Details
-
execute
protected void execute(SchedulingResourceLoadEvent event, PoolKit pk) throws DAException, DAValidateException Writes the loaded scheduling resource into the event journal.- Specified by:
executein classValidExecutionBusinessTask<SchedulingResourceLoadEvent>- Parameters:
event- theSchedulingResourceLoadEventpk- 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
-
loadResourceAddresses
protected List<BOResourceAddress> loadResourceAddresses(BOSchedulingUser user, PoolKit pk) throws DAValidateException, DAException Loads theBOResourceAddress.- Parameters:
user- the userpk- the pool kit- 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 user, PoolKit pk) throws DAValidateException, DAException Loads theBOOperationCenterAddress- Parameters:
user- the userpk- the pool kit- Returns:
- a list of BO operation center resource address elements of type BOOperationCenterResourceAddress
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-