Class BooleanDuplicateAttributeConfiguration
- java.lang.Object
-
- org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration<Boolean>
-
- org.ametys.cms.duplicate.contents.attr.impl.BooleanDuplicateAttributeConfiguration
-
- All Implemented Interfaces:
DuplicateAttributeConfiguration<Boolean>
public class BooleanDuplicateAttributeConfiguration extends AbstractDuplicateAttributeConfiguration<Boolean>
Represents aDuplicateAttributeConfigurationfor aBoolean
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.duplicate.contents.attr.AbstractDuplicateAttributeConfiguration
_checkNearDuplicate, _path, _type, ROLE
-
-
Constructor Summary
Constructors Constructor Description BooleanDuplicateAttributeConfiguration(Configuration configuration, String attributeType)Create a new BooleanDuplicateAttributeConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QuerygetDuplicateQuery(Boolean value)Get the query to check if other contents have the same valueprotected QuerygetExistQuery()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
-
BooleanDuplicateAttributeConfiguration
public BooleanDuplicateAttributeConfiguration(Configuration configuration, String attributeType) throws ConfigurationException
Create a new BooleanDuplicateAttributeConfiguration- 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:AbstractDuplicateAttributeConfigurationGet the query to check if a field is filled- Specified by:
getExistQueryin classAbstractDuplicateAttributeConfiguration<Boolean>- Returns:
- the query
-
getDuplicateQuery
protected Query getDuplicateQuery(Boolean value)
Description copied from class:AbstractDuplicateAttributeConfigurationGet the query to check if other contents have the same value- Specified by:
getDuplicateQueryin classAbstractDuplicateAttributeConfiguration<Boolean>- Parameters:
value- the value to check- Returns:
- the query
-
-