Class DuplicateContentConfiguration
java.lang.Object
org.ametys.cms.duplicate.contents.DuplicateContentConfiguration
Represents the global configuration of content duplicate detection configuration
-
Constructor Summary
ConstructorDescriptionDuplicateContentConfiguration
(Configuration configuration, DuplicateContentsManager duplicateContentsManager) Create a new DuplicateContentConfiguration -
Method Summary
Modifier and TypeMethodDescriptionGet the DuplicateContentTypeConfiguration related to a given content typeGet the content type configuration mapGet the list of duplicate content typesget the list of errorsgetWarns()
get the list of warnsvoid
setContentTypes
(Map<String, DuplicateContentTypeConfiguration> contentTypes) Set the content type configuration map
-
Constructor Details
-
DuplicateContentConfiguration
public DuplicateContentConfiguration(Configuration configuration, DuplicateContentsManager duplicateContentsManager) throws ConfigurationException Create a new DuplicateContentConfiguration- Parameters:
configuration
- the configuration used to create the DuplicateContentConfigurationduplicateContentsManager
- the duplicate contents manager, only use this parameter to get linked components- Throws:
ConfigurationException
- if the configuration is not valid.
-
-
Method Details
-
getContentTypes
Get the content type configuration map- Returns:
- the content type configuration map
-
setContentTypes
Set the content type configuration map- Parameters:
contentTypes
- the content type configuration map
-
getDuplicatesContentTypes
Get the list of duplicate content types- Returns:
- the list of duplicate content types
-
get
Get the DuplicateContentTypeConfiguration related to a given content type- Parameters:
duplicateContentTypeId
- the id of the content type- Returns:
- the DuplicateContentTypeConfiguration
-
getErrors
get the list of errors- Returns:
- the error list
-
getWarns
get the list of warns- Returns:
- the warn list
-