Class CmsDatePastFutureRestriction
- java.lang.Object
-
- org.opencms.jsp.search.config.parser.simplesearch.daterestrictions.CmsDatePastFutureRestriction
-
- All Implemented Interfaces:
I_CmsDateRestriction
public class CmsDatePastFutureRestriction extends java.lang.Object implements I_CmsDateRestriction
A restriction which selects either all entries in the past (from the current time) or all entries in the future.
-
-
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 CmsDatePastFutureRestriction(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
-
CmsDatePastFutureRestriction
public CmsDatePastFutureRestriction(I_CmsDateRestriction.TimeDirection direction)
Creates a new instance.- Parameters:
direction
- 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()
-
-