Class BTPlanningActionNotification
java.lang.Object
overit.geocall.bl.BusinessTask<PlanningActionNotificationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<PlanningActionNotificationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<PlanningActionNotificationEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<PlanningActionNotificationEvent>
overit.geocallapp.wfm.cee.bl.task.BTPlanningActionNotification
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(PlanningActionNotificationEvent.class)
public class BTPlanningActionNotification
extends BTCeeManagement<PlanningActionNotificationEvent>
Business task for planning action notification to Cee application
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CeeHelperprotected RestClientHelperprotected static final LogChannel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcancelAppointment(Long interventionId, DTOInterventionStatusChange interventionStatusChange) protected voidchangeAppointment(Long interventionId, DTOPlanningRequest planningRequest) protected voidcreateAppointment(Long interventionId, DTOPlanningRequest planningRequest) protected voidexecute(PlanningActionNotificationEvent event, PoolKit poolKit) getAppointmentIdsFromPlanningAction(PlanningAction action, PoolKit pk) protected LonggetCeeInterventionId(Long appointmentId, PoolKit poolKit) protected DTOInterventionStatusChangegetInterventionStatusChange(List<DTOMessage> messages) protected DTOPlanningRequestgetPlanningRequest(Long appointmentId, List<DTOMessage> messages, PoolKit pk) protected voidinterventionPlannedOrChanged(Long ceeInterventionEventType, Long appointmentId, Long interventionId, List<DTOMessage> messages, PoolKit poolKit) protected voidnotifyInsert(BOAppointment appointment, PoolKit poolKit) 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
-
-
Constructor Details
-
BTPlanningActionNotification
public BTPlanningActionNotification()
-
-
Method Details
-
execute
protected void execute(PlanningActionNotificationEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<PlanningActionNotificationEvent>- Throws:
DAExceptionDAValidateException
-
getCeeInterventionId
protected Long getCeeInterventionId(Long appointmentId, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
notifyInsert
protected void notifyInsert(BOAppointment appointment, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
interventionPlannedOrChanged
protected void interventionPlannedOrChanged(Long ceeInterventionEventType, Long appointmentId, Long interventionId, List<DTOMessage> messages, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getCEEInterventionEventFromActionId
-
getAppointmentIdsFromPlanningAction
protected List<Long> getAppointmentIdsFromPlanningAction(PlanningAction action, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getPlanningRequest
protected DTOPlanningRequest getPlanningRequest(Long appointmentId, List<DTOMessage> messages, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
createAppointment
protected void createAppointment(Long interventionId, DTOPlanningRequest planningRequest) throws DAValidateException - Throws:
DAValidateException
-
changeAppointment
protected void changeAppointment(Long interventionId, DTOPlanningRequest planningRequest) throws DAValidateException - Throws:
DAValidateException
-
getInterventionStatusChange
-
cancelAppointment
protected void cancelAppointment(Long interventionId, DTOInterventionStatusChange interventionStatusChange) throws DAValidateException - Throws:
DAValidateException
-
getInterventionPlannedActionIds
-
getPlanningCancelledActionIds
-
getPlanningChangedActionIds
-