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 boolean
allowSortOnMultipleJoin()
Map<String,SearchUICriterion>
getAdvancedCriteria(Map<String,Object> contextualParameters)
Get the list of search criteria in advanced modedefault SearchUICriterion
getAdvancedCriterion(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 SearchUICriterion
getCriterion(String id, Map<String,Object> contextualParameters)
Get a simple search criterion by its idString
getExportCSVUrl(Map<String,Object> contextualParameters)
Get the URL for CVS export of resultsString
getExportCSVUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for CVS export of resultsString
getExportDOCUrl(Map<String,Object> contextualParameters)
Get the URL for DOC export of resultsString
getExportDOCUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for DOC export of resultsString
getExportXMLUrl(Map<String,Object> contextualParameters)
Get the URL for XML export of resultsString
getExportXMLUrlPlugin(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 SearchUICriterion
getFacetedCriterion(String id, Map<String,Object> contextualParameters)
Get a faceted search criterion by its id.int
getPageSize(Map<String,Object> contextualParameters)
Get the page size.String
getPrintUrl(Map<String,Object> contextualParameters)
Get the URL for print resultsString
getPrintUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for print resultsdefault SearchUIColumn
getResultField(String id, Map<String,Object> contextualParameters)
Get the column by its identifierMap<String,SearchUIColumn>
getResultFields(Map<String,Object> contextualParameters)
Get the column for resultsString
getSearchUrl(Map<String,Object> contextualParameters)
Get the URL for searchString
getSearchUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for searchString
getSummaryView()
Get the name of the view to use for summary of the content.String
getWorkspace(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:SearchModel
Get the list of search criteria in simple mode- Specified by:
getCriteria
in 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:SearchModel
Get a simple search criterion by its id- Specified by:
getCriterion
in interfaceSearchModel
- Parameters:
id
- The search criterion idcontextualParameters
- the contextual parameters- Returns:
- the criterion or
null
if not found
-
getFacetedCriteria
Map<String,SearchUICriterion> getFacetedCriteria(Map<String,Object> contextualParameters)
Description copied from interface:SearchModel
Get the list of faceted search criteria.- Specified by:
getFacetedCriteria
in 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:SearchModel
Get a faceted search criterion by its id.- Specified by:
getFacetedCriterion
in interfaceSearchModel
- Parameters:
id
- The faceted search criterion id.contextualParameters
- the contextual parameters- Returns:
- the faceted criterion or
null
if not found
-
getResultFields
Map<String,SearchUIColumn> getResultFields(Map<String,Object> contextualParameters)
Description copied from interface:SearchModel
Get the column for results- Specified by:
getResultFields
in 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:SearchModel
Get the column by its identifier- Specified by:
getResultField
in 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
null
if 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 onemultiple
metadata
in 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.
-
-