Class BTCrewShellCompositionConfirm
java.lang.Object
overit.geocall.bl.BusinessTask<CheckableEvent<CrewShellCompositionConfirmInput,Void>>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask<CrewShellCompositionConfirmInput,Void>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask<CrewShellCompositionConfirmInput,Void>
overit.geocallapp.wfm.core.bl.crewshell.task.BTCrewShellCheckable<CrewShellCompositionConfirmInput,Void>
overit.geocallapp.wfm.core.bl.crewshell.composition.task.BTCrewShellCompositionConfirm
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CrewShellCompositionConfirmEvent.class)
public class BTCrewShellCompositionConfirm
extends BTCrewShellCheckable<CrewShellCompositionConfirmInput,Void>
Business task to confirm a
When the
BOCrewShellComposition object. When the
CrewShellCompositionConfirmEvent event is launched the BT notices the
call and confirm the BOCrewShellComposition object basing on the event's input. - Since:
- 16.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidalignSchedulingsAfterEmptyingComposition(BOWorkShift crewShellWorkshift, BOCrewShell crewShell, PoolKit pk) protected voidcancelClosedActivities(Long crewShellWorkshift, PoolKit poolKit) protected voidcheckWorkshiftIsDefined(BOWorkShift workshift, boolean emptyComposition, BOCrewShell crewShell, Date day) protected voidcleanSchedulingForemanLinks(BOScheduling scheduling, PoolKit pk) protected List<CheckerEvent<?>> defineCheckerEvents(CrewShellCompositionConfirmInput input, PoolKit poolKit) Defines the checker events.protected List<BOCrewShellComposition> deletePreviousComposition(Long crewShell, Date day, PoolKit pk) protected voiddeleteSchedulings(List<BOCrewShellComposition> oldComposition, Date day, Long crewShell, PoolKit poolKit) protected voiddisableCrewShellWorkshifts(List<BOCrewShellComposition> oldComposition, List<BOCrewShellComposition> newComposition, Date day, PoolKit poolKit) protected VoidexecuteProcess(CrewShellCompositionConfirmInput input, PoolKit poolKit) protected BOCrewShellgetCrewShell(Long crewShell, PoolKit pk) protected BOCrewShellgetCrewShellById(Long crewShellId, PoolKit poolKit) protected List<BOCrewShellDraftComposition> getCrewShellResources(Long crewShell, Date day, PoolKit pk) protected BOWorkShiftgetCrewShellWorkShift(Long crewShellId, Date day, PoolKit poolKit) protected List<BOCrewShellComposition> insertConfirmedComposition(Long crewShell, Date day, List<BOCrewShellDraftComposition> draftTechnicians, PoolKit pk) protected voidinsertCrewShellWorkshifts(BOWorkShift crewShellWorkshift, Long crewShellId, Date day, PoolKit pk) booleanChecks if is valid execution.protected voidlaunchAgendaTeamResourcesAlign(Long agendaId, PoolKit pk) protected booleantransferAgendaToFictitiousResource(Long agendaId, BOCrewShell crewShell, Long scheduling, PoolKit pk) protected voidtransferSchedulings(Long crewShell, Date day, List<BOCrewShellComposition> oldComposition, PoolKit poolKit) protected voidupdateCompositionMismatch(Long crewShell, Date day, PoolKit pk) protected voidvalidate(BOCrewShell crewShell, Date day, List<BOCrewShellDraftComposition> draftTechnicians, PoolKit poolKit) Methods inherited from class overit.geocallapp.wfm.core.bl.crewshell.task.BTCrewShellCheckable
getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask
body, checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask
buildOutputCheckResult, launchCheckerEvents, throwExceptionIfNecessary, validateMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTCrewShellCompositionConfirm
public BTCrewShellCompositionConfirm()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Description copied from class:BTCrewShellCheckableChecks if is valid execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTCrewShellCheckable<CrewShellCompositionConfirmInput,Void> - Returns:
- true, if is valid execution
-
defineCheckerEvents
protected List<CheckerEvent<?>> defineCheckerEvents(CrewShellCompositionConfirmInput input, PoolKit poolKit) throws DAException, DAValidateException Defines the checker events.- Specified by:
defineCheckerEventsin classAbstractCheckableBusinessTask<CrewShellCompositionConfirmInput,Void> - Parameters:
input- theCrewShellCompositionConfirmEventpoolKit- thePoolKit- Returns:
- a list of checker event elements of type CheckerEvent
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-
executeProcess
protected Void executeProcess(CrewShellCompositionConfirmInput input, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executeProcessin classAbstractCheckableBusinessTask<CrewShellCompositionConfirmInput,Void> - Throws:
DAExceptionDAValidateException
-
getCrewShell
protected BOCrewShell getCrewShell(Long crewShell, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
deletePreviousComposition
protected List<BOCrewShellComposition> deletePreviousComposition(Long crewShell, Date day, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
insertConfirmedComposition
protected List<BOCrewShellComposition> insertConfirmedComposition(Long crewShell, Date day, List<BOCrewShellDraftComposition> draftTechnicians, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getCrewShellResources
protected List<BOCrewShellDraftComposition> getCrewShellResources(Long crewShell, Date day, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateCompositionMismatch
protected void updateCompositionMismatch(Long crewShell, Date day, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
disableCrewShellWorkshifts
protected void disableCrewShellWorkshifts(List<BOCrewShellComposition> oldComposition, List<BOCrewShellComposition> newComposition, Date day, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
transferSchedulings
protected void transferSchedulings(Long crewShell, Date day, List<BOCrewShellComposition> oldComposition, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
validate
protected void validate(BOCrewShell crewShell, Date day, List<BOCrewShellDraftComposition> draftTechnicians, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
insertCrewShellWorkshifts
protected void insertCrewShellWorkshifts(BOWorkShift crewShellWorkshift, Long crewShellId, Date day, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getCrewShellWorkShift
protected BOWorkShift getCrewShellWorkShift(Long crewShellId, Date day, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkWorkshiftIsDefined
protected void checkWorkshiftIsDefined(BOWorkShift workshift, boolean emptyComposition, BOCrewShell crewShell, Date day) throws DAValidateException - Throws:
DAValidateException
-
getCrewShellById
protected BOCrewShell getCrewShellById(Long crewShellId, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
alignSchedulingsAfterEmptyingComposition
protected void alignSchedulingsAfterEmptyingComposition(BOWorkShift crewShellWorkshift, BOCrewShell crewShell, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
cleanSchedulingForemanLinks
protected void cleanSchedulingForemanLinks(BOScheduling scheduling, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
transferAgendaToFictitiousResource
protected boolean transferAgendaToFictitiousResource(Long agendaId, BOCrewShell crewShell, Long scheduling, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
deleteSchedulings
protected void deleteSchedulings(List<BOCrewShellComposition> oldComposition, Date day, Long crewShell, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
launchAgendaTeamResourcesAlign
protected void launchAgendaTeamResourcesAlign(Long agendaId, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
cancelClosedActivities
protected void cancelClosedActivities(Long crewShellWorkshift, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-