Class CmsDateFromTodayRestriction
java.lang.Object
org.opencms.jsp.search.config.parser.simplesearch.daterestrictions.CmsDateFromTodayRestriction
- All Implemented Interfaces:
I_CmsDateRestriction
Date restrictions for a fixed number of time units going backward or forward from the current time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.jsp.search.config.parser.simplesearch.daterestrictions.I_CmsDateRestriction
I_CmsDateRestriction.TimeDirection, I_CmsDateRestriction.TimeUnit -
Constructor Summary
ConstructorsConstructorDescriptionCmsDateFromTodayRestriction(int count, I_CmsDateRestriction.TimeUnit unit, I_CmsDateRestriction.TimeDirection direction) Creates a new instance. -
Method Summary
-
Constructor Details
-
CmsDateFromTodayRestriction
public CmsDateFromTodayRestriction(int count, I_CmsDateRestriction.TimeUnit unit, I_CmsDateRestriction.TimeDirection direction) Creates a new instance.- Parameters:
count- the number of time unitsunit- the time unitdirection- the time direction
-
-
Method Details
-
getRange
Description copied from interface:I_CmsDateRestrictionGets the formatted range expression for this restriction, for use in Solr date range queries.- Specified by:
getRangein interfaceI_CmsDateRestriction- Returns:
- the date range expression
- See Also:
-