Class DefaultConstraintService
java.lang.Object
de.hybris.platform.validation.services.impl.DefaultConstraintService
- All Implemented Interfaces:
ConstraintService
Default implementation of the
ConstraintService interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets all constraints instances.Gets the list of composed type 'affected' by any attached constraint, this means haveAbstractConstraintModel.TYPEset as reference to existing type in system.Gets the list of theAbstractConstraintModelwhich are attached to any POJO and are not attached to any model, this means not have haveAbstractConstraintModel.TYPEset as reference to existing type in system.booleanisConstraintDuplicated(AbstractConstraintModel constraint) voidsetConstraintDao(ConstraintDao constraintDao)
-
Constructor Details
-
DefaultConstraintService
public DefaultConstraintService()
-
-
Method Details
-
getAllConstraints
Description copied from interface:ConstraintServiceGets all constraints instances.- Specified by:
getAllConstraintsin interfaceConstraintService
-
getConstraintedComposedTypes
Description copied from interface:ConstraintServiceGets the list of composed type 'affected' by any attached constraint, this means haveAbstractConstraintModel.TYPEset as reference to existing type in system.- Specified by:
getConstraintedComposedTypesin interfaceConstraintService
-
getPojoRelatedConstraints
Description copied from interface:ConstraintServiceGets the list of theAbstractConstraintModelwhich are attached to any POJO and are not attached to any model, this means not have haveAbstractConstraintModel.TYPEset as reference to existing type in system.- Specified by:
getPojoRelatedConstraintsin interfaceConstraintService
-
setConstraintDao
-
isConstraintDuplicated
- Specified by:
isConstraintDuplicatedin interfaceConstraintService- Parameters:
constraint- constraint instance which duplicates of are searched for- Returns:
trueif there is at least one constraint of- the same type annotation
AbstractConstraintModel.ANNOTATION - which is attached to the same
GeneratedCatalogConstants.Attributes.ComposedType/POJO ( via parameterAbstractConstraintModel.TARGET) or to the sameAttributeDescriptor/POJO's attribute ( via parameterAbstractConstraintModel.TARGET.AttributeConstraintModel.QUALIFIER)AttributeConstraintModel.QUALIFIER) - and is active
AbstractConstraintModel.ACTIVE
false- the same type annotation
-