public abstract class RhnSetAction extends RhnListDispatchAction
NOTE: RhnSetAction and RhnAction contain two duplicate methods -
getStrutsDelegate()
and createSuccessMessage()
. If another
method is added to these classes that is common to both we need to refactor the common
methods into a new class maybe called RhnActionDelegate
.
We cannot introduce a common base class because RhnSetAction and RhnAction fall into different inheritance hierarchies.
RhnAction
SUBMITTED
Constructor and Description |
---|
RhnSetAction() |
Modifier and Type | Method and Description |
---|---|
protected abstract DataResult |
getDataResult(User user,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request) |
protected java.util.Map<java.lang.String,java.lang.String> |
getKeyMethodMap() |
protected abstract RhnSetDecl |
getSetDecl()
The declaration of the set we are working with, must be one of the
constants from
RhnSetDecl |
protected java.lang.String |
getSetName() |
org.apache.struts.action.ActionForward |
selectall(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Puts all systems visible to the user into the system_list set.
|
org.apache.struts.action.ActionForward |
unselectall(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Clears system_list set for the user.
|
org.apache.struts.action.ActionForward |
unspecified(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Default action to execute if dispatch parameter is missing
or isn't in map
|
org.apache.struts.action.ActionForward |
updatelist(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Updates RhnSet with checked set elements
|
protected RhnSet |
updateSet(javax.servlet.http.HttpServletRequest request)
Updates the set with the items on the current page
|
createSuccessMessage, filter, getForwardName, makeParamMap, processMethodKeys, processParamMap
getMethodName, getStrutsDelegate, isSubmitted, l10n, lv
execute, getLookupMapName
cancelled, dispatchMethod, getMethod, getParameter
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
public org.apache.struts.action.ActionForward updatelist(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- ActionMappingformIn
- ActionFormrequest
- ServletRequestresponse
- ServletResponseprotected RhnSet updateSet(javax.servlet.http.HttpServletRequest request)
request
- The request containing items_on_page and items_selectedpublic org.apache.struts.action.ActionForward selectall(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- ActionMappingformIn
- ActionFormrequest
- ServletRequestresponse
- ServletResponsepublic org.apache.struts.action.ActionForward unselectall(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- ActionMappingformIn
- ActionFormrequest
- ServletRequestresponse
- ServletResponsepublic org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
unspecified
in class RhnListDispatchAction
mapping
- ActionMappingformIn
- ActionFormrequest
- ServletRequestresponse
- ServletResponseprotected java.util.Map<java.lang.String,java.lang.String> getKeyMethodMap()
getKeyMethodMap
in class RhnListDispatchAction
protected abstract RhnSetDecl getSetDecl()
RhnSetDecl
protected final java.lang.String getSetName()
protected abstract DataResult getDataResult(User user, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request)