org.ibisph.mvc.controller.indicator
Class RelatedIndicators

java.lang.Object
  extended by org.ibisph.mvc.controller.AbstractModelAndView
      extended by org.ibisph.mvc.controller.XMLModelAndDate
          extended by org.ibisph.mvc.controller.SystemIDFromEndOfPathInfoXMLModelAndDate
              extended by org.ibisph.mvc.controller.indicator.RelatedIndicators
All Implemented Interfaces:
org.springframework.web.servlet.mvc.Controller

public class RelatedIndicators
extends SystemIDFromEndOfPathInfoXMLModelAndDate

Specialized XMLSystemIDFromEndOfURLPath controller that handles the selected IP Relation. This controller simply gets the RelationName HTTP request parameter and puts it into the model so that the indicator profile relation view can display the correct set of related indicators.

Author:
Garth Braithwaite, STG

Field Summary
protected  java.lang.String defaultRelationName
           
protected  java.lang.String relationNameParameterMapName
           
 
Fields inherited from class org.ibisph.mvc.controller.SystemIDFromEndOfPathInfoXMLModelAndDate
xmlPath
 
Fields inherited from class org.ibisph.mvc.controller.XMLModelAndDate
defaultXMLModelAndDate, defaultXMLSystemID, errorView, extraParameters, includeRequestParameters, parametersMapModelName, webAppURLContextPrefixParameterName, xmlDateFormat, xmlDateParameterName, xmlModelName
 
Fields inherited from class org.ibisph.mvc.controller.AbstractModelAndView
defaultResponseContentType, expiresGMTDateString, forceNoCacheHTTPHeader, view
 
Constructor Summary
RelatedIndicators()
           
RelatedIndicators(java.lang.String xmlPath, org.springframework.web.servlet.View view)
           
 
Method Summary
protected  java.util.Map getModelMap(javax.servlet.http.HttpServletRequest request)
          Overrides the getModelMap method so that the "relation" parameter can be inserted into the model map's parameters map.
 
Methods inherited from class org.ibisph.mvc.controller.SystemIDFromEndOfPathInfoXMLModelAndDate
getXMLModelAndDate, setXMLPath
 
Methods inherited from class org.ibisph.mvc.controller.XMLModelAndDate
setDefaultXMLSystemID, setErrorView, setExtraParameters, setIncludeRequestParameters, setParametersMapModelName, setWebAppURLContextPrefixParameterName, setXMLDateFormat, setXMLDateParameterName, setXMLModelName
 
Methods inherited from class org.ibisph.mvc.controller.AbstractModelAndView
getView, handleRequest, setDefaultResponseContentType, setExpiresHTTPHeader, setHTTPHeaders, setNoCacheHTTPHeader, setNoCacheHTTPHeader, setResponseContentType, setView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultRelationName

protected java.lang.String defaultRelationName

relationNameParameterMapName

protected java.lang.String relationNameParameterMapName
Constructor Detail

RelatedIndicators

public RelatedIndicators()

RelatedIndicators

public RelatedIndicators(java.lang.String xmlPath,
                         org.springframework.web.servlet.View view)
Method Detail

getModelMap

protected java.util.Map getModelMap(javax.servlet.http.HttpServletRequest request)
                             throws java.lang.Exception
Overrides the getModelMap method so that the "relation" parameter can be inserted into the model map's parameters map. This simply gets the RelationName HTTP request parameter and puts it into the model's parameter map so that the indicator profile relation view XSLT can display the correct set of related indicators.

Overrides:
getModelMap in class XMLModelAndDate
Parameters:
request - Provides access to the HTTP request which the XML System ID is typically retrieved from.
Returns:
Standard Spring framework model (with XML and parameters map model).
Throws:
java.lang.Exception