Class BTResourceAddressSearch
java.lang.Object
overit.geocall.bl.BusinessTask<ResourceAddressSearchEvent>
overit.geocallapp.wfm.core.bl.schedule.schedulingresource.resourceaddress.task.BTResourceAddressSearch
- All Implemented Interfaces:
Serializable,Tool
@Event(ResourceAddressSearchEvent.class)
public class BTResourceAddressSearch
extends BusinessTask<ResourceAddressSearchEvent>
Business task in order to search a
When the
BOResourceAddress. When the
ResourceAddressSearchEvent is launched
the BT notices the call and searches the BOResourceAddress basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(ResourceAddressSearchEvent event, PoolKit poolKit) Writes the searched resource addresses into the event journal.protected PageResponse<BOResourceAddress> buildResponseWithAddress(DBView dbv, Page page, PoolKit poolKit) Builds the paginated address data.protected voidloadAddressData(BOResourceAddress resourceAddress, Long addressId, PoolKit poolKit) Loads address data.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
daoAddresses
-
-
Constructor Details
-
BTResourceAddressSearch
public BTResourceAddressSearch()
-
-
Method Details
-
body
protected void body(ResourceAddressSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the searched resource addresses into the event journal.- Specified by:
bodyin classBusinessTask<ResourceAddressSearchEvent>- Parameters:
event- theResourceAddressSearchEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
buildResponseWithAddress
protected PageResponse<BOResourceAddress> buildResponseWithAddress(DBView dbv, Page page, PoolKit poolKit) throws DAException, DAValidateException Builds the paginated address data.- Parameters:
dbv- the resources addressespage- the pagepoolKit- the pool kit- Returns:
- the page response
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadAddressData
protected void loadAddressData(BOResourceAddress resourceAddress, Long addressId, PoolKit poolKit) throws DAException, DAValidateException Loads address data.- Parameters:
resourceAddress- the resource addressaddressId- the address idpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-