Class DuplicateContentTypeConfiguration
java.lang.Object
org.ametys.cms.duplicate.contents.DuplicateContentTypeConfiguration
Represents the configuration for a content type of content duplicate detection configuration
-
Constructor Summary
ConstructorDescriptionDuplicateContentTypeConfiguration
(Configuration configuration, DuplicateContentsManager duplicateContentsManager) Create a new DuplicateContentTypeConfiguration -
Method Summary
Modifier and TypeMethodDescriptionGet the attribute listGet the content type idget the list of errorsgetWarns()
get the list of warnsboolean
Check if the content type has any attributes that require near duplicate check
-
Constructor Details
-
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 Details
-
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
Get the content type id- Returns:
- the content type id
-
getAttributeList
Get the attribute list- Returns:
- the attribute list
-
getErrors
get the list of errors- Returns:
- the error list
-
getWarns
get the list of warns- Returns:
- the warn list
-