Class CmsDateRangeRestriction
java.lang.Object
org.opencms.jsp.search.config.parser.simplesearch.daterestrictions.CmsDateRangeRestriction
- All Implemented Interfaces:
I_CmsDateRestriction
Restriction to a date between a fixed start and end date, but only one of them has to be given.
-
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 -
Method Summary
-
Constructor Details
-
CmsDateRangeRestriction
Creates a new instance.- Parameters:
fromDate
- the start datetoDate
- the end date
-
-
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:
-