-
Book Overview & Buying
-
Table Of Contents
Alfresco 3 Enterprise Content Management Implementation
By :
A Constraint controls the input value of a property. Constraints can be used to validate input values, and to ensure the use of certain predefined values for the properties. Constraints are defined separately from content types and aspects, and are referenced within a property type definition.
Alfresco provides four types of constraints out of the box, as follows. Apart from these four, the custom constraints can be defined by using Java Programming Language.
REGEX: ensures that a property value matches a defined regular expression pattern
LIST: ensures that a property value is picked up from a list of predefined values
MINMAX: ensures that the given property value falls within a defined numeric range
LENGTH: ensures that the given property value falls within a defined character length range
The
following REGEX expression ensures that the property "filename" does not match the defined regular expression pattern. This constraint thus ensures that the file...
Change the font size
Change margin width
Change background colour