Class BTTechnicalObjectLoadByAddress
java.lang.Object
overit.geocall.bl.BusinessTask<TechnicalObjectLoadByAddressEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TechnicalObjectLoadByAddressEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TechnicalObjectLoadByAddressEvent>
overit.geocallapp.wfm.core.bl.technicalobject.task.BTTechnicalObjectLoadByAddress
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TechnicalObjectLoadByAddressEvent.class)
public class BTTechnicalObjectLoadByAddress
extends ValidPermissionBusinessTask<TechnicalObjectLoadByAddressEvent>
Business task in order to load a
When the
The technical object is loaded by loading each one of the its components:
TechnicalObject. When the
TechnicalObjectLoadByAddressEvent is launched the BT notices the call and loads the TechnicalObject basing on the event's input. The technical object is loaded by loading each one of the its components:
TechnicalObjectHeaderLoadEventallows to loadBOTechnicalObjectHeaderAddressSearchEventallows to loadBOAddress
Required fields:
- Technical Object
Permission:
- 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(TechnicalObjectLoadByAddressEvent event, PoolKit poolKit) Writes the loaded technical object into the event journal.booleanDetermines whether the current state is valid for execution.protected BOAddressloadAddress(TechnicalObjectLoadByAddressEvent event, PoolKit poolKit) Loads theBOAddressstarting from aAddressSearchFilterprotected BOTechnicalObjectHeaderloadHeader(TechnicalObjectLoadByAddressEvent event, BOAddress address, PoolKit poolKit) Loads theBOTechnicalObjectHeaderMethods 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
-
BTTechnicalObjectLoadByAddress
public BTTechnicalObjectLoadByAddress()
-
-
Method Details
-
execute
protected void execute(TechnicalObjectLoadByAddressEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loaded technical object into the event journal.- Specified by:
executein classValidExecutionBusinessTask<TechnicalObjectLoadByAddressEvent>- Parameters:
event- theTechnicalObjectLoadByAddressEventpoolKit- 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
-
loadAddress
protected BOAddress loadAddress(TechnicalObjectLoadByAddressEvent event, PoolKit poolKit) throws DAValidateException, DAException Loads theBOAddressstarting from aAddressSearchFilter- Parameters:
event- the address load eventpoolKit- thePoolKit- Returns:
- the BO address
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadHeader
protected BOTechnicalObjectHeader loadHeader(TechnicalObjectLoadByAddressEvent event, BOAddress address, PoolKit poolKit) throws DAValidateException, DAException Loads theBOTechnicalObjectHeader- Parameters:
event- the technical object load by address eventaddress- the technical object addresspoolKit- thePoolKit- Returns:
- the BO technical object header
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-