public class FacetSearchComponent extends Object implements SearchComponent
SearchComponent
for executing the search with facets.DISABLE_DEFAULT_SAX_PARAMETER_NAME, MAX_PRIORITY, MIN_PRIORITY, SEARCH_PRIORITY
Constructor and Description |
---|
FacetSearchComponent() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkValidInputs(Collection<FacetDefinition> serviceFacets,
Map<String,List<String>> userFacets)
Checks the user inputs are valid
|
void |
execute(SearchComponentArguments args)
Executes the component.
|
int |
priority()
Get the priority of the component.
|
boolean |
supports(SearchComponentArguments args)
Returns
true if the component must be executed . |
public FacetSearchComponent()
public int priority()
SearchComponent
priority
in interface SearchComponent
public boolean supports(SearchComponentArguments args)
SearchComponent
true
if the component must be executed
.supports
in interface SearchComponent
args
- the argumentstrue
if the component must be executed
.public void execute(SearchComponentArguments args) throws Exception
SearchComponent
execute
in interface SearchComponent
args
- the argumentsException
- if an exception occurs. Other search components will be attempted to be executedprotected void checkValidInputs(Collection<FacetDefinition> serviceFacets, Map<String,List<String>> userFacets) throws InvalidUserInputException
serviceFacets
- The facets of the service instanceuserFacets
- The user input facetsInvalidUserInputException
- if at least user one input is invalid