org.alfresco.repo.action
Class CompositeActionImpl

java.lang.Object
  extended by org.alfresco.repo.action.ParameterizedItemImpl
      extended by org.alfresco.repo.action.ActionImpl
          extended by org.alfresco.repo.action.CompositeActionImpl
All Implemented Interfaces:
java.io.Serializable, Action, ActionList, CompositeAction, ParameterizedItem

public class CompositeActionImpl
extends ActionImpl
implements CompositeAction

Composite action implementation

See Also:
Serialized Form

Constructor Summary
CompositeActionImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String id)
          Constructor
 
Method Summary
 void addAction(Action action)
          Add an action to the end of the list
 void addAction(int index, Action action)
          Add an action to the list at the index specified
 Action getAction(int index)
          Get an action at a given index
 java.util.List getActions()
          Get list containing the actions in their current order
 boolean hasActions()
          Indicates whether there are any actions
 int indexOfAction(Action action)
          Gets the index of an action
 void removeAction(Action action)
          Remove an action from the list
 void removeAllActions()
          Remove all actions from the list
 void setAction(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, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionChain, setActionCondition, setCompensatingAction, setCreatedDate, setCreator, setDescription, setExecuteAsynchronously, setExecutionEndDate, setExecutionFailureMessage, setExecutionInstance, setExecutionStartDate, setExecutionStatus, setModifiedDate, setModifier, setNodeRef, setRunAsUser, 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
 

Constructor Detail

CompositeActionImpl

public CompositeActionImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                           java.lang.String id)
Constructor

Parameters:
id - the action id
Method Detail

addAction

public void addAction(Action action)
Description copied from interface: ActionList
Add an action to the end of the list

Specified by:
addAction in interface ActionList
Parameters:
action -
See Also:
ActionList.addAction(org.alfresco.service.cmr.action.Action)

addAction

public void addAction(int index,
                      Action action)
Description copied from interface: ActionList
Add an action to the list at the index specified

Specified by:
addAction in interface ActionList
Parameters:
index -
action -
See Also:
ActionList.addAction(int, org.alfresco.service.cmr.action.Action)

getAction

public Action getAction(int index)
Description copied from interface: ActionList
Get an action at a given index

Specified by:
getAction in interface ActionList
Parameters:
index -
Returns:
See Also:
ActionList.getAction(int)

getActions

public java.util.List getActions()
Description copied from interface: ActionList
Get list containing the actions in their current order

Specified by:
getActions in interface ActionList
Returns:
See Also:
ActionList.getActions()

hasActions

public boolean hasActions()
Description copied from interface: ActionList
Indicates whether there are any actions

Specified by:
hasActions in interface ActionList
Returns:
See Also:
ActionList.hasActions()

indexOfAction

public int indexOfAction(Action action)
Description copied from interface: ActionList
Gets the index of an action

Specified by:
indexOfAction in interface ActionList
Parameters:
action -
Returns:
See Also:
ActionList.indexOfAction(org.alfresco.service.cmr.action.Action)

removeAction

public void removeAction(Action action)
Description copied from interface: ActionList
Remove an action from the list

Specified by:
removeAction in interface ActionList
Parameters:
action -
See Also:
ActionList.removeAction(org.alfresco.service.cmr.action.Action)

removeAllActions

public void removeAllActions()
Description copied from interface: ActionList
Remove all actions from the list

Specified by:
removeAllActions in interface ActionList
See Also:
ActionList.removeAllActions()

setAction

public void setAction(int index,
                      Action action)
Description copied from interface: ActionList
Replace the action at the specfied index with the passed action.

Specified by:
setAction in interface ActionList
Parameters:
index -
action -
See Also:
ActionList.setAction(int, org.alfresco.service.cmr.action.Action)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.