Class CmsDateFromTodayRestriction
- java.lang.Object
-
- org.opencms.jsp.search.config.parser.simplesearch.daterestrictions.CmsDateFromTodayRestriction
-
- All Implemented Interfaces:
I_CmsDateRestriction
public class CmsDateFromTodayRestriction extends java.lang.Object implements 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
Constructors Constructor Description CmsDateFromTodayRestriction(int count, I_CmsDateRestriction.TimeUnit unit, I_CmsDateRestriction.TimeDirection direction)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRange()
Gets the formatted range expression for this restriction, for use in Solr date range queries.
-
-
-
Constructor Detail
-
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 Detail
-
getRange
public java.lang.String getRange()
Description copied from interface:I_CmsDateRestriction
Gets the formatted range expression for this restriction, for use in Solr date range queries.- Specified by:
getRange
in interfaceI_CmsDateRestriction
- Returns:
- the date range expression
- See Also:
I_CmsDateRestriction.getRange()
-
-