Class BTTechnicianCoordinatesUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<TechnicianCoordinatesUpdateEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<TechnicianCoordinatesUpdateEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<TechnicianCoordinatesUpdateEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<TechnicianCoordinatesUpdateEvent>
overit.geocallapp.wfm.cee.bl.intervention.task.BTTechnicianCoordinatesUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TechnicianCoordinatesUpdateEvent.class)
public class BTTechnicianCoordinatesUpdate
extends BTCeeManagement<TechnicianCoordinatesUpdateEvent>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(TechnicianCoordinatesUpdateEvent event, PoolKit poolKit) protected voidprotected DTOCoordinategetCoordinates(HashMap<String, Object> interventionData) protected DTOTechniciangetTechnician(HashMap<String, Object> interventionData) protected intprotected Stringprotected intprotected voidprotected DBViewprotected List<BOResourceLastGPSPosition> searchLastPositions(Long resourceId, PoolKit pk) Search the last positions starting from the given resource id.protected voidupdateValidInterventionsCoordinates(DBView interventions, PoolKit pk) 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
-
Field Details
-
helper
-
ceeHelper
-
timeSlot
-
-
Constructor Details
-
BTTechnicianCoordinatesUpdate
public BTTechnicianCoordinatesUpdate()
-
-
Method Details
-
execute
protected void execute(TechnicianCoordinatesUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<TechnicianCoordinatesUpdateEvent>- Throws:
DAExceptionDAValidateException
-
loadValidInterventions
- Throws:
DAValidateExceptionDAException
-
prepareFilter
-
getUpdatePeriod
protected int getUpdatePeriod() -
updateValidInterventionsCoordinates
protected void updateValidInterventionsCoordinates(DBView interventions, 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
-
getTechnician
-
getCoordinates
-
getTimeSlotName
-
getTimeSlotDuration
protected int getTimeSlotDuration() -
freeTimeSlot
- Throws:
DAExceptionDAValidateException
-
initTimeSlot
- Throws:
DAExceptionDAValidateException
-