mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
FormService improvements
- A 'dataKeyName' property has been added to the field definition to point to the corresponding data - FormProcessors can now return a submission url to use on the client - FormProcessors are now responsible for returning a sensible URL to represent the 'item' being processed - Updated all affected tests git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14021 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -36,6 +36,7 @@ public abstract class FieldDefinition
|
||||
protected String description;
|
||||
protected String binding;
|
||||
protected String defaultValue;
|
||||
protected String dataKeyName;
|
||||
protected FieldGroup group;
|
||||
protected boolean protectedField = false;
|
||||
|
||||
@@ -141,6 +142,26 @@ public abstract class FieldDefinition
|
||||
this.defaultValue = defaultValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the key being used to hold the data for the field
|
||||
*
|
||||
* @return Name of the key being used to hold the data for the field
|
||||
*/
|
||||
public String getDataKeyName()
|
||||
{
|
||||
return this.dataKeyName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name of the key to be used to hold the data for the field
|
||||
*
|
||||
* @param dataKeyName The name of the key to be used to hold the data for the field
|
||||
*/
|
||||
public void setDataKeyName(String dataKeyName)
|
||||
{
|
||||
this.dataKeyName = dataKeyName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the group the field may be a part of
|
||||
*
|
||||
|
Reference in New Issue
Block a user