Class BTCrewShellWorkshiftCheck
java.lang.Object
overit.geocall.bl.BusinessTask<CheckerEvent<CrewShellWorkshiftCheckInput>>
overit.geocallapp.utilities.core.bl.common.check.checker.task.AbstractCheckerBusinessTask<CrewShellWorkshiftCheckInput>
overit.geocallapp.utilities.core.bl.common.check.checker.task.ValidExecutionAbstractCheckerBusinessTask<CrewShellWorkshiftCheckInput>
overit.geocallapp.wfm.core.bl.crewshell.task.BTCrewShellChecker<CrewShellWorkshiftCheckInput>
overit.geocallapp.wfm.core.bl.crewshell.workshift.task.BTCrewShellWorkshiftCheck
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CrewShellWorkshiftCheckEvent.class)
public class BTCrewShellWorkshiftCheck
extends BTCrewShellChecker<CrewShellWorkshiftCheckInput>
Business task in order to check crew shell workshift
When the
When the
CrewShellWorkshiftCheckEvent is launched
the BT notices the call and checks crew shell composition in the CrewShellWorkshiftCheckInput basing on the event's input. - Since:
- 20.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<CheckIssue> checkOverlappingCrewShellWorkshift(Date crewShellWorkshiftStartDate, Date crewShellWorkshiftEndDate, List<Long> resources, Long crewShellWorkshift, PoolKit poolKit) protected List<CheckIssue> checkOverlapWithNextDayWorkshifts(Date crewShellWorkshiftStartDate, Date crewShellWorkshiftEndDate, List<Long> crewShellMembers, PoolKit poolKit) protected List<CheckIssue> checkResourceOverlapWithNextDayWorkshifts(Date crewShellWorkshiftEndDate, List<Long> crewShellMembers, PoolKit poolKit) protected List<CheckIssue> computeCheckIssues(CrewShellWorkshiftCheckInput input, PoolKit poolKit) Computes the check issues.protected BOCrewShellgetOverlappingCrewShell(BOWorkShift workshift, PoolKit poolKit) protected List<BOWorkShift> getResourceWorkshift(List<Long> resources, Date crewShellWorkshiftEndDate, PoolKit poolKit) Methods inherited from class overit.geocallapp.wfm.core.bl.crewshell.task.BTCrewShellChecker
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checker.task.ValidExecutionAbstractCheckerBusinessTask
body, checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checker.task.AbstractCheckerBusinessTask
addCheckIssuesToCheckResult, initCheckResultMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTCrewShellWorkshiftCheck
public BTCrewShellWorkshiftCheck()
-
-
Method Details
-
computeCheckIssues
protected List<CheckIssue> computeCheckIssues(CrewShellWorkshiftCheckInput input, PoolKit poolKit) throws DAException, DAValidateException Computes the check issues.- Specified by:
computeCheckIssuesin classAbstractCheckerBusinessTask<CrewShellWorkshiftCheckInput>- Parameters:
input- theCrewShellWorkshiftCheckInputpoolKit- thePoolKit- Returns:
- a list of check issue elements of type CheckIssue
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-
checkOverlapWithNextDayWorkshifts
protected List<CheckIssue> checkOverlapWithNextDayWorkshifts(Date crewShellWorkshiftStartDate, Date crewShellWorkshiftEndDate, List<Long> crewShellMembers, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkResourceOverlapWithNextDayWorkshifts
protected List<CheckIssue> checkResourceOverlapWithNextDayWorkshifts(Date crewShellWorkshiftEndDate, List<Long> crewShellMembers, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getResourceWorkshift
protected List<BOWorkShift> getResourceWorkshift(List<Long> resources, Date crewShellWorkshiftEndDate, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkOverlappingCrewShellWorkshift
protected List<CheckIssue> checkOverlappingCrewShellWorkshift(Date crewShellWorkshiftStartDate, Date crewShellWorkshiftEndDate, List<Long> resources, Long crewShellWorkshift, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getOverlappingCrewShell
protected BOCrewShell getOverlappingCrewShell(BOWorkShift workshift, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-