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:
@@ -151,30 +151,30 @@ public class PropertyFieldDefinition extends FieldDefinition
|
||||
*/
|
||||
public class FieldConstraint
|
||||
{
|
||||
protected String name;
|
||||
protected String type;
|
||||
protected Map<String, String> params;
|
||||
|
||||
/**
|
||||
* Constructs a FieldConstraint
|
||||
*
|
||||
* @param name The name of the constraint
|
||||
* @param type The type of the constraint
|
||||
* @param params Map of parameters for the constraint
|
||||
*/
|
||||
public FieldConstraint(String name, Map<String, String> params)
|
||||
public FieldConstraint(String type, Map<String, String> params)
|
||||
{
|
||||
super();
|
||||
this.name = name;
|
||||
this.type = type;
|
||||
this.params = params;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the constraint
|
||||
* Returns the type of the constraint
|
||||
*
|
||||
* @return The constraint name
|
||||
* @return The constraint type
|
||||
*/
|
||||
public String getName()
|
||||
public String getType()
|
||||
{
|
||||
return this.name;
|
||||
return this.type;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user