1 17 package org.alfresco.service.cmr.action; 18 19 import java.io.Serializable ; 20 import java.util.List ; 21 import java.util.Map ; 22 23 import org.alfresco.service.cmr.repository.NodeRef; 24 25 30 public interface ActionService 31 { 32 38 ActionDefinition getActionDefinition(String name); 39 40 45 List <ActionDefinition> getActionDefinitions(); 46 47 53 ActionConditionDefinition getActionConditionDefinition(String name); 54 55 60 List <ActionConditionDefinition> getActionConditionDefinitions(); 61 62 68 Action createAction(String name); 69 70 77 Action createAction(String name, Map <String , Serializable > params); 78 79 84 CompositeAction createCompositeAction(); 85 86 92 ActionCondition createActionCondition(String name); 93 94 101 ActionCondition createActionCondition(String name, Map <String , Serializable > params); 102 103 111 void executeAction(Action action, NodeRef actionedUponNodeRef); 112 113 122 void executeAction(Action action, NodeRef actionedUponNodeRef, boolean checkConditions); 123 124 143 void executeAction(Action action, NodeRef actionedUponNodeRef, boolean checkConditions, boolean executeAsynchronously); 144 145 157 boolean evaluateAction(Action action, NodeRef actionedUponNodeRef); 158 159 166 boolean evaluateActionCondition(ActionCondition condition, NodeRef actionedUponNodeRef); 167 168 178 void saveAction(NodeRef nodeRef, Action action); 179 180 186 List <Action> getActions(NodeRef nodeRef); 187 188 197 Action getAction(NodeRef nodeRef, String actionId); 198 199 205 void removeAction(NodeRef nodeRef, Action action); 206 207 212 void removeAllActions(NodeRef nodeRef); 213 214 } 215 | Popular Tags |