Interface ConstraintService
- All Known Implementing Classes:
DefaultConstraintService
public interface ConstraintService
Service to read
constraints.- Spring Bean ID:
- constraintService
-
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.boolean
-
Method Details
-
getConstraintedComposedTypes
List<ComposedTypeModel> getConstraintedComposedTypes()Gets the list of composed type 'affected' by any attached constraint, this means haveAbstractConstraintModel.TYPEset as reference to existing type in system. -
getPojoRelatedConstraints
List<AbstractConstraintModel> getPojoRelatedConstraints()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. -
getAllConstraints
List<AbstractConstraintModel> getAllConstraints()Gets all constraints instances. -
isConstraintDuplicated
- Parameters:
model- 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
-