Class ContentDuplicateAttributeConfiguration
java.lang.Object
org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration<ContentValue>
org.ametys.cms.duplicate.contents.attr.impl.ContentDuplicateAttributeConfiguration
- All Implemented Interfaces:
DuplicateAttributeConfiguration<ContentValue>
public class ContentDuplicateAttributeConfiguration
extends AbstractDuplicateAttributeConfiguration<ContentValue>
Represents a
DuplicateAttributeConfiguration for a ContentValue-
Field Summary
Fields inherited from class org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration
_checkNearDuplicate, _path, _type, ROLE -
Constructor Summary
ConstructorsConstructorDescriptionContentDuplicateAttributeConfiguration(Configuration configuration, String attributeType) Create a new ContentDuplicateAttributeConfiguration -
Method Summary
Modifier and TypeMethodDescriptionprotected QuerygetDuplicateQuery(ContentValue value) Get the query to check if other contents have the same valueprotected QueryGet the query to check if a field is filledMethods inherited from class org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration
_computeCheckNearDuplicate, checkNearDuplicate, getDuplicate, getNearDuplicateQuery, getPath, getQuery, getType, isEmpty, setPath, setType
-
Constructor Details
-
ContentDuplicateAttributeConfiguration
public ContentDuplicateAttributeConfiguration(Configuration configuration, String attributeType) throws ConfigurationException Create a new ContentDuplicateAttributeConfiguration- Parameters:
configuration- the configuration used to create the DuplicateAttributeConfigurationattributeType- the attribute type id- Throws:
ConfigurationException- if the configuration is not valid.
-
-
Method Details
-
getExistQuery
Description copied from class:AbstractDuplicateAttributeConfigurationGet the query to check if a field is filled- Specified by:
getExistQueryin classAbstractDuplicateAttributeConfiguration<ContentValue>- Returns:
- the query
-
getDuplicateQuery
Description copied from class:AbstractDuplicateAttributeConfigurationGet the query to check if other contents have the same value- Specified by:
getDuplicateQueryin classAbstractDuplicateAttributeConfiguration<ContentValue>- Parameters:
value- the value to check- Returns:
- the query
-