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
Modifier and TypeFieldDescriptionstatic final String
right 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) protected Expression
getExpression
(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.void
service
(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:
service
in interfaceServiceable
- Overrides:
service
in classContentConsistencySearcher
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getModel
Description copied from class:ContentConsistencySearcher
Get the search model for content consistency result.- Overrides:
getModel
in classContentConsistencySearcher
- Returns:
- the search model
- Throws:
ProcessingException
- if an error occurs
-
searchResults
Description copied from class:ContentConsistencySearcher
Execute a search based on the provided parameters. Only results with failure will be searched Parameters must include :start
andlimit
for paginationsort
for sort criteria definitionvalues
for the criteria definition
- Overrides:
searchResults
in 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:ContentConsistencySearcher
Get the final expression based on the list of criteria expression- Overrides:
getExpression
in classContentConsistencySearcher
- Parameters:
criteriaExpressions
- a list of expressions- Returns:
- an expression or null if the list is empty
-