Class CmsDateRangeRestriction
- java.lang.Object
-
- org.opencms.jsp.search.config.parser.simplesearch.daterestrictions.CmsDateRangeRestriction
-
- All Implemented Interfaces:
I_CmsDateRestriction
public class CmsDateRangeRestriction extends java.lang.Object implements 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 Constructor Description CmsDateRangeRestriction(java.util.Date fromDate, java.util.Date toDate)
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
-
CmsDateRangeRestriction
public CmsDateRangeRestriction(java.util.Date fromDate, java.util.Date toDate)
Creates a new instance.- Parameters:
fromDate
- the start datetoDate
- the end date
-
-
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()
-
-