Class BucketService

java.lang.Object
overit.geocallapp.wfm.roughplanning.bl.bucket.BucketService
Direct Known Subclasses:
CalendarBucketService

public abstract class BucketService extends Object
The BucketService provides a method for creating buckets. Implementations of this abstract class can use different algorithms to achieve this goal.
Since:
18.0
  • Constructor Details

    • BucketService

      protected BucketService(Long roughPlanning, TimeUnit timeUnit, Long timeSize)
  • Method Details

    • getRoughPlanning

      public Long getRoughPlanning()
      Returns the rough planning id that was set for bucket creation.
      Returns:
      the rough planning id
    • getTimeUnit

      public TimeUnit getTimeUnit()
      Returns the time unit that was set for bucket creation.
      Returns:
      the time unit
    • getTimeSize

      public Long getTimeSize()
      Returns the time size that was set for bucket creation.
      Returns:
      the time size
    • createBuckets

      public abstract Collection<BORoughPlanningBucket> createBuckets(Date startDate, Date endDate) throws DAValidateException
      Returns a collection of buckets between the two dates of input, each large as timeUnit * timeSize
      Parameters:
      startDate -
      endDate -
      Returns:
      a collection of BORoughPlanningBucket
      Throws:
      DAValidateException