Package org.ametys.cms.search.ui.model
Interface SearchUIModel
-
- All Superinterfaces:
SearchModel
- All Known Implementing Classes:
AbstractSearchUIModel,CriteriaSearchUIModelWrapper,DynamicWrappedSearchUIModel,ReferenceTableSearchUIModel,ReferencingContentsWithSameValuesSearchUIModel,StaticSearchUIModel
public interface SearchUIModel extends SearchModel
Search tool model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanallowSortOnMultipleJoin()Map<String,SearchUICriterion>getAdvancedCriteria(Map<String,Object> contextualParameters)Get the list of search criteria in advanced modedefault SearchUICriteriongetAdvancedCriterion(String id, Map<String,Object> contextualParameters)Get an advanced search criterion by its id.Map<String,SearchUICriterion>getCriteria(Map<String,Object> contextualParameters)Get the list of search criteria in simple modedefault SearchUICriteriongetCriterion(String id, Map<String,Object> contextualParameters)Get a simple search criterion by its idStringgetExportCSVUrl(Map<String,Object> contextualParameters)Get the URL for CVS export of resultsStringgetExportCSVUrlPlugin(Map<String,Object> contextualParameters)Get the plugin name for CVS export of resultsStringgetExportDOCUrl(Map<String,Object> contextualParameters)Get the URL for DOC export of resultsStringgetExportDOCUrlPlugin(Map<String,Object> contextualParameters)Get the plugin name for DOC export of resultsStringgetExportXMLUrl(Map<String,Object> contextualParameters)Get the URL for XML export of resultsStringgetExportXMLUrlPlugin(Map<String,Object> contextualParameters)Get the plugin name for XML export of resultsMap<String,SearchUICriterion>getFacetedCriteria(Map<String,Object> contextualParameters)Get the list of faceted search criteria.default SearchUICriteriongetFacetedCriterion(String id, Map<String,Object> contextualParameters)Get a faceted search criterion by its id.intgetPageSize(Map<String,Object> contextualParameters)Get the page size.StringgetPrintUrl(Map<String,Object> contextualParameters)Get the URL for print resultsStringgetPrintUrlPlugin(Map<String,Object> contextualParameters)Get the plugin name for print resultsdefault SearchUIColumngetResultField(String id, Map<String,Object> contextualParameters)Get the column by its identifierMap<String,SearchUIColumn>getResultFields(Map<String,Object> contextualParameters)Get the column for resultsStringgetSearchUrl(Map<String,Object> contextualParameters)Get the URL for searchStringgetSearchUrlPlugin(Map<String,Object> contextualParameters)Get the plugin name for searchStringgetSummaryView()Get the name of the view to use for summary of the content.StringgetWorkspace(Map<String,Object> contextualParameters)Get the specific workspace to use.-
Methods inherited from interface org.ametys.cms.search.model.SearchModel
getContentTypes, getExcludedContentTypes
-
-
-
-
Method Detail
-
getCriteria
Map<String,SearchUICriterion> getCriteria(Map<String,Object> contextualParameters)
Description copied from interface:SearchModelGet the list of search criteria in simple mode- Specified by:
getCriteriain interfaceSearchModel- Parameters:
contextualParameters- the contextual parameters- Returns:
- the list of search criteria in simple mode
-
getCriterion
default SearchUICriterion getCriterion(String id, Map<String,Object> contextualParameters)
Description copied from interface:SearchModelGet a simple search criterion by its id- Specified by:
getCriterionin interfaceSearchModel- Parameters:
id- The search criterion idcontextualParameters- the contextual parameters- Returns:
- the criterion or
nullif not found
-
getFacetedCriteria
Map<String,SearchUICriterion> getFacetedCriteria(Map<String,Object> contextualParameters)
Description copied from interface:SearchModelGet the list of faceted search criteria.- Specified by:
getFacetedCriteriain interfaceSearchModel- Parameters:
contextualParameters- the contextual parameters- Returns:
- the list of faceted search criteria.
-
getFacetedCriterion
default SearchUICriterion getFacetedCriterion(String id, Map<String,Object> contextualParameters)
Description copied from interface:SearchModelGet a faceted search criterion by its id.- Specified by:
getFacetedCriterionin interfaceSearchModel- Parameters:
id- The faceted search criterion id.contextualParameters- the contextual parameters- Returns:
- the faceted criterion or
nullif not found
-
getResultFields
Map<String,SearchUIColumn> getResultFields(Map<String,Object> contextualParameters)
Description copied from interface:SearchModelGet the column for results- Specified by:
getResultFieldsin interfaceSearchModel- Parameters:
contextualParameters- the contextual parameters. Can be null.- Returns:
- the column for results
-
getResultField
default SearchUIColumn getResultField(String id, Map<String,Object> contextualParameters)
Description copied from interface:SearchModelGet the column by its identifier- Specified by:
getResultFieldin interfaceSearchModel- Parameters:
id- The column idcontextualParameters- the contextual parameters- Returns:
- the column
-
getAdvancedCriteria
Map<String,SearchUICriterion> getAdvancedCriteria(Map<String,Object> contextualParameters)
Get the list of search criteria in advanced mode- Parameters:
contextualParameters- the contextual parameters- Returns:
- the list of search criteria in advanced mode
-
getAdvancedCriterion
default SearchUICriterion getAdvancedCriterion(String id, Map<String,Object> contextualParameters)
Get an advanced search criterion by its id.- Parameters:
id- The advanced search criterion id.contextualParameters- the contextual parameters- Returns:
- the advanced criterion or
nullif not found
-
getPageSize
int getPageSize(Map<String,Object> contextualParameters)
Get the page size.- Parameters:
contextualParameters- the contextual parameters.- Returns:
- The page size, unlimited or default used when negative or 0.
-
getWorkspace
String getWorkspace(Map<String,Object> contextualParameters)
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.
-
getSearchUrl
String getSearchUrl(Map<String,Object> contextualParameters)
Get the URL for search- Parameters:
contextualParameters- the contextual parameters- Returns:
- the URL for search
-
getSearchUrlPlugin
String getSearchUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for search- Parameters:
contextualParameters- the contextual parameters- Returns:
- the plugin name for search
-
getExportCSVUrl
String getExportCSVUrl(Map<String,Object> contextualParameters)
Get the URL for CVS export of results- Parameters:
contextualParameters- the contextual parameters- Returns:
- the URL for CVS export
-
getExportCSVUrlPlugin
String getExportCSVUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for CVS export of results- Parameters:
contextualParameters- the contextual parameters- Returns:
- the plugin name for CVS export
-
getExportDOCUrl
String getExportDOCUrl(Map<String,Object> contextualParameters)
Get the URL for DOC export of results- Parameters:
contextualParameters- the contextual parameters- Returns:
- the URL for CVS export
-
getExportDOCUrlPlugin
String getExportDOCUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for DOC export of results- Parameters:
contextualParameters- the contextual parameters- Returns:
- the plugin name for CVS export
-
getExportXMLUrl
String getExportXMLUrl(Map<String,Object> contextualParameters)
Get the URL for XML export of results- Parameters:
contextualParameters- the contextual parameters- Returns:
- the URL for XML export
-
getExportXMLUrlPlugin
String getExportXMLUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for XML export of results- Parameters:
contextualParameters- the contextual parameters- Returns:
- the plugin name for XML export
-
getPrintUrl
String getPrintUrl(Map<String,Object> contextualParameters)
Get the URL for print results- Parameters:
contextualParameters- the contextual parameters- Returns:
- the URL for print results
-
getPrintUrlPlugin
String getPrintUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for print results- Parameters:
contextualParameters- the contextual parameters- Returns:
- the plugin name for print results
-
getSummaryView
String getSummaryView()
Get the name of the view to use for summary of the content.- Returns:
- the name of the view to use for summary of the content. Can be null.
-
allowSortOnMultipleJoin
default boolean allowSortOnMultipleJoin()
Indicates if sorting on join columns which contain at least onemultiplemetadatain its path (intermediate ones only) must be allowed.
If the final metadata of the path is multiple, the column will not be sortable though.- Returns:
- true if sorting on join columns which contains at least one multiple metadata in its path (intermediate ones only) must be allowed.
-
-