edu.internet2.middleware.grouper.ui.actions
Class GetDynamicTileAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by edu.internet2.middleware.grouper.ui.actions.LowLevelGrouperCapableAction
          extended by edu.internet2.middleware.grouper.ui.actions.GetDynamicTileAction

public class GetDynamicTileAction
extends LowLevelGrouperCapableAction

Low level Strut's action which is used as a Controller for a Tile. Determines correct JSP template based on current tiles attributes which specify a 'view' of an 'object' to render. Institutions could extend / replace this controller to use a different algorithm to determine a JSP file name, or to actually generate HTML code which would be added to the page output The algorithm used here is based on a pre-defined set of key lookups which try to match potential site specific configuration keys, or failing that, the application default. The approach actually coded here is a first attempt and would benefit from refactoring, particularly with a view to sharing a controller with Signet i.e. extending GrouperCapableAction is not very generic! Suggestions on actual keys chosen welcome.

Tile Parameter Direction Description
viewObject IN The object instance to render
view IN The name of the view to render for viewObject
Request Attribute Direction Description
dynamicTemplate OUT Path of JSP to use to render viewObject
dynamicObjectType OUT The notional object type of viewObject
dynamicTemplateKey OUT The actual key selected by the TemplateResolver

Version:
$Id: GetDynamicTileAction.java,v 1.3 2009-08-12 04:52:14 mchyzer Exp $
Author:
Gary Brown.

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.ui.actions.LowLevelGrouperCapableAction
HIER_DELIM
 
Constructor Summary
GetDynamicTileAction()
           
 
Method Summary
 ActionForward grouperExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, HttpSession session, GrouperSession grouperSession)
          Action specific - must be implemented by all subclasses
 
Methods inherited from class edu.internet2.middleware.grouper.ui.actions.LowLevelGrouperCapableAction
execute, findAttribute, getAdvancedSearchMode, getBrowseMode, getBrowseNode, getCookie, getCurrentGroupOrStem, getDefaultRootStemName, getExceptionHelper, getLinkBrowseMode, getPageSize, getTilesAttributes, isEmpty, readDebugPrefs, saveDebugPrefs, setBrowseMode, setBrowseNode, sort
 
Methods inherited from class org.apache.struts.action.Action
execute, getServlet, setServlet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetDynamicTileAction

public GetDynamicTileAction()
Method Detail

grouperExecute

public ActionForward grouperExecute(ActionMapping mapping,
                                    ActionForm form,
                                    HttpServletRequest request,
                                    HttpServletResponse response,
                                    HttpSession session,
                                    GrouperSession grouperSession)
                             throws Exception
Description copied from class: LowLevelGrouperCapableAction
Action specific - must be implemented by all subclasses

Specified by:
grouperExecute in class LowLevelGrouperCapableAction
Throws:
Exception