public abstract class BaseSetListAction extends BaseListAction
| Constructor and Description |
|---|
BaseSetListAction() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.util.Iterator |
getSelectedItemsIterator(RequestContext ctx,
org.apache.struts.action.ActionForm form)
Extend this method to return an initial pre-selection list
So the items returned here will get automatically selected in
the rhn set.
|
abstract RhnSetDecl |
getSetDecl()
The declaration of the set we are working with, must be one of the
constants from
RhnSetDecl |
protected void |
populateNewSet(RequestContext rctx,
java.util.Iterator identifiables)
Helper method to prePopulate a new set
This method is utiliy method NOT intended to be extended
It can be used when overriding the 'processRequestAttributes' method
A good use case for this method is when are preselecting a list of items
from the global list.
|
protected boolean |
preClearSet()
Should we clear the RhnSet for this action when beginning a new request? (i.e.
|
protected void |
processForm(RequestContext rctx,
org.apache.struts.action.ActionForm form)
Process a form.
|
protected void |
processRequestAttributes(RequestContext rctx)
Add attributes to the request.
|
checkPreConditions, getDataResult, getNewPageControl, processPageControlclampListBounds, trackSetaddGlobalMessage, addGlobalMessage, addMessage, createErrorMessage, createErrorMessageWithMultipleArgs, createLabelValueList, createMessage, createSuccessMessage, getStrutsDelegate, isSubmitted, l10n, localize, lv, lve, lvel10n, lvl10n, makeParamMap, saveMessagesaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveToken, setLocale, setServletpublic abstract RhnSetDecl getSetDecl()
RhnSetDeclprotected void processRequestAttributes(RequestContext rctx)
processRequestAttributes in class BaseListActionrctx - the context of the current requestprotected final void populateNewSet(RequestContext rctx, java.util.Iterator identifiables)
rctx - a request context objectidentifiables - A Iterator iterating over items of type
"com.redhat.rhn.domain.Identifiable"protected void processForm(RequestContext rctx, org.apache.struts.action.ActionForm form)
processForm in class BaseListActionrctx - The request contextform - struts ActionFormprotected java.util.Iterator getSelectedItemsIterator(RequestContext ctx, org.apache.struts.action.ActionForm form)
ctx - the request contextform - the ActionFormprotected boolean preClearSet()
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
execute in class BaseListAction