Class BTTechnicalObjectLoad
java.lang.Object
overit.geocall.bl.BusinessTask<TechnicalObjectLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TechnicalObjectLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TechnicalObjectLoadEvent>
overit.geocallapp.wfm.core.bl.technicalobject.task.BTTechnicalObjectLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TechnicalObjectLoadEvent.class)
public class BTTechnicalObjectLoad
extends ValidPermissionBusinessTask<TechnicalObjectLoadEvent>
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
TechnicalObjectLoadEvent 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(TechnicalObjectLoadEvent event, PoolKit poolKit) Writes the loaded technical object into the event journal.booleanDetermines whether the current state is valid for execution.protected BOAddressloadAddress(TechnicalObjectLoadEvent event, PoolKit poolKit) Loads theBOAddressstarting from aAddressSearchFilterprotected BOTechnicalObjectHeaderloadHeader(TechnicalObjectLoadEvent event, 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
-
BTTechnicalObjectLoad
public BTTechnicalObjectLoad()
-
-
Method Details
-
execute
protected void execute(TechnicalObjectLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loaded technical object into the event journal.- Specified by:
executein classValidExecutionBusinessTask<TechnicalObjectLoadEvent>- Parameters:
event- theTechnicalObjectLoadEventpoolKit- 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
-
loadHeader
protected BOTechnicalObjectHeader loadHeader(TechnicalObjectLoadEvent event, PoolKit poolKit) throws DAValidateException, DAException Loads theBOTechnicalObjectHeader- Parameters:
event- the technical object's load eventpoolKit- thePoolKit- Returns:
- the BO technical object header
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadAddress
protected BOAddress loadAddress(TechnicalObjectLoadEvent 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
-