Class DefaultTimeRangeFactory
java.lang.Object
com.hybris.backoffice.widgets.processes.settings.DefaultTimeRangeFactory
- All Implemented Interfaces:
TimeRangeFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TimeRangecreateTimeRange(long number, String type) createTimeRange(String range) Creates time range based on given rangecreateTimeRanges(String commaSeparatedRanges) Creates ranges from given comma separated valuesprotected String
-
Field Details
-
PATTERN
-
GROUP_NUMBER
- See Also:
-
GROUP_TYPE
- See Also:
-
MINUTE
- See Also:
-
HOUR
- See Also:
-
DAY
- See Also:
-
WEEK
- See Also:
-
LABEL_PROCESSES_RANGE_HOUR
- See Also:
-
LABEL_PROCESSES_RANGE_DAY
- See Also:
-
LABEL_PROCESSES_RANGE_WEEK
- See Also:
-
LABEL_PROCESSES_RANGE_MINUTE
- See Also:
-
PLURAL_SUFFIX
- See Also:
-
RANGES_SEPARATOR
- See Also:
-
-
Constructor Details
-
DefaultTimeRangeFactory
public DefaultTimeRangeFactory()
-
-
Method Details
-
createTimeRanges
Description copied from interface:TimeRangeFactoryCreates ranges from given comma separated values- Specified by:
createTimeRangesin interfaceTimeRangeFactory- Parameters:
commaSeparatedRanges- e.g. 2m,3h,2w,3w,1d -TimeRangeFactory.createTimeRange(String)- Returns:
- list of time ranges. They are sorted from the smallest one.
-
createTimeRange
Description copied from interface:TimeRangeFactoryCreates time range based on given range- Specified by:
createTimeRangein interfaceTimeRangeFactory- Parameters:
range- range in following format xm - x minutes, xh - x hours, xd - x days, xw - x weeks- Returns:
- TimeRage object
-
createTimeRange
-
getLabel
-