Class TimeRangeConfigurationTimeLineBuilder

java.lang.Object
overit.geocallapp.wfm.project.bl.management.planning.task.slotevaluation.timeline.SlotEvaluationTimeLineBuilder
overit.geocallapp.wfm.project.bl.management.planning.task.slotevaluation.timeline.TimeRangeConfigurationTimeLineBuilder

public class TimeRangeConfigurationTimeLineBuilder extends SlotEvaluationTimeLineBuilder
  • Field Details

    • timeRangeConfiguration

      protected overit.geocallapp.wfm.timerange.configuration.bl.TimeRangeConfiguration timeRangeConfiguration
    • data

      protected HashGetter data
    • holidayManager

      protected overit.geocallapp.wfm.amministrazione.afestivita.CalcolatriceFestivita holidayManager
  • Constructor Details

    • TimeRangeConfigurationTimeLineBuilder

      public TimeRangeConfigurationTimeLineBuilder()
  • Method Details

    • build

      public SlotEvaluationTimeLine build(overit.geocallapp.wfm.timerange.configuration.bl.TimeRangeConfiguration timeRangeConfiguration, List<overit.geocallapp.wfm.util.intervalli.DateTimeInterval> intervals)
    • iteration

      protected void iteration(SlotEvaluationTimeLine out, overit.geocallapp.wfm.util.intervalli.DateTimeInterval wholeRange, Date iterationBegin, Date iterationEnd, int iteration)
      Specified by:
      iteration in class SlotEvaluationTimeLineBuilder
    • findRangesForDay

      protected List<overit.geocallapp.wfm.timerange.configuration.bl.TimeRange> findRangesForDay(overit.geocallapp.wfm.timerange.configuration.bl.TimeRangePeriod period, Date previousDay, Date day, boolean trunc)
      Filter the range of the period to have only the ones that could be applied to the given day. A TimeRange could be applied to a Date if - the TimeRange day is the same of the Date - Date is an Holiday day, and time TimeRange is marked as Holiday Then, to be able to manage the range that overlaps two days, do the same selection also to the Date before the actual Date (if exists) For this set of range, select only the ones defined between two days
      Parameters:
      period -
      previousDay -
      day -
      trunc -
      Returns:
    • getRangeActualizedDates

      protected overit.geocallapp.wfm.util.intervalli.DateTimeInterval getRangeActualizedDates(overit.geocallapp.wfm.timerange.configuration.bl.TimeRange range, Date day)
    • addTimeRangesLeftSide

      protected void addTimeRangesLeftSide(Long wfmDayId, overit.geocallapp.wfm.timerange.configuration.bl.TimeRangePeriod period, List<overit.geocallapp.wfm.timerange.configuration.bl.TimeRange> out, boolean trunc)
    • holidayManager

      protected overit.geocallapp.wfm.amministrazione.afestivita.CalcolatriceFestivita holidayManager()
    • isHoliday

      protected boolean isHoliday(Date day)