Class BTTechnicalObjectSearch
java.lang.Object
overit.geocall.bl.BusinessTask<TechnicalObjectSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TechnicalObjectSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TechnicalObjectSearchEvent>
overit.geocallapp.wfm.core.bl.technicalobject.task.BTTechnicalObjectSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TechnicalObjectSearchEvent.class)
public class BTTechnicalObjectSearch
extends ValidPermissionBusinessTask<TechnicalObjectSearchEvent>
Business task in order to search a
When the
The search is performed by filtering each one of the the technical object's components:
TechnicalObject. When the
TechnicalObjectSearchEvent is launched the BT notices the call and searches the TechnicalObject basing on the event's input. The search is performed by filtering each one of the the technical object's components:
TechnicalObjectHeaderSearchEventallows to filterBOTechnicalObjectHeaderAddressSearchEventallows to filterBOAddress
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(TechnicalObjectSearchEvent event, PoolKit poolKit) Writes the searched technical objects into the event journal.booleanDetermines whether the current state is valid for execution.protected PageResponse<BOAddress> loadAddresses(Set<Long> technicalObjectIds, PoolKit poolKit) Launches theAddressSearchEventin order to find the neededBOAddressprotected PageResponse<BOTechnicalObjectHeader> loadHeaders(TechnicalObjectSearchEvent event, PoolKit poolKit) Launches theTechnicalObjectHeaderSearchEventin order to find the neededBOTechnicalObjectHeaderMethods 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
-
BTTechnicalObjectSearch
public BTTechnicalObjectSearch()
-
-
Method Details
-
execute
protected void execute(TechnicalObjectSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the searched technical objects into the event journal.- Specified by:
executein classValidExecutionBusinessTask<TechnicalObjectSearchEvent>- Parameters:
event- theTechnicalObjectSearchEventpoolKit- 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
-
loadHeaders
protected PageResponse<BOTechnicalObjectHeader> loadHeaders(TechnicalObjectSearchEvent event, PoolKit poolKit) throws DAValidateException, DAException Launches theTechnicalObjectHeaderSearchEventin order to find the neededBOTechnicalObjectHeader- Parameters:
event- theTechnicalObjectSearchEventpoolKit- thePoolKit- Returns:
- the page response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadAddresses
protected PageResponse<BOAddress> loadAddresses(Set<Long> technicalObjectIds, PoolKit poolKit) throws DAValidateException, DAException Launches theAddressSearchEventin order to find the neededBOAddress- Parameters:
technicalObjectIds- the technical object idspoolKit- thePoolKit- Returns:
- the page response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-