Package org.ametys.cms.search.ui.model
Interface SearchUIModel
- All Superinterfaces:
Model
,ModelItemAccessor
,ModelItemContainer
,SearchModel
- All Known Implementing Classes:
DefaultSearchUIModel
,ReferenceTableSearchUIModel
,ReferencingContentsWithSameValuesSearchUIModel
,SearchModelWrapper
,StaticSearchUIModel
Search tool model.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addAdvancedCriterion
(SearchModelCriterionDefinition criterion, Map<String, Object> contextualParameters) Add the given criterion to the advanced criteriadefault void
addAdvancedCriterion
(SearchModelCriterionViewItem criterion, Map<String, Object> contextualParameters) Add the given criterion to the advanced criteriadefault void
addCriterion
(SearchModelCriterionDefinition criterion, Map<String, Object> contextualParameters) Add the given criterion to the simple criteriadefault void
addCriterion
(ViewItem criterion, Map<String, Object> contextualParameters) Add the given criterion to the simple criteriadefault void
addFacetedCriterion
(SearchModelCriterionDefinition criterion, Map<String, Object> contextualParameters) Add the given criterion to the faceted criteriadefault void
addFacetedCriterion
(SearchModelCriterionViewItem criterion, Map<String, Object> contextualParameters) Add the given criterion to the faceted criteriagetAdvancedCriteria
(Map<String, Object> contextualParameters) Retrieves the criteria in advanced modedefault ModelViewItem
getAdvancedCriterion
(String name, Map<String, Object> contextualParameters) Retrieves the advanced criterion with the given namegetExportCSVUrl
(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 resultsint
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.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItem
Methods inherited from interface org.ametys.cms.search.model.SearchModel
getContentTypes, getCriteria, getCriterion, getExcludedContentTypes, getFacetedCriteria, getFacetedCriterion, getFamilyId, getId, getModelItems, getResultItem, getResultItems, getWorkspace, resultItemsToJSON, toJSON
-
Method Details
-
addCriterion
default void addCriterion(SearchModelCriterionDefinition criterion, Map<String, Object> contextualParameters) Description copied from interface:SearchModel
Add the given criterion to the simple criteria- Specified by:
addCriterion
in interfaceSearchModel
- Parameters:
criterion
- the criterion to addcontextualParameters
- the contextual parameters
-
addCriterion
Add the given criterion to the simple criteria- Parameters:
criterion
- the criterion to addcontextualParameters
- the contextual parameters
-
addFacetedCriterion
default void addFacetedCriterion(SearchModelCriterionDefinition criterion, Map<String, Object> contextualParameters) Description copied from interface:SearchModel
Add the given criterion to the faceted criteria- Specified by:
addFacetedCriterion
in interfaceSearchModel
- Parameters:
criterion
- the criterion to addcontextualParameters
- the contextual parameters
-
addFacetedCriterion
default void addFacetedCriterion(SearchModelCriterionViewItem criterion, Map<String, Object> contextualParameters) Add the given criterion to the faceted criteria- Parameters:
criterion
- the criterion to addcontextualParameters
- the contextual parameters
-
getAdvancedCriteria
Retrieves the criteria in advanced mode- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the criteria in advanced mode
-
getAdvancedCriterion
Retrieves the advanced criterion with the given name- Parameters:
name
- The name of the faceted criterion to retrievecontextualParameters
- the contextual parameters- Returns:
- the advanced criterion or
null
if not found
-
addAdvancedCriterion
default void addAdvancedCriterion(SearchModelCriterionDefinition criterion, Map<String, Object> contextualParameters) Add the given criterion to the advanced criteria- Parameters:
criterion
- the criterion to addcontextualParameters
- the contextual parameters
-
addAdvancedCriterion
default void addAdvancedCriterion(SearchModelCriterionViewItem criterion, Map<String, Object> contextualParameters) Add the given criterion to the advanced criteria- Parameters:
criterion
- the criterion to addcontextualParameters
- the contextual parameters
-
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.
-