public class DefaultSearchModel extends Object implements SearchModel
SearchModel.| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
_cTypes
The content types of this search model.
|
protected Set<String> |
_excludedCTypes
The content types excluded from this search model.
|
protected Map<String,SearchCriterion> |
_facetedCriteria
The faceted search criteria, indexed by ID.
|
protected Map<String,ResultField> |
_resultFields
The simple search criteria, indexed by ID.
|
protected Map<String,SearchCriterion> |
_searchCriteria
The simple search criteria, indexed by ID.
|
| Constructor and Description |
|---|
DefaultSearchModel() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getContentTypes(Map<String,Object> contextualParameters)
Get the list of content types.
|
Map<String,? extends SearchCriterion> |
getCriteria(Map<String,Object> contextualParameters)
Get the list of search criteria in simple mode
|
Set<String> |
getExcludedContentTypes(Map<String,Object> contextualParameters)
Get the list of excluded content types.
|
Map<String,? extends SearchCriterion> |
getFacetedCriteria(Map<String,Object> contextualParameters)
Get the list of faceted search criteria.
|
Map<String,? extends ResultField> |
getResultFields(Map<String,Object> contextualParameters)
Get the column for results
|
void |
setContentTypes(Set<String> cTypes)
Set the content types of the models
|
void |
setCriteria(Collection<? extends SearchCriterion> criteria)
Set the criteria
|
void |
setExcludedContentTypes(Set<String> cTypes)
Set the content types to exclude
|
void |
setFacetedCriteria(Collection<? extends SearchCriterion> criteria)
Set the faceted criteria
|
void |
setResultFields(Collection<? extends ResultField> fields)
Set the result fields
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCriterion, getFacetedCriterion, getResultFieldprotected Set<String> _excludedCTypes
protected Map<String,SearchCriterion> _searchCriteria
protected Map<String,SearchCriterion> _facetedCriteria
protected Map<String,ResultField> _resultFields
public DefaultSearchModel()
public Set<String> getContentTypes(Map<String,Object> contextualParameters)
SearchModelgetContentTypes in interface SearchModelcontextualParameters - the contextual parameters.public void setContentTypes(Set<String> cTypes)
cTypes - The content types.public Set<String> getExcludedContentTypes(Map<String,Object> contextualParameters)
SearchModelgetExcludedContentTypes in interface SearchModelcontextualParameters - the contextual parameterspublic void setExcludedContentTypes(Set<String> cTypes)
cTypes - The content types to excludepublic Map<String,? extends SearchCriterion> getCriteria(Map<String,Object> contextualParameters)
SearchModelgetCriteria in interface SearchModelcontextualParameters - the contextual parameterspublic void setCriteria(Collection<? extends SearchCriterion> criteria)
criteria - The criterion listpublic Map<String,? extends SearchCriterion> getFacetedCriteria(Map<String,Object> contextualParameters)
SearchModelgetFacetedCriteria in interface SearchModelcontextualParameters - the contextual parameterspublic void setFacetedCriteria(Collection<? extends SearchCriterion> criteria)
criteria - The list of faceted criterionpublic Map<String,? extends ResultField> getResultFields(Map<String,Object> contextualParameters)
SearchModelgetResultFields in interface SearchModelcontextualParameters - the contextual parameters. Can be null.public void setResultFields(Collection<? extends ResultField> fields)
fields - The list of result field