- 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,7 +16,10 @@
*/
package org.alfresco.repo.action;
import java.util.List;
import org.alfresco.service.cmr.action.ActionDefinition;
import org.alfresco.service.namespace.QName;
/**
* Rule action implementation class
@@ -35,6 +38,9 @@ public class ActionDefinitionImpl extends ParameterizedItemDefinitionImpl
* The rule action executor
*/
private String ruleActionExecutor;
/** List of applicable types */
private List<QName> applicableTypes;
/**
* Constructor
@@ -65,4 +71,24 @@ public class ActionDefinitionImpl extends ParameterizedItemDefinitionImpl
{
return ruleActionExecutor;
}
/**
* Gets the list of applicable types
*
* @return the list of qnames
*/
public List<QName> getApplicableTypes()
{
return this.applicableTypes;
}
/**
* Sets the list of applicable types
*
* @param applicableTypes the applicable types
*/
public void setApplicableTypes(List<QName> applicableTypes)
{
this.applicableTypes = applicableTypes;
}
}