Package org.ametys.cms.search.model
Interface SearchModel
-
- All Known Subinterfaces:
SearchUIModel
- All Known Implementing Classes:
AbstractSearchUIModel,CriteriaSearchUIModelWrapper,DefaultSearchModel,DynamicWrappedSearchUIModel,ReferenceTableSearchUIModel,ReferencingContentsWithSameValuesSearchUIModel,SearchModelWrapper,StaticSearchUIModel
public interface SearchModel
This interface represents a search model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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 modedefault SearchCriteriongetCriterion(String id, Map<String,Object> contextualParameters)Get a simple search criterion by its idSet<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.default SearchCriteriongetFacetedCriterion(String id, Map<String,Object> contextualParameters)Get a faceted search criterion by its id.default ResultFieldgetResultField(String id, Map<String,Object> contextualParameters)Get the column by its identifierMap<String,? extends ResultField>getResultFields(Map<String,Object> contextualParameters)Get the column for results
-
-
-
Method Detail
-
getContentTypes
Set<String> getContentTypes(Map<String,Object> contextualParameters)
Get the list of content types.- Parameters:
contextualParameters- the contextual parameters.- Returns:
- The list of content types.
-
getExcludedContentTypes
Set<String> getExcludedContentTypes(Map<String,Object> contextualParameters)
Get the list of excluded content types.- Parameters:
contextualParameters- the contextual parameters- Returns:
- The list of excluded content types.
-
getCriteria
Map<String,? extends SearchCriterion> getCriteria(Map<String,Object> contextualParameters)
Get the list of search criteria in simple mode- Parameters:
contextualParameters- the contextual parameters- Returns:
- the list of search criteria in simple mode
-
getCriterion
default SearchCriterion getCriterion(String id, Map<String,Object> contextualParameters)
Get a simple search criterion by its id- Parameters:
id- The search criterion idcontextualParameters- the contextual parameters- Returns:
- the criterion or
nullif not found
-
getFacetedCriteria
Map<String,? extends SearchCriterion> getFacetedCriteria(Map<String,Object> contextualParameters)
Get the list of faceted search criteria.- Parameters:
contextualParameters- the contextual parameters- Returns:
- the list of faceted search criteria.
-
getFacetedCriterion
default SearchCriterion getFacetedCriterion(String id, Map<String,Object> contextualParameters)
Get a faceted search criterion by its id.- Parameters:
id- The faceted search criterion id.contextualParameters- the contextual parameters- Returns:
- the faceted criterion or
nullif not found
-
getResultFields
Map<String,? extends ResultField> getResultFields(Map<String,Object> contextualParameters)
Get the column for results- Parameters:
contextualParameters- the contextual parameters. Can be null.- Returns:
- the column for results
-
getResultField
default ResultField getResultField(String id, Map<String,Object> contextualParameters)
Get the column by its identifier- Parameters:
id- The column idcontextualParameters- the contextual parameters- Returns:
- the column
-
-