Class ContentConsistencySearchModel
java.lang.Object
org.ametys.cms.content.consistency.ContentConsistencySearchModel
- All Implemented Interfaces:
Component
,Serviceable
Provide the search model for Content consistency search
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProvide the list of column.Get the criteria for the searchGet the facets for the searchgetModel()
Get the model for a content consistency searchprotected SearchUIColumn
getSearchUIColumn
(String name, I18nizableText label, Optional<String> renderer, Optional<String> converter, boolean hidden) Retrieves the column corresponding to the given item namevoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
The avalon role
-
-
Constructor Details
-
ContentConsistencySearchModel
public ContentConsistencySearchModel()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getModel
Get the model for a content consistency search- Returns:
- the model
- Throws:
ProcessingException
- if an error occurs processing the model
-
getColumns
Provide the list of column. Any column additional column must not be sortable as there info won't be present in the search result.- Returns:
- a json description of the column
- Throws:
ProcessingException
- if an error occurs processing the columns
-
getSearchUIColumn
protected SearchUIColumn getSearchUIColumn(String name, I18nizableText label, Optional<String> renderer, Optional<String> converter, boolean hidden) Retrieves the column corresponding to the given item name- Parameters:
name
- the name of the column's itemlabel
- the column's labelrenderer
- the column's rendererconverter
- the column's converterhidden
-true
if the column should be hidden,false
otherwise- Returns:
- the search column's info
-
getCriteria
Get the criteria for the search- Returns:
- the JSON description of the criteria
-
getFacets
Get the facets for the search- Returns:
- the JSON description of the facets
-