mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Updates to data dictionary constraints
- Added getType and getParameters methods to Constraint interface - Updated existing constraint implementations Updates to FormService - Implemented regex pattern match for selecting appropriate form processor - Added constraints to Form object constructed in NodeHandler git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12396 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package org.alfresco.service.cmr.dictionary;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* The interface for classes that implement constraints on property values.
|
||||
@@ -43,6 +45,21 @@ package org.alfresco.service.cmr.dictionary;
|
||||
*/
|
||||
public interface Constraint
|
||||
{
|
||||
/**
|
||||
* Returns the 'type' of the constraint, this is the identifier given to
|
||||
* constraint in the configuration.
|
||||
*
|
||||
* @return The type
|
||||
*/
|
||||
public String getType();
|
||||
|
||||
/**
|
||||
* Returns the parameters passed to the instance of the constraint.
|
||||
*
|
||||
* @return Map of parameters, null if there are no parameters
|
||||
*/
|
||||
public Map<String, Object> getParameters();
|
||||
|
||||
/**
|
||||
* Initializes the constraint with appropriate values, which will depend
|
||||
* on the implementation itself. This method can be implemented as a
|
||||
|
Reference in New Issue
Block a user