1 17 package org.alfresco.repo.action.executer; 18 19 import java.util.List ; 20 21 import org.alfresco.repo.action.RuntimeActionService; 22 import org.alfresco.service.cmr.action.Action; 23 import org.alfresco.service.cmr.action.CompositeAction; 24 import org.alfresco.service.cmr.action.ParameterDefinition; 25 import org.alfresco.service.cmr.repository.NodeRef; 26 27 32 public class CompositeActionExecuter extends ActionExecuterAbstractBase 33 { 34 37 public static final String NAME = "composite-action"; 38 39 42 private RuntimeActionService actionService; 43 44 49 public void setActionService(RuntimeActionService actionService) 50 { 51 this.actionService = actionService; 52 } 53 54 57 public void executeImpl(Action action, NodeRef actionedUponNodeRef) 58 { 59 if (action instanceof CompositeAction) 60 { 61 for (Action subAction : ((CompositeAction)action).getActions()) 62 { 63 this.actionService.directActionExecution(subAction, actionedUponNodeRef); 65 } 66 } 67 } 68 69 72 @Override 73 protected void addParameterDefintions(List <ParameterDefinition> paramList) 74 { 75 } 77 78 } 79 | Popular Tags |