Class DateDuplicateAttributeConfiguration
- java.lang.Object
-
- org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration<LocalDate>
-
- org.ametys.cms.duplicate.contents.attr.impl.DateDuplicateAttributeConfiguration
-
- All Implemented Interfaces:
DuplicateAttributeConfiguration<LocalDate>
public class DateDuplicateAttributeConfiguration extends AbstractDuplicateAttributeConfiguration<LocalDate>
Represents aDuplicateAttributeConfiguration
for aLocalDate
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration
_checkNearDuplicate, _path, _type, ROLE
-
-
Constructor Summary
Constructors Constructor Description DateDuplicateAttributeConfiguration(Configuration configuration, String attributeType)
Create a new DateDuplicateAttributeConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Query
getDuplicateQuery(LocalDate value)
Get the query to check if other contents have the same valueprotected Query
getExistQuery()
Get the query to check if a field is filled-
Methods inherited from class org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration
_computeCheckNearDuplicate, checkNearDuplicate, getDuplicate, getNearDuplicateQuery, getPath, getQuery, getType, isEmpty, setPath, setType
-
-
-
-
Constructor Detail
-
DateDuplicateAttributeConfiguration
public DateDuplicateAttributeConfiguration(Configuration configuration, String attributeType) throws ConfigurationException
Create a new DateDuplicateAttributeConfiguration- Parameters:
configuration
- the configuration used to create the DuplicateAttributeConfigurationattributeType
- the attribute type id- Throws:
ConfigurationException
- if the configuration is not valid.
-
-
Method Detail
-
getExistQuery
protected Query getExistQuery()
Description copied from class:AbstractDuplicateAttributeConfiguration
Get the query to check if a field is filled- Specified by:
getExistQuery
in classAbstractDuplicateAttributeConfiguration<LocalDate>
- Returns:
- the query
-
getDuplicateQuery
protected Query getDuplicateQuery(LocalDate value)
Description copied from class:AbstractDuplicateAttributeConfiguration
Get the query to check if other contents have the same value- Specified by:
getDuplicateQuery
in classAbstractDuplicateAttributeConfiguration<LocalDate>
- Parameters:
value
- the value to check- Returns:
- the query
-
-