org.dspace.app.itemupdate
Class ActionManager

java.lang.Object
  extended by org.dspace.app.itemupdate.ActionManager
All Implemented Interfaces:
Iterable<UpdateAction>

public class ActionManager
extends Object
implements Iterable<UpdateAction>

Container for UpdateActions Order of actions is very import for correct processing. This implementation supports an iterator that returns the actions in the order in which they are put in. Adding the same action a second time has no effect on this order.


Constructor Summary
ActionManager()
           
 
Method Summary
 UpdateAction getUpdateAction(Class<? extends UpdateAction> actionClass)
           
 boolean hasActions()
           
 Iterator<UpdateAction> iterator()
          This implementation guarantees the iterator order is the same as the order in which updateActions have been added
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionManager

public ActionManager()
Method Detail

getUpdateAction

public UpdateAction getUpdateAction(Class<? extends UpdateAction> actionClass)
                             throws InstantiationException,
                                    IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

hasActions

public boolean hasActions()
Returns:
whether any actions have been registered with this manager

iterator

public Iterator<UpdateAction> iterator()
This implementation guarantees the iterator order is the same as the order in which updateActions have been added

Specified by:
iterator in interface Iterable<UpdateAction>
Returns:
iterator for UpdateActions


Copyright © 2010 DuraSpace. All Rights Reserved.