- Added the notion of actions only being applicable for certain node types

- 'Run Action' is now available on folder details page

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2006-05-11 10:38:42 +00:00
parent 011df54dc1
commit c05de860b6
7 changed files with 154 additions and 1 deletions

View File

@@ -16,6 +16,10 @@
*/
package org.alfresco.service.cmr.action;
import java.util.List;
import org.alfresco.service.namespace.QName;
/**
@@ -25,5 +29,10 @@ package org.alfresco.service.cmr.action;
*/
public interface ActionDefinition extends ParameterizedItemDefinition
{
/**
* Gets a list of the types that this action item is applicable for
*
* @return list of types
*/
public List<QName> getApplicableTypes();
}

View File

@@ -43,6 +43,15 @@ public interface ActionService
* @return the list action definitions
*/
List<ActionDefinition> getActionDefinitions();
/**
* Get all the action definitions that are applicable for the given node, based on
* its type and aspects.
*
* @param nodeRef the node reference
* @return a list of applicable action definitions
*/
List<ActionDefinition> getActionDefinitions(NodeRef nodeRef);
/**
* Get a named action condition definition