mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user