com.redhat.rhn.frontend.action.errata
Class AddPackagesAction

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.errata.AddPackagesAction

public class AddPackagesAction
extends RhnSetAction

AddPackagesAction


Field Summary
 
Fields inherited from class com.redhat.rhn.frontend.struts.RhnLookupDispatchAction
SUBMITTED
 
Constructor Summary
AddPackagesAction()
           
 
Method Summary
 ActionForward confirm(ActionMapping mapping, ActionForm formIn, HttpServletRequest request, HttpServletResponse response)
          confirm handles updating the set and forwarding the user to the confirmation screen.
protected  DataResult getDataResult(User user, ActionForm formIn, HttpServletRequest request)
          
protected  RhnSetDecl getSetDecl()
          The declaration of the set we are working with, must be one of the constants from RhnSetDecl
protected  void processMethodKeys(java.util.Map map)
          This method is used to add additional buttons to a list display.
protected  void processParamMap(ActionForm formIn, HttpServletRequest request, java.util.Map params)
          
 ActionForward switchViews(ActionMapping mapping, ActionForm formIn, HttpServletRequest request, HttpServletResponse response)
          SwitchViews handles switching the view between packages available to an errata in any channel and packages available to an errata in a specific channel
 
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
 

Constructor Detail

AddPackagesAction

public AddPackagesAction()
Method Detail

confirm

public ActionForward confirm(ActionMapping mapping,
                             ActionForm formIn,
                             HttpServletRequest request,
                             HttpServletResponse response)
confirm handles updating the set and forwarding the user to the confirmation screen.

Parameters:
mapping - ActionMapping
formIn - ActionForm
request - Request
response - Response
Returns:
Returns the action forward for the confirm mapping.

switchViews

public ActionForward switchViews(ActionMapping mapping,
                                 ActionForm formIn,
                                 HttpServletRequest request,
                                 HttpServletResponse response)
SwitchViews handles switching the view between packages available to an errata in any channel and packages available to an errata in a specific channel

Parameters:
mapping - ActionMapping
formIn - ActionForm
request - Request
response - Response
Returns:
Returns the default action forward without pagination

getDataResult

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

Specified by:
getDataResult in class RhnSetAction

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.

processParamMap

protected void processParamMap(ActionForm formIn,
                               HttpServletRequest request,
                               java.util.Map params)

Specified by:
processParamMap in class RhnListDispatchAction

getSetDecl

protected RhnSetDecl getSetDecl()
Description copied from class: RhnSetAction
The declaration of the set we are working with, must be one of the constants from RhnSetDecl

Specified by:
getSetDecl in class RhnSetAction
Returns:
the declaration of the set we are working with