Class BTResourceAddressUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<ResourceAddressUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ResourceAddressUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ResourceAddressUpdateEvent>
overit.geocallapp.wfm.resources.bl.resource.address.task.BTResourceAddressUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ResourceAddressUpdateEvent.class)
public class BTResourceAddressUpdate
extends ValidPermissionBusinessTask<ResourceAddressUpdateEvent>
Business task in order to update a
When the
BOResourceAddress. When the
ResourceAddressUpdateEvent is launched the BT notices the
call and updates the BOResourceAddress basing on the event's input.
Permission:
Error Code:
- Since:
- 16.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 voidcheckIsPresent(BOResourceAddress resourceAddress, PoolKit poolKit) protected voidexecute(ResourceAddressUpdateEvent event, PoolKit pk) Writes the updated resource address id into the event journal.booleanDetermines whether the current state is valid for execution.protected voidupdateResourceAddress(BOResourceAddress resourceAddress, PoolKit pk) protected voidvalidate(BOResourceAddress resourceAddress, PoolKit poolKit) 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
-
BTResourceAddressUpdate
public BTResourceAddressUpdate()
-
-
Method Details
-
execute
protected void execute(ResourceAddressUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Writes the updated resource address id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ResourceAddressUpdateEvent>- Parameters:
event- theResourceAddressUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOResourceAddress resourceAddress, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateResourceAddress
protected void updateResourceAddress(BOResourceAddress resourceAddress, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkIsPresent
protected void checkIsPresent(BOResourceAddress resourceAddress, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
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
-