Class LongDuplicateAttributeConfiguration
java.lang.Object
org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration<Long>
org.ametys.cms.duplicate.contents.attr.impl.LongDuplicateAttributeConfiguration
- All Implemented Interfaces:
DuplicateAttributeConfiguration<Long>
public class LongDuplicateAttributeConfiguration
extends AbstractDuplicateAttributeConfiguration<Long>
Represents a
DuplicateAttributeConfiguration
for a Long
-
Field Summary
Fields inherited from class org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration
_checkNearDuplicate, _path, _type, ROLE
-
Constructor Summary
ConstructorDescriptionLongDuplicateAttributeConfiguration
(Configuration configuration, String attributeType) Create a new LongDuplicateAttributeConfiguration -
Method Summary
Modifier and TypeMethodDescriptionprotected Query
getDuplicateQuery
(Long value) Get the query to check if other contents have the same valueprotected Query
Get 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
-
LongDuplicateAttributeConfiguration
public LongDuplicateAttributeConfiguration(Configuration configuration, String attributeType) throws ConfigurationException Create a new LongDuplicateAttributeConfiguration- 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:AbstractDuplicateAttributeConfiguration
Get the query to check if a field is filled- Specified by:
getExistQuery
in classAbstractDuplicateAttributeConfiguration<Long>
- Returns:
- the query
-
getDuplicateQuery
Description copied from class:AbstractDuplicateAttributeConfiguration
Get the query to check if other contents have the same value- Specified by:
getDuplicateQuery
in classAbstractDuplicateAttributeConfiguration<Long>
- Parameters:
value
- the value to check- Returns:
- the query
-