Package org.dspace.discovery
Class FacetYearRange
- java.lang.Object
-
- org.dspace.discovery.FacetYearRange
-
public class FacetYearRange extends Object
Utility class that represents the year range for a date facet
-
-
Constructor Summary
Constructors Constructor Description FacetYearRange(DiscoverySearchFilterFacet facet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateRange(Context context, List<String> filterQueries, IndexableObject scope, SearchService searchService, DiscoverQuery parentQuery)StringgetDateFacet()intgetNewestYear()intgetOldestYear()intgetYearGap()booleanisValid()
-
-
-
Constructor Detail
-
FacetYearRange
public FacetYearRange(DiscoverySearchFilterFacet facet)
-
-
Method Detail
-
getDateFacet
public String 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()
-
-