public class SystemEntitlementsSubmitAction extends BaseSetOperateOnSelectedItemsAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_ADD_ENTITLED |
static java.lang.String |
KEY_MANAGEMENT_ENTITLED |
static java.lang.String |
KEY_REMOVE_ENTITLED |
static java.lang.String |
KEY_UNENTITLED |
SUBMITTED
Constructor and Description |
---|
SystemEntitlementsSubmitAction() |
Modifier and Type | Method and Description |
---|---|
protected DataResult<SystemOverview> |
getDataResult(User user,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request) |
protected org.apache.struts.action.ActionMessage |
getEmptySelectionMessage() |
protected RhnSetDecl |
getSetDecl()
The declaration of the set we are working with, must be one of the
constants from
RhnSetDecl |
org.apache.struts.action.ActionForward |
operateAddOnEntitlements(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean add)
Execute some operation on the set of selected items.
|
org.apache.struts.action.ActionForward |
processAdd(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.apache.struts.action.ActionForward |
processManagementEntitled(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
processMessage(org.apache.struts.action.ActionMessages msg,
java.lang.String methodName,
long successCount,
long failureCount)
This basically adds all the action messages
that will be used for validation errors
or status messages
|
protected void |
processMethodKeys(java.util.Map<java.lang.String,java.lang.String> map)
This method is used to add additional buttons to a list display.
|
protected void |
processParamMap(org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
java.util.Map<java.lang.String,java.lang.Object> params) |
org.apache.struts.action.ActionForward |
processRemove(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.apache.struts.action.ActionForward |
processUnentitle(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.lang.Boolean |
setToManagementEntitled(org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest req,
RhnSetElement elementIn,
User userIn)
This method is called when the "Set To Management Entitled"
button is clicked in the System Entitlements page.
|
java.lang.Boolean |
unentitle(org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest req,
RhnSetElement elementIn,
User userIn)
This method is called when the "Unentitle"
button is clicked in the System Entitlements page.
|
addToMessage, addToMessage, getNoScriptMessage, handleEmptySelection, handleNoScript, operateOnElement, operateOnSelectedSet, operateOnSelectedSet
getKeyMethodMap, getSetName, selectall, unselectall, unspecified, updatelist, updateSet
createSuccessMessage, filter, getForwardName, makeParamMap
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 static final java.lang.String KEY_MANAGEMENT_ENTITLED
public static final java.lang.String KEY_UNENTITLED
public static final java.lang.String KEY_ADD_ENTITLED
public static final java.lang.String KEY_REMOVE_ENTITLED
protected RhnSetDecl getSetDecl()
RhnSetDecl
getSetDecl
in class RhnSetAction
protected DataResult<SystemOverview> getDataResult(User user, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request)
getDataResult
in class RhnSetAction
protected void processMethodKeys(java.util.Map<java.lang.String,java.lang.String> map)
map.put("failed.jsp.rescheduleActions", "rescheduleAll");
If there are no additional actions then simply return.processMethodKeys
in class RhnListDispatchAction
map
- Mapping between method and button names.protected void processParamMap(org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request, java.util.Map<java.lang.String,java.lang.Object> params)
processParamMap
in class RhnListDispatchAction
public org.apache.struts.action.ActionForward processManagementEntitled(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 java.lang.Boolean setToManagementEntitled(org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, RhnSetElement elementIn, User userIn)
form
- Action form object.req
- The servlet request objectelementIn
- The checked element in the setuserIn
- logged in userpublic org.apache.struts.action.ActionForward processUnentitle(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 java.lang.Boolean unentitle(org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, RhnSetElement elementIn, User userIn)
form
- Action form object.req
- The servlet request objectelementIn
- The checked element in the setuserIn
- logged in userpublic org.apache.struts.action.ActionForward processAdd(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 processRemove(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 operateAddOnEntitlements(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean add)
mapping
- ActionMappingformIn
- ActionFormrequest
- ServletRequestresponse
- ServletResponseadd
- Add/remove entitlement..protected void processMessage(org.apache.struts.action.ActionMessages msg, java.lang.String methodName, long successCount, long failureCount)
processMessage
in class BaseSetOperateOnSelectedItemsAction
msg
- container of the messagesmethodName
- name of the caller method which is used as a keysuccessCount
- the number of successful actionsfailureCount
- the number of failures.protected org.apache.struts.action.ActionMessage getEmptySelectionMessage()
getEmptySelectionMessage
in class BaseSetOperateOnSelectedItemsAction