Class BTTakeInCharge
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionOutcomeNotificationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<InterventionOutcomeNotificationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<InterventionOutcomeNotificationEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<InterventionOutcomeNotificationEvent>
overit.geocallapp.wfm.cee.bl.task.BTTakeInCharge
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(InterventionOutcomeNotificationEvent.class)
public class BTTakeInCharge
extends BTCeeManagement<InterventionOutcomeNotificationEvent>
Business task for planning action notification to Cee application
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CeeHelperprotected DAOPlannedInterventionprotected RestClientHelperprotected static final LogChannel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DTOInChargeRequestbuildRequestDTO(Date takeInChargeDate, HashGetter interventionValues, List<DTOMessage> messages) protected voidexecute(InterventionOutcomeNotificationEvent event, PoolKit poolKit) protected DTOTechniciangetTechnician(Date takeInChargeDate, HashGetter interventionValues) protected DTOCoordinategetTechnicianCoordinate(HashGetter interventionValues) protected HashGetterloadPlannedInterventionValues(Long agendaId, PoolKit pk) protected voidnotifyInterventionTakeInCharge(BOInterventionOutcome input, InterventionApi api, PoolKit pk) 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
-
Field Details
-
LOG
-
ceeHelper
-
helper
-
daoPlannedIntervention
-
-
Constructor Details
-
BTTakeInCharge
public BTTakeInCharge()
-
-
Method Details
-
execute
protected void execute(InterventionOutcomeNotificationEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<InterventionOutcomeNotificationEvent>- Throws:
DAExceptionDAValidateException
-
notifyInterventionTakeInCharge
protected void notifyInterventionTakeInCharge(BOInterventionOutcome input, InterventionApi api, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadPlannedInterventionValues
protected HashGetter loadPlannedInterventionValues(Long agendaId, 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
-
buildRequestDTO
protected DTOInChargeRequest buildRequestDTO(Date takeInChargeDate, HashGetter interventionValues, List<DTOMessage> messages) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getTechnician
-
getTechnicianCoordinate
-