Package org.ametys.web.duplicate
Class DuplicateContentsManager
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.duplicate.contents.DuplicateContentsManager
org.ametys.web.duplicate.DuplicateContentsManager
- All Implemented Interfaces:
LogEnabled
,Component
,Configurable
,Serviceable
Component able to detect duplicates (and near duplicates) for a given content.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.cms.duplicate.contents.DuplicateContentsManager
DuplicateContentsManager.Status
-
Field Summary
Fields inherited from class org.ametys.cms.duplicate.contents.DuplicateContentsManager
_contentHelper, _contentSearcherFactory, _duplicateContentConfiguration, DUPLICATE_CONTENTS_KEY, NEAR_DUPLICATE_CONTENTS_KEY, NO_DUPLICATE_CONTENTS_CONTENT_TYPE_KEY, ROLE, STATUS_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_getDuplicatesQueries
(Content content, Set<DuplicateContentTypeConfiguration> duplicateContentTypeConfigurations, boolean nearDuplicates, String[] contentTypes) Get the list of queries to search for duplicatesMethods inherited from class org.ametys.cms.duplicate.contents.DuplicateContentsManager
_addDuplicatesContentTypes, _getConfigurationErrors, _getConfigurationWarns, _getContents, _getDuplicates, configure, getContentTypeIds, hasConfigurationErrors, logConfigurationErrors, searchDuplicates, searchDuplicates, searchDuplicates, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
DuplicateContentsManager
public DuplicateContentsManager()
-
-
Method Details
-
_getDuplicatesQueries
protected List<Query> _getDuplicatesQueries(Content content, Set<DuplicateContentTypeConfiguration> duplicateContentTypeConfigurations, boolean nearDuplicates, String[] contentTypes) Description copied from class:DuplicateContentsManager
Get the list of queries to search for duplicates- Overrides:
_getDuplicatesQueries
in classDuplicateContentsManager
- Parameters:
content
- The contentduplicateContentTypeConfigurations
- the attribute listnearDuplicates
- true to check for near duplicatescontentTypes
- the content types- Returns:
- list of duplicates
-