public abstract class BaseListAction extends RhnListAction
Constructor and Description |
---|
BaseListAction() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
checkPreConditions(RequestContext rctx)
Override if you want to check a precondition before executing this Action.
|
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 abstract DataResult |
getDataResult(RequestContext rctx,
PageControl pc)
Returns the list data used by the list
|
protected PageControl |
getNewPageControl(RequestContext rctx)
Method to get a new instance of a page control.
|
protected void |
processForm(RequestContext ctxt,
org.apache.struts.action.ActionForm form)
Process a form.
|
protected void |
processPageControl(PageControl pc)
Extension point to allow controlling the pagination such as
turning on filtering, alphabar, etc.
|
protected void |
processRequestAttributes(RequestContext rctx)
Add attributes to the request.
|
clampListBounds, trackSet
addGlobalMessage, addGlobalMessage, addMessage, createErrorMessage, createErrorMessageWithMultipleArgs, createLabelValueList, createMessage, createSuccessMessage, getStrutsDelegate, isSubmitted, l10n, localize, lv, lve, lvel10n, lvl10n, makeParamMap, saveMessages
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveToken, setLocale, setServlet
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 org.apache.struts.action.Action
protected PageControl getNewPageControl(RequestContext rctx)
rctx
- RequestContext for this requestprotected void processPageControl(PageControl pc)
pc
- PageControlprotected void processRequestAttributes(RequestContext rctx)
rctx
- the context of the current requestprotected java.lang.String checkPreConditions(RequestContext rctx)
rctx
- the context of the current requestprotected abstract DataResult getDataResult(RequestContext rctx, PageControl pc)
rctx
- Currently active RequestContext.pc
- boundary valuesprotected void processForm(RequestContext ctxt, org.apache.struts.action.ActionForm form)
ctxt
- The request contextform
- struts ActionForm