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
public class DuplicateContentsManager extends DuplicateContentsManager
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
Constructors Constructor Description DuplicateContentsManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Query>
_getDuplicatesQueries(Content content, Set<DuplicateContentTypeConfiguration> duplicateContentTypeConfigurations, boolean nearDuplicates, String[] contentTypes)
Get the list of queries to search for duplicates-
Methods 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 Detail
-
DuplicateContentsManager
public DuplicateContentsManager()
-
-
Method Detail
-
_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
-
-