Class BTCustomerSearch
java.lang.Object
overit.geocall.bl.BusinessTask<CustomerSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CustomerSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CustomerSearchEvent>
overit.geocallapp.wfm.core.bl.technicalobject.task.BTCustomerSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CustomerSearchEvent.class)
public class BTCustomerSearch
extends ValidPermissionBusinessTask<CustomerSearchEvent>
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
CustomerSearchEvent 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
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(CustomerSearchEvent 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(CustomerSearchEvent 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
-
BTCustomerSearch
public BTCustomerSearch()
-
-
Method Details
-
execute
protected void execute(CustomerSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the searched technical objects into the event journal.- Specified by:
executein classValidExecutionBusinessTask<CustomerSearchEvent>- Parameters:
event- the eventpoolKit- the pool kit- 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(CustomerSearchEvent event, PoolKit poolKit) throws DAValidateException, DAException Launches theTechnicalObjectHeaderSearchEventin order to find the neededBOTechnicalObjectHeader- Parameters:
event- the eventpoolKit- the pool kit- 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- the pool kit- Returns:
- the page response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-