Class BTPlanningRequestCreate
java.lang.Object
overit.geocall.bl.BusinessTask<PlanningRequestCreateEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<PlanningRequestCreateEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<PlanningRequestCreateEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<PlanningRequestCreateEvent>
overit.geocallapp.wfm.cee.bl.intervention.task.BTPlanningRequestCreate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(PlanningRequestCreateEvent.class)
public class BTPlanningRequestCreate
extends BTCeeManagement<PlanningRequestCreateEvent>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(PlanningRequestCreateEvent event, PoolKit poolKit) protected HashGettergetAppointmentData(Long appointmentId, PoolKit pk) protected DTOCoordinategetCoordinate(HashGetter appointmentData) protected DTOPlanningRequestgetPlanningRequest(HashGetter appointmentData, List<DTOMessage> messages, PoolKit pk) protected DTOTechniciangetTechnician(HashGetter appointmentData) protected List<BOResourceLastGPSPosition> searchLastPositions(Long resourceId, PoolKit pk) Search the last positions starting from the given resource id.Methods inherited from class overit.geocallapp.wfm.cee.bl.task.BTCeeManagement
checkValidExecution, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask
getExceptionMethods inherited from class overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTPlanningRequestCreate
public BTPlanningRequestCreate()
-
-
Method Details
-
execute
protected void execute(PlanningRequestCreateEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<PlanningRequestCreateEvent>- Throws:
DAExceptionDAValidateException
-
getAppointmentData
protected HashGetter getAppointmentData(Long appointmentId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
searchLastPositions
protected List<BOResourceLastGPSPosition> searchLastPositions(Long resourceId, PoolKit pk) throws DAValidateException, DAException Search the last positions starting from the given resource id.- Parameters:
resourceId- the id of the resourcepk- thePoolKit- Returns:
- the list of the last positions of the technician
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getPlanningRequest
protected DTOPlanningRequest getPlanningRequest(HashGetter appointmentData, List<DTOMessage> messages, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getTechnician
-
getCoordinate
-