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:
Gavin Cornwell
2009-04-20 14:53:04 +00:00
parent c09c6ac692
commit 966201871c
9 changed files with 211 additions and 106 deletions

View File

@@ -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
*