edu.internet2.middleware.grouper.ui.actions
Class GetDynamicTileAction
java.lang.Object
org.apache.struts.action.Action
edu.internet2.middleware.grouper.ui.actions.LowLevelGrouperCapableAction
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.
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 |
GetDynamicTileAction
public GetDynamicTileAction()
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