Class CmsDatePastFutureRestriction
java.lang.Object
org.opencms.jsp.search.config.parser.simplesearch.daterestrictions.CmsDatePastFutureRestriction
- All Implemented Interfaces:
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
ConstructorDescriptionCreates a new instance. -
Method Summary
-
Constructor Details
-
CmsDatePastFutureRestriction
Creates a new instance.- Parameters:
direction
- the time direction
-
-
Method Details
-
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:
-