com.redhat.rhn.frontend.action.kickstart
Class ActivationKeysSubmitAction

java.lang.Object
  extended by LookupDispatchAction
      extended by com.redhat.rhn.frontend.struts.RhnLookupDispatchAction
          extended by com.redhat.rhn.frontend.struts.RhnListDispatchAction
              extended by com.redhat.rhn.frontend.action.common.RhnSetAction
                  extended by com.redhat.rhn.frontend.action.common.BaseSetOperateOnDiffAction
                      extended by com.redhat.rhn.frontend.action.kickstart.BaseKickstartListSubmitAction
                          extended by com.redhat.rhn.frontend.action.kickstart.ActivationKeysSubmitAction

public class ActivationKeysSubmitAction
extends BaseKickstartListSubmitAction

ActivationKeysSubmitAction.


Field Summary
static java.lang.String UPDATE_METHOD
           
 
Fields inherited from class com.redhat.rhn.frontend.struts.RhnLookupDispatchAction
SUBMITTED
 
Constructor Summary
ActivationKeysSubmitAction()
           
 
Method Summary
protected  java.util.Iterator getCurrentItemsIterator(RequestContext ctx)
          Get the Iterator for a Collection of Objects that implement the Identifiable interface.
protected  DataResult getDataResult(User userIn, ActionForm formIn, HttpServletRequest request)
          
 RhnSetDecl getSetDecl()
          Get the RhnSet 'Decl' for the action
protected  void operateOnAddedElements(java.util.List elements, HttpServletRequest request)
          Operate on the added elements, whatever that entails for a given subclass.
protected  void operateOnRemovedElements(java.util.List elements, HttpServletRequest request)
          Operate on the removed elements, whatever that entails for a given subclass.
protected  void processMethodKeys(java.util.Map map)
          This method is used to add additional buttons to a list display.
 
Methods inherited from class com.redhat.rhn.frontend.action.kickstart.BaseKickstartListSubmitAction
processParamMap
 
Methods inherited from class com.redhat.rhn.frontend.action.common.BaseSetOperateOnDiffAction
generateUserMessage, operateOnDiff
 
Methods inherited from class com.redhat.rhn.frontend.action.common.RhnSetAction
getKeyMethodMap, getSetName, selectall, unselectall, unspecified, updatelist, updateSet
 
Methods inherited from class com.redhat.rhn.frontend.struts.RhnListDispatchAction
createSuccessMessage, filter, getForwardName, makeParamMap
 
Methods inherited from class com.redhat.rhn.frontend.struts.RhnLookupDispatchAction
getMethodName, getStrutsDelegate, isSubmitted, l10n, lv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE_METHOD

public static final java.lang.String UPDATE_METHOD
See Also:
Constant Field Values
Constructor Detail

ActivationKeysSubmitAction

public ActivationKeysSubmitAction()
Method Detail

getDataResult

protected DataResult getDataResult(User userIn,
                                   ActionForm formIn,
                                   HttpServletRequest request)

Specified by:
getDataResult in class RhnSetAction

operateOnRemovedElements

protected void operateOnRemovedElements(java.util.List elements,
                                        HttpServletRequest request)
Operate on the removed elements, whatever that entails for a given subclass. This method is called immediately before operateOnAddedElements.

Specified by:
operateOnRemovedElements in class BaseSetOperateOnDiffAction
Parameters:
elements - The elements which were removed
request - The request

operateOnAddedElements

protected void operateOnAddedElements(java.util.List elements,
                                      HttpServletRequest request)
Operate on the added elements, whatever that entails for a given subclass. This method is called immediately after operateOnRemovedElements.

Specified by:
operateOnAddedElements in class BaseSetOperateOnDiffAction
Parameters:
elements - The elements which were added
request - The request

getSetDecl

public RhnSetDecl getSetDecl()
Description copied from class: BaseSetOperateOnDiffAction
Get the RhnSet 'Decl' for the action

Specified by:
getSetDecl in class BaseSetOperateOnDiffAction
Returns:
security label for activation keys

processMethodKeys

protected void processMethodKeys(java.util.Map map)
This method is used to add additional buttons to a list display. It is called from getKeyMethodMap. Simply add your resource bundle name as the key to the given map, and the method name as the value. For example, if you have a resource bundle key of "failed.jsp.rescheduleActions" and a method in your Struts action called "rescheduleAll" the result should look as follows: map.put("failed.jsp.rescheduleActions", "rescheduleAll"); If there are no additional actions then simply return.

Specified by:
processMethodKeys in class RhnListDispatchAction
Parameters:
map - Mapping between method and button names.

getCurrentItemsIterator

protected java.util.Iterator getCurrentItemsIterator(RequestContext ctx)
Description copied from class: BaseSetOperateOnDiffAction
Get the Iterator for a Collection of Objects that implement the Identifiable interface. This is required so this base class can calculate the original set of items that are associated with the main object we are operating on. This iterator is then 'diffed' against the items in the RhnSet to determine what should be added vs removed.

Specified by:
getCurrentItemsIterator in class BaseSetOperateOnDiffAction
Parameters:
ctx - to fetch info from
Returns:
Iterator containing Identifiable objects.