com.redhat.rhn.frontend.action.kickstart
Class ActivationKeysSubmitAction
java.lang.Object
LookupDispatchAction
com.redhat.rhn.frontend.struts.RhnLookupDispatchAction
com.redhat.rhn.frontend.struts.RhnListDispatchAction
com.redhat.rhn.frontend.action.common.RhnSetAction
com.redhat.rhn.frontend.action.common.BaseSetOperateOnDiffAction
com.redhat.rhn.frontend.action.kickstart.BaseKickstartListSubmitAction
com.redhat.rhn.frontend.action.kickstart.ActivationKeysSubmitAction
public class ActivationKeysSubmitAction
- extends BaseKickstartListSubmitAction
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPDATE_METHOD
public static final java.lang.String UPDATE_METHOD
- See Also:
- Constant Field Values
ActivationKeysSubmitAction
public ActivationKeysSubmitAction()
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 removedrequest - 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 addedrequest - 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.