Class BucketService
java.lang.Object
overit.geocallapp.wfm.roughplanning.bl.bucket.BucketService
- Direct Known Subclasses:
CalendarBucketService
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 Summary
ConstructorsModifierConstructorDescriptionprotectedBucketService(Long roughPlanning, TimeUnit timeUnit, Long timeSize) -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<BORoughPlanningBucket> createBuckets(Date startDate, Date endDate) Returns a collection of buckets between the two dates of input, each large as timeUnit * timeSizeReturns the rough planning id that was set for bucket creation.Returns the time size that was set for bucket creation.Returns the time unit that was set for bucket creation.
-
Constructor Details
-
BucketService
-
-
Method Details
-
getRoughPlanning
Returns the rough planning id that was set for bucket creation.- Returns:
- the rough planning id
-
getTimeUnit
Returns the time unit that was set for bucket creation.- Returns:
- the time unit
-
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
-