Package org.dspace.discovery
Class FacetYearRange
java.lang.Object
org.dspace.discovery.FacetYearRange
Utility class that represents the year range for a date facet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateRange(Context context, List<String> filterQueries, IndexableObject scope, SearchService searchService, DiscoverQuery parentQuery) intintintbooleanisValid()
-
Constructor Details
-
FacetYearRange
-
-
Method Details
-
getDateFacet
-
getOldestYear
public int getOldestYear() -
getNewestYear
public int getNewestYear() -
isValid
public boolean isValid() -
calculateRange
public void calculateRange(Context context, List<String> filterQueries, IndexableObject scope, SearchService searchService, DiscoverQuery parentQuery) throws SearchServiceException - Throws:
SearchServiceException
-
getYearGap
public int getYearGap()
-