Package org.ametys.cms.search.model
Interface SearchModel
- All Known Subinterfaces:
SearchUIModel
- All Known Implementing Classes:
AbstractSearchUIModel,CriteriaSearchModelWrapper,DefaultSearchModel,DefaultSearchUIModel,DynamicWrappedSearchUIModel,ReferenceTableSearchUIModel,ReferencingContentsWithSameValuesSearchUIModel,SearchModelWrapper,StaticSearchUIModel
public interface SearchModel
This interface represents a search model.
-
Method Summary
Modifier and TypeMethodDescriptiongetContentTypes(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 idgetExcludedContentTypes(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 ModelViewItemgetResultItem(String itemPath, Map<String, Object> contextualParameters) Retrieves the search result item with the given pathgetResultItems(Map<String, Object> contextualParameters) Retrieves the search result itemsgetWorkspace(Map<String, Object> contextualParameters) Get the specific workspace to use.
-
Method Details
-
getContentTypes
Get the list of content types.- Parameters:
contextualParameters- the contextual parameters.- Returns:
- The list of content types.
-
getExcludedContentTypes
Get the list of excluded content types.- Parameters:
contextualParameters- the contextual parameters- Returns:
- The list of excluded content types.
-
getCriteria
Get the list of search criteria in simple mode- Parameters:
contextualParameters- the contextual parameters- Returns:
- the list of search criteria in simple mode
-
getCriterion
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
Get the list of faceted search criteria.- Parameters:
contextualParameters- the contextual parameters- Returns:
- the list of faceted search criteria.
-
getFacetedCriterion
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
-
getResultItems
Retrieves the search result items- Parameters:
contextualParameters- the contextual parameters- Returns:
- the search result items
-
getResultItem
Retrieves the search result item with the given path- Parameters:
itemPath- the path of the result item to retrievecontextualParameters- the contextual parameters- Returns:
- the search result item with
-
getWorkspace
Get the specific workspace to use.- Parameters:
contextualParameters- the contextual parameters.- Returns:
- the workspace to use when searching, or null to use the default workspace.
-