Package org.alfresco.service.cmr.action
Interface ActionList<A extends Action>
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
CompositeAction,CompositeRenditionDefinition
- All Known Implementing Classes:
ActionListImpl,CompositeActionImpl,CompositeRenditionDefinitionImpl
- Author:
- Nick Smith
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an action to the list at the index specifiedvoidAdd an action to the end of the listgetAction(int index) Get an action at a given indexGet list containing the actions in their current orderbooleanIndicates whether there are any actionsintindexOfAction(A action) Gets the index of an actionvoidremoveAction(A action) Remove an action from the listvoidRemove all actions from the listvoidReplace the action at the specfied index with the passed action.
-
Method Details
-
hasActions
boolean hasActions()Indicates whether there are any actions- Returns:
- true if there are actions, false otherwise
-
addAction
Add an action to the end of the list- Parameters:
action- the action
-
addAction
Add an action to the list at the index specified- Parameters:
index- the indexaction- the action
-
setAction
Replace the action at the specfied index with the passed action.- Parameters:
index- the indexaction- the action
-
indexOfAction
Gets the index of an action- Parameters:
action- the action- Returns:
- the index
-
getActions
Get list containing the actions in their current order- Returns:
- the list of actions
-
getAction
Get an action at a given index- Parameters:
index- the index- Returns:
- the action
-
removeAction
Remove an action from the list- Parameters:
action- the action
-
removeAllActions
void removeAllActions()Remove all actions from the list
-