Support for action parameter constraints added to action service

An action parameter constraint provides a way to list the valid values that an action or action constraint parameter can take.  This
means more information about the action or action condition is available to the user of the action.
  
Currently there is only an implementation for enum parameter values, but this will be extended as the existing action implementations
are reviewed and value constraints are added as required.

The REST API can now be extended to provide this additional information.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18489 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2010-02-08 04:37:45 +00:00
parent 79852d5b1b
commit 8c2c15c5c9
16 changed files with 599 additions and 35 deletions

View File

@@ -84,6 +84,23 @@ public interface ActionService
@Auditable(parameters = {})
List<ActionConditionDefinition> getActionConditionDefinitions();
/**
* Get a named parameter constraint
*
* @param name the name of the parameter constraint
* @return this parameter condition
*/
@Auditable(parameters = {"name"})
ParameterConstraint getParameterConstraint(String name);
/**
* Get all the parameter constraints
*
* @return the list of all parameter constraints
*/
@Auditable(parameters = {})
List<ParameterConstraint> getParameterConstraints();
/**
* Create a new action
*