A Constraint controls the input value of a property. Constraints can be used to validate the input values and to ensure certain predefined values for the properties. Constraints are defined separately from content types and aspects and referenced within a property type definition.
Alfresco provides four types of constraints out-of-the-box as follows. Apart from these, the custom constraints can be defined using Java Programming language.