Class ContentConsistencySearcher
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.content.consistency.ContentConsistencySearcher
org.ametys.web.content.consistency.ContentConsistencySearcher
- All Implemented Interfaces:
LogEnabled,Component,Contextualizable,Serviceable
public class ContentConsistencySearcher
extends ContentConsistencySearcher
implements Contextualizable
Override to restrict the search to the current site or outside
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringright id to access consistency result for out of site contentFields inherited from class org.ametys.cms.content.consistency.ContentConsistencySearcher
CMS_RIGHTS_TOOLS_GLOBAL_CONSISTENCY, ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) protected ExpressiongetExpression(List<Expression> criteriaExpressions) Get the final expression based on the list of criteria expressiongetModel()Get the search model for content consistency result.searchResults(Map<String, Object> jsonParams) Execute a search based on the provided parameters.voidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
WEB_RIGHTS_TOOLS_GLOBAL_CONSISTENCY_NO_SITE
right id to access consistency result for out of site content- See Also:
-
-
Constructor Details
-
ContentConsistencySearcher
public ContentConsistencySearcher()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classContentConsistencySearcher- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
getModel
Description copied from class:ContentConsistencySearcherGet the search model for content consistency result.- Overrides:
getModelin classContentConsistencySearcher- Returns:
- the search model
- Throws:
ProcessingException- if an error occurs
-
searchResults
Description copied from class:ContentConsistencySearcherExecute a search based on the provided parameters. Only results with failure will be searched Parameters must include :startandlimitfor paginationsortfor sort criteria definitionvaluesfor the criteria definition
- Overrides:
searchResultsin classContentConsistencySearcher- Parameters:
jsonParams- the json params- Returns:
- json representation of the results based on
ContentConsistencySearchModel - Throws:
ProcessingException- if an error occurs while processing search model
-
getExpression
Description copied from class:ContentConsistencySearcherGet the final expression based on the list of criteria expression- Overrides:
getExpressionin classContentConsistencySearcher- Parameters:
criteriaExpressions- a list of expressions- Returns:
- an expression or null if the list is empty
-