Package org.ametys.cms.search.ui.model
Interface SearchUIModel
- All Superinterfaces:
SearchModel
- All Known Implementing Classes:
AbstractSearchUIModel
,DefaultSearchUIModel
,DynamicWrappedSearchUIModel
,ReferenceTableSearchUIModel
,ReferencingContentsWithSameValuesSearchUIModel
,SearchModelWrapper
,StaticSearchUIModel
Search tool model.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Indicates if sorting on join columns which contain at least onemultiple
definition
in its path (intermediate ones only) must be allowed.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.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 idgetExportCSVUrl
(Map<String, Object> contextualParameters) Get the URL for CSV export of resultsgetExportCSVUrlPlugin
(Map<String, Object> contextualParameters) Get the plugin name for CSV export of resultsgetExportDOCUrl
(Map<String, Object> contextualParameters) Get the URL for DOC export of resultsgetExportDOCUrlPlugin
(Map<String, Object> contextualParameters) Get the plugin name for DOC export of resultsgetExportPDFUrl
(Map<String, Object> contextualParameters) Get the URL for PDF export of resultsgetExportPDFUrlPlugin
(Map<String, Object> contextualParameters) Get the plugin name for PDF export of resultsgetExportXMLUrl
(Map<String, Object> contextualParameters) Get the URL for XML export of resultsgetExportXMLUrlPlugin
(Map<String, Object> contextualParameters) Get the plugin name for XML export of resultsgetFacetedCriteria
(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.getPrintUrl
(Map<String, Object> contextualParameters) Get the URL for print resultsgetPrintUrlPlugin
(Map<String, Object> contextualParameters) Get the plugin name for print resultsgetSearchUrl
(Map<String, Object> contextualParameters) Get the URL for searchgetSearchUrlPlugin
(Map<String, Object> contextualParameters) Get the plugin name for searchGet the name of the view to use for summary of the content.Methods inherited from interface org.ametys.cms.search.model.SearchModel
getContentTypes, getExcludedContentTypes, getResultItem, getResultItems, getWorkspace
-
Method Details
-
getCriteria
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
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
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
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
-
getAdvancedCriteria
Get the list of search criteria in advanced mode- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the list of search criteria in advanced mode
-
getAdvancedCriterion
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
Get the page size.- Parameters:
contextualParameters
- the contextual parameters.- Returns:
- The page size, unlimited or default used when negative or 0.
-
getSearchUrl
Get the URL for search- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the URL for search
-
getSearchUrlPlugin
Get the plugin name for search- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the plugin name for search
-
getExportCSVUrl
Get the URL for CSV export of results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the URL for CSV export
-
getExportCSVUrlPlugin
Get the plugin name for CSV export of results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the plugin name for CSV export
-
getExportDOCUrl
Get the URL for DOC export of results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the URL for DOC export
-
getExportDOCUrlPlugin
Get the plugin name for DOC export of results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the plugin name for DOC export
-
getExportXMLUrl
Get the URL for XML export of results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the URL for XML export
-
getExportXMLUrlPlugin
Get the plugin name for XML export of results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the plugin name for XML export
-
getExportPDFUrl
Get the URL for PDF export of results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the URL for PDF export
-
getExportPDFUrlPlugin
Get the plugin name for PDF export of results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the plugin name for PDF export
-
getPrintUrl
Get the URL for print results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the URL for print results
-
getPrintUrlPlugin
Get the plugin name for print results- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the plugin name for print results
-
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
Indicates if sorting on join columns which contain at least onemultiple
definition
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.
-