Class BTInterventionsLoad
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionsLoadEvent>
overit.geocallapp.wfm.core.ux.schedule.intervention.outcome.task.BTInterventionsLoad
- All Implemented Interfaces:
Serializable,Tool
@Event(InterventionsLoadEvent.class)
public class BTInterventionsLoad
extends BusinessTask<InterventionsLoadEvent>
Business task to load a
List of Intervention
according to the InterventionsLoadEvent specifications.- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(InterventionsLoadEvent event, PoolKit poolKit) Load the requiredInterventionsprotected InterventionloadInterventionByAgenda(Long agenda, PoolKit poolKit) Load a singleInterventionstarting from an agenda idprotected InterventionloadInterventionByScheduling(Long scheduling, PoolKit poolKit) Load a singleInterventionstarting from a scheduling idprotected voidloadLinkedInterventions(Intervention intervention, List<Intervention> interventions, PoolKit poolKit) Retrieve theInterventions linked to the given oneMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
daoIntervention
-
daoInterventionScheduled
-
-
Constructor Details
-
BTInterventionsLoad
public BTInterventionsLoad()
-
-
Method Details
-
body
protected void body(InterventionsLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Load the requiredInterventions- Specified by:
bodyin classBusinessTask<InterventionsLoadEvent>- Parameters:
event- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
loadInterventionByScheduling
protected Intervention loadInterventionByScheduling(Long scheduling, PoolKit poolKit) throws DAValidateException, DAException Load a singleInterventionstarting from a scheduling id- Parameters:
scheduling- the scheduling for which retrieve theInterventionpoolKit- thePoolKitto keep the current transaction- Returns:
- the loaded
Intervention - Throws:
DAValidateException- if something went wrongDAException- if something went wrong
-
loadInterventionByAgenda
protected Intervention loadInterventionByAgenda(Long agenda, PoolKit poolKit) throws DAValidateException, DAException Load a singleInterventionstarting from an agenda id- Parameters:
agenda- the agenda for which load theInterventionpoolKit- thePoolKitto keep the current transaction- Returns:
- the loaded
Intervention - Throws:
DAValidateException- if something went wrongDAException- if something went wrong
-
loadLinkedInterventions
protected void loadLinkedInterventions(Intervention intervention, List<Intervention> interventions, PoolKit poolKit) throws DAValidateException, DAException Retrieve theInterventions linked to the given one- Parameters:
intervention- the target interventioninterventions- aListin which put the loadedInterventionspoolKit- thePoolKitto keep the current transaction- Throws:
DAValidateException- if something went wrongDAException- if something went wrong
-