Class DuplicateContentTypeConfiguration
- java.lang.Object
-
- org.ametys.cms.duplicate.contents.DuplicateContentTypeConfiguration
-
public class DuplicateContentTypeConfiguration extends Object
Represents the configuration for a content type of content duplicate detection configuration
-
-
Constructor Summary
Constructors Constructor Description DuplicateContentTypeConfiguration(Configuration configuration, DuplicateContentsManager duplicateContentsManager)
Create a new DuplicateContentTypeConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DuplicateAttributeConfiguration>
getAttributeList()
Get the attribute listString
getContentTypeId()
Get the content type idList<Pair<String,List<Object>>>
getErrors()
get the list of errorsList<Pair<String,List<Object>>>
getWarns()
get the list of warnsboolean
hasAnyNearDuplicateAttributes()
Check if the content type has any attributes that require near duplicate check
-
-
-
Constructor Detail
-
DuplicateContentTypeConfiguration
public DuplicateContentTypeConfiguration(Configuration configuration, DuplicateContentsManager duplicateContentsManager) throws ConfigurationException
Create a new DuplicateContentTypeConfiguration- Parameters:
configuration
- the configuration used to create the DuplicateContentTypeConfigurationduplicateContentsManager
- the duplicate contents manager, only use this parameter to get linked components- Throws:
ConfigurationException
- if the configuration is not valid.
-
-
Method Detail
-
hasAnyNearDuplicateAttributes
public boolean hasAnyNearDuplicateAttributes()
Check if the content type has any attributes that require near duplicate check- Returns:
- true if the content type has any attributes that require near duplicate check
-
getContentTypeId
public String getContentTypeId()
Get the content type id- Returns:
- the content type id
-
getAttributeList
public List<DuplicateAttributeConfiguration> getAttributeList()
Get the attribute list- Returns:
- the attribute list
-
getErrors
public List<Pair<String,List<Object>>> getErrors()
get the list of errors- Returns:
- the error list
-
-