Class AutomaticSchedulingPermitsChecker
java.lang.Object
overit.geocallapp.wfm.core.bl.permits.utils.AutomaticSchedulingPermitsChecker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected overit.geocallapp.wfm.util.intervalli.DateTimeIntervalcheckIntersection(Long woId, Long wooId, List<overit.geocallapp.wfm.util.intervalli.DateTimeInterval> intervals) protected LonggetWorkOrderFromOperation(Long woOperationId, PoolKit poolKit) protected voidrecalculateActivityInterval(Date startSchedulingDate, Date endSchedulingDate, List<overit.geocallapp.wfm.scheduler.oss.OssActivity> ossActivities, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PoolKit poolKit) voidrecalculateActivityInterval(Date startSchedulingDate, Date endSchedulingDate, List<overit.geocallapp.wfm.scheduler.oss.OssActivity> ossActivities, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PooledConnection conn) protected booleanrecalculateActivityInterval(Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.oss.OssActivity ossActivity, Long woId, WorkOrderPermits workOrderPermits, overit.geocallapp.wfm.scheduler.util.SchedLog slog) Recalculate the activity period based on the intersection between all permits validity periods.voidremoveActivitiesWithUnsatisfiedPreRequirements(List<overit.geocallapp.wfm.scheduler.oss.OssActivity> ossActivities, Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PoolKit poolKit) voidremoveActivitiesWithUnsatisfiedPreRequirements(List<overit.geocallapp.wfm.scheduler.oss.OssActivity> ossActivities, Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PooledConnection conn) voidremoveActivitiesWithUnsatisfiedPreRequirements(DBView dbView, Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PoolKit poolKit) voidremoveActivitiesWithUnsatisfiedPreRequirements(DBView dbView, Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PooledConnection conn)
-
Constructor Details
-
AutomaticSchedulingPermitsChecker
public AutomaticSchedulingPermitsChecker()
-
-
Method Details
-
removeActivitiesWithUnsatisfiedPreRequirements
public void removeActivitiesWithUnsatisfiedPreRequirements(DBView dbView, Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
removeActivitiesWithUnsatisfiedPreRequirements
public void removeActivitiesWithUnsatisfiedPreRequirements(DBView dbView, Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
removeActivitiesWithUnsatisfiedPreRequirements
public void removeActivitiesWithUnsatisfiedPreRequirements(List<overit.geocallapp.wfm.scheduler.oss.OssActivity> ossActivities, Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
removeActivitiesWithUnsatisfiedPreRequirements
public void removeActivitiesWithUnsatisfiedPreRequirements(List<overit.geocallapp.wfm.scheduler.oss.OssActivity> ossActivities, Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
recalculateActivityInterval
public void recalculateActivityInterval(Date startSchedulingDate, Date endSchedulingDate, List<overit.geocallapp.wfm.scheduler.oss.OssActivity> ossActivities, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
recalculateActivityInterval
protected void recalculateActivityInterval(Date startSchedulingDate, Date endSchedulingDate, List<overit.geocallapp.wfm.scheduler.oss.OssActivity> ossActivities, overit.geocallapp.wfm.scheduler.util.SchedLog slog, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
recalculateActivityInterval
protected boolean recalculateActivityInterval(Date startSchedulingDate, Date endSchedulingDate, overit.geocallapp.wfm.scheduler.oss.OssActivity ossActivity, Long woId, WorkOrderPermits workOrderPermits, overit.geocallapp.wfm.scheduler.util.SchedLog slog) throws DAValidateException, DAException Recalculate the activity period based on the intersection between all permits validity periods. Return true if the activity period has been updated, false otherwise.- Parameters:
startSchedulingDate-endSchedulingDate-ossActivity-woId-workOrderPermits-slog-- Returns:
- true if the activity period has been updated, false otherwise.
- Throws:
DAValidateExceptionDAException
-
checkIntersection
protected overit.geocallapp.wfm.util.intervalli.DateTimeInterval checkIntersection(Long woId, Long wooId, List<overit.geocallapp.wfm.util.intervalli.DateTimeInterval> intervals) throws DAValidateException - Throws:
DAValidateException
-
getWorkOrderFromOperation
protected Long getWorkOrderFromOperation(Long woOperationId, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-