org.alfresco.service.cmr.action
Interface ActionList

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
CompositeAction, CompositeRenditionDefinition
All Known Implementing Classes:
ActionListImpl, CompositeActionImpl, CompositeRenditionDefinitionImpl

public interface ActionList
extends java.io.Serializable


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.
 

Method Detail

hasActions

boolean hasActions()
Indicates whether there are any actions

Returns:
true if there are actions, false otherwise

addAction

void addAction(Action action)
Add an action to the end of the list

Parameters:
action - the action

addAction

void addAction(int index,
               Action action)
Add an action to the list at the index specified

Parameters:
index - the index
action - the action

setAction

void setAction(int index,
               Action action)
Replace the action at the specfied index with the passed action.

Parameters:
index - the index
action - the action

indexOfAction

int indexOfAction(Action action)
Gets the index of an action

Parameters:
action - the action
Returns:
the index

getActions

java.util.List getActions()
Get list containing the actions in their current order

Returns:
the list of actions

getAction

Action getAction(int index)
Get an action at a given index

Parameters:
index - the index
Returns:
the action

removeAction

void removeAction(Action action)
Remove an action from the list

Parameters:
action - the action

removeAllActions

void removeAllActions()
Remove all actions from the list



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