org.rhq.enterprise.gui.legacy.action.resource
Class GroupController

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.DispatchAction
          extended by org.rhq.enterprise.gui.legacy.action.BaseDispatchAction
              extended by org.rhq.enterprise.gui.legacy.action.resource.GroupController
Direct Known Subclasses:
GroupInventoryPortalAction, GroupVisibilityPortalAction

public abstract class GroupController
extends BaseDispatchAction

An abstract subclass of BaseDispatchAction that provides common methods for resource controller actions.


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
GroupController()
           
 
Method Summary
protected  void fetchReturnPathParams(javax.servlet.http.HttpServletRequest request, Map params)
           
protected  void setNavMapLocation(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMapping mapping, String currLoc)
          This method sets the current location for the nav map
protected  void setResourceGroup(javax.servlet.http.HttpServletRequest request)
           
protected  void setResourceGroup(javax.servlet.http.HttpServletRequest request, boolean config)
           
protected  void setReturnPath(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMapping mapping)
           
protected  void setReturnPath(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMapping mapping, Map params)
          This sets the return path for a ResourceAction by appending the type and resource id to the forward url.
 
Methods inherited from class org.rhq.enterprise.gui.legacy.action.BaseDispatchAction
execute, getKeyMethodMap
 
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, dispatchMethod, getMethod, getMethodName, getParameter, unspecified
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

GroupController

public GroupController()
Method Detail

setResourceGroup

protected void setResourceGroup(javax.servlet.http.HttpServletRequest request)
                         throws Exception
Throws:
Exception

setResourceGroup

protected void setResourceGroup(javax.servlet.http.HttpServletRequest request,
                                boolean config)
                         throws Exception
Throws:
Exception

fetchReturnPathParams

protected void fetchReturnPathParams(javax.servlet.http.HttpServletRequest request,
                                     Map params)

setReturnPath

protected void setReturnPath(javax.servlet.http.HttpServletRequest request,
                             org.apache.struts.action.ActionMapping mapping,
                             Map params)
                      throws Exception
This sets the return path for a ResourceAction by appending the type and resource id to the forward url.

Overrides:
setReturnPath in class BaseDispatchAction
Parameters:
request - The current controller's request.
mapping - The current controller's mapping that contains the input.
params - A Map of request parameters to add to the return path.
Throws:
ParameterNotFoundException - if the type or id are not found
javax.servlet.ServletException - If there is not input defined for this form
Exception

setReturnPath

protected void setReturnPath(javax.servlet.http.HttpServletRequest request,
                             org.apache.struts.action.ActionMapping mapping)
                      throws Exception
Overrides:
setReturnPath in class BaseDispatchAction
Throws:
Exception

setNavMapLocation

protected void setNavMapLocation(javax.servlet.http.HttpServletRequest request,
                                 org.apache.struts.action.ActionMapping mapping,
                                 String currLoc)
                          throws Exception
This method sets the current location for the nav map

Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.