Package org.alfresco.repo.action
Class CompositeActionImpl
- java.lang.Object
-
- org.alfresco.repo.action.ParameterizedItemImpl
-
- org.alfresco.repo.action.ActionImpl
-
- org.alfresco.repo.action.CompositeActionImpl
-
- All Implemented Interfaces:
java.io.Serializable,Action,ActionList<Action>,CompositeAction,ParameterizedItem
public class CompositeActionImpl extends ActionImpl implements CompositeAction
Composite action implementation- Author:
- Roy Wetherall
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositeActionImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String id)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAction(int index, Action action)Add an action to the list at the index specifiedvoidaddAction(Action action)Add an action to the end of the listActiongetAction(int index)Get an action at a given indexjava.util.List<Action>getActions()Get list containing the actions in their current orderbooleanhasActions()Indicates whether there are any actionsintindexOfAction(Action action)Gets the index of an actionvoidremoveAction(Action action)Remove an action from the listvoidremoveAllActions()Remove all actions from the listvoidsetAction(int index, Action action)Replace the action at the specfied index with the passed action.-
Methods inherited from class org.alfresco.repo.action.ActionImpl
addActionCondition, addActionCondition, addParameterValues, getActionChain, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionInstance, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getRunAsUser, getTenantId, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionChain, setActionCondition, setCompensatingAction, setCreatedDate, setCreator, setDescription, setExecuteAsynchronously, setExecutionEndDate, setExecutionFailureMessage, setExecutionInstance, setExecutionStartDate, setExecutionStatus, setModifiedDate, setModifier, setNodeRef, setRunAsUser, setTenantId, setTitle, setTrackStatus, toString
-
Methods inherited from class org.alfresco.repo.action.ParameterizedItemImpl
equals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValues
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.alfresco.service.cmr.action.Action
addActionCondition, addActionCondition, addParameterValues, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionCondition, setCompensatingAction, setDescription, setExecuteAsynchronously, setTitle, setTrackStatus
-
Methods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues
-
-
-
-
Method Detail
-
addAction
public void addAction(Action action)
Description copied from interface:ActionListAdd an action to the end of the list- Specified by:
addActionin interfaceActionList<Action>- Parameters:
action- Action- See Also:
ActionList.addAction(org.alfresco.service.cmr.action.Action)
-
addAction
public void addAction(int index, Action action)Description copied from interface:ActionListAdd an action to the list at the index specified- Specified by:
addActionin interfaceActionList<Action>- Parameters:
index- intaction- Action- See Also:
ActionList.addAction(int, org.alfresco.service.cmr.action.Action)
-
getAction
public Action getAction(int index)
Description copied from interface:ActionListGet an action at a given index- Specified by:
getActionin interfaceActionList<Action>- Parameters:
index- int- Returns:
- Action
- See Also:
ActionList.getAction(int)
-
getActions
public java.util.List<Action> getActions()
Description copied from interface:ActionListGet list containing the actions in their current order- Specified by:
getActionsin interfaceActionList<Action>- Returns:
- the list of actions
- See Also:
ActionList.getActions()
-
hasActions
public boolean hasActions()
Description copied from interface:ActionListIndicates whether there are any actions- Specified by:
hasActionsin interfaceActionList<Action>- Returns:
- boolean
- See Also:
ActionList.hasActions()
-
indexOfAction
public int indexOfAction(Action action)
Description copied from interface:ActionListGets the index of an action- Specified by:
indexOfActionin interfaceActionList<Action>- Parameters:
action- Action- Returns:
- int
- See Also:
ActionList.indexOfAction(org.alfresco.service.cmr.action.Action)
-
removeAction
public void removeAction(Action action)
Description copied from interface:ActionListRemove an action from the list- Specified by:
removeActionin interfaceActionList<Action>- Parameters:
action- Action- See Also:
ActionList.removeAction(org.alfresco.service.cmr.action.Action)
-
removeAllActions
public void removeAllActions()
Description copied from interface:ActionListRemove all actions from the list- Specified by:
removeAllActionsin interfaceActionList<Action>- See Also:
ActionList.removeAllActions()
-
setAction
public void setAction(int index, Action action)Description copied from interface:ActionListReplace the action at the specfied index with the passed action.- Specified by:
setActionin interfaceActionList<Action>- Parameters:
index- intaction- Action- See Also:
ActionList.setAction(int, org.alfresco.service.cmr.action.Action)
-
-