Package org.alfresco.repo.action
Class ActionListImpl<A extends Action>
- java.lang.Object
-
- org.alfresco.repo.action.ActionListImpl<A>
-
- All Implemented Interfaces:
java.io.Serializable,ActionList<A>
public class ActionListImpl<A extends Action> extends java.lang.Object implements ActionList<A>
- Author:
- Nick Smith
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActionListImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAction(int index, A action)Add an action to the list at the index specifiedvoidaddAction(A action)Add an action to the end of the listAgetAction(int index)Get an action at a given indexjava.util.List<A>getActions()Get list containing the actions in their current orderbooleanhasActions()Indicates whether there are any actionsintindexOfAction(A action)Gets the index of an actionvoidremoveAction(A action)Remove an action from the listvoidremoveAllActions()Remove all actions from the listvoidsetAction(int index, A action)Replace the action at the specfied index with the passed action.
-
-
-
Method Detail
-
hasActions
public boolean hasActions()
Description copied from interface:ActionListIndicates whether there are any actions- Specified by:
hasActionsin interfaceActionList<A extends Action>- Returns:
- true if there are actions, false otherwise
- See Also:
ActionList.hasActions()
-
addAction
public void addAction(A action)
Description copied from interface:ActionListAdd an action to the end of the list- Specified by:
addActionin interfaceActionList<A extends Action>- Parameters:
action- the action- See Also:
ActionList.addAction(org.alfresco.service.cmr.action.Action)
-
addAction
public void addAction(int index, A action)Description copied from interface:ActionListAdd an action to the list at the index specified- Specified by:
addActionin interfaceActionList<A extends Action>- Parameters:
index- the indexaction- the action- See Also:
ActionList.addAction(int, org.alfresco.service.cmr.action.Action)
-
setAction
public void setAction(int index, A action)Description copied from interface:ActionListReplace the action at the specfied index with the passed action.- Specified by:
setActionin interfaceActionList<A extends Action>- Parameters:
index- the indexaction- the action- See Also:
ActionList.setAction(int, org.alfresco.service.cmr.action.Action)
-
indexOfAction
public int indexOfAction(A action)
Description copied from interface:ActionListGets the index of an action- Specified by:
indexOfActionin interfaceActionList<A extends Action>- Parameters:
action- the action- Returns:
- the index
- See Also:
ActionList.indexOfAction(org.alfresco.service.cmr.action.Action)
-
getActions
public java.util.List<A> getActions()
Description copied from interface:ActionListGet list containing the actions in their current order- Specified by:
getActionsin interfaceActionList<A extends Action>- Returns:
- the list of actions
- See Also:
ActionList.getActions()
-
getAction
public A getAction(int index)
Description copied from interface:ActionListGet an action at a given index- Specified by:
getActionin interfaceActionList<A extends Action>- Parameters:
index- the index- Returns:
- the action
- See Also:
ActionList.getAction(int)
-
removeAction
public void removeAction(A action)
Description copied from interface:ActionListRemove an action from the list- Specified by:
removeActionin interfaceActionList<A extends Action>- Parameters:
action- the 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<A extends Action>- See Also:
ActionList.removeAllActions()
-
-