Class BTAddressUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<AddressUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AddressUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AddressUpdateEvent>
overit.geocallapp.wfm.core.bl.location.address.task.BTAddressUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AddressUpdateEvent.class)
public class BTAddressUpdate
extends ValidPermissionBusinessTask<AddressUpdateEvent>
Business task in order to update a
When the
BOAddress. When the
AddressUpdateEvent is launched the BT notices the call and
updates the BOAddress basing on the event's input. Required fields:
- address id
Permission:
- NONE
Visibility:
- all the address that are associated to the same user's 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(AddressUpdateEvent event, PoolKit pk) Updates a newBOAddresswith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidnotifyAddressUpdate(BOAddress oldAddress, BOAddress address, PoolKit pk) Notifies the system about an address update, handling different notification types based on whether a technical object association has been created.protected voidvalidateAddress(BOAddress address, PoolKit pk) 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
-
BTAddressUpdate
public BTAddressUpdate()
-
-
Method Details
-
execute
protected void execute(AddressUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates a newBOAddresswith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<AddressUpdateEvent>- Parameters:
event- theAddressUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateAddress
protected void validateAddress(BOAddress address, PoolKit pk) 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
-
notifyAddressUpdate
protected void notifyAddressUpdate(BOAddress oldAddress, BOAddress address, PoolKit pk) throws DAException, DAValidateException Notifies the system about an address update, handling different notification types based on whether a technical object association has been created.- Parameters:
oldAddress- the previous state of the address before updateaddress- the current state of the address after updatepk- thePoolKitto use for database operations- Throws:
DAException- if a data access error occursDAValidateException- if validation fails- Since:
- 21.0
-