public class FacetParameterUtils extends Object
| Constructor and Description |
|---|
FacetParameterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getDateRangeParams(Map<String,String[]> parameters) |
static String |
getLimitForDataProvider() |
static Map<String,Integer> |
getSolrFacetParams(String type,
String[] solrFacets,
Map<String,String[]> parameters,
boolean defaultFacetsRequested)
Returns all relevant parameters of a given type (right now: limit and offset)
|
static Map<String,Integer> |
getTechnicalFacetParams(String type,
String[] technicalFacets,
Map<String,String[]> parameters,
boolean defaultFacetsRequested)
Returns all relevant parameters of a given type (right now: limit and offset)
|
public static Map<String,Integer> getSolrFacetParams(String type, String[] solrFacets, Map<String,String[]> parameters, boolean defaultFacetsRequested)
type - Type of parameter. Currently we support "limit" and "offset"solrFacets - List of Solr facetsparameters - The request parametersdefaultFacetsRequested - Whether or not the default facets should be checkedpublic static Map<String,Integer> getTechnicalFacetParams(String type, String[] technicalFacets, Map<String,String[]> parameters, boolean defaultFacetsRequested)
type - Type of parameter. Currently we support "limit" and "offset"technicalFacets - List of technical metadata facetsparameters - The request parametersdefaultFacetsRequested - Whether or not the all technical metadata facets should be checkedpublic static Map<String,String> getDateRangeParams(Map<String,String[]> parameters) throws DateMathParseException, InvalidGapException
public static String getLimitForDataProvider()
Copyright © 2019 Europeana Foundation. All rights reserved.