Class BTInterventionSearch
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionSearchEvent>
overit.geocallapp.wfm.core.bl.schedule.intervention.task.BTInterventionSearch
- All Implemented Interfaces:
Serializable,Tool
@Event(InterventionSearchEvent.class)
public class BTInterventionSearch
extends BusinessTask<InterventionSearchEvent>
Business task in order to search a
When the
Intervention. When the
InterventionSearchEvent is launched
the BT notices the call and searches the Intervention basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(InterventionSearchEvent event, PoolKit poolKit) Writes the loaded intervention into the event journal.protected List<Intervention> buildInterventions(DBView interventionsData) protected DBViewLoad interventions.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTInterventionSearch
public BTInterventionSearch()
-
-
Method Details
-
body
protected void body(InterventionSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loaded intervention into the event journal.- Specified by:
bodyin classBusinessTask<InterventionSearchEvent>- Parameters:
event- theInterventionSearchEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadInterventions
protected DBView loadInterventions(Map<String, Object> filter, Page page, PoolKit poolKit) throws DAException, DAValidateExceptionLoad interventions.- Parameters:
filter- the filterpoolKit- thePoolKit- Returns:
- a list of intervention elements of type Intervention
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-
buildInterventions
protected List<Intervention> buildInterventions(DBView interventionsData) throws DAValidateException - Throws:
DAValidateException
-