org.jasig.portal.layout.dlm.providers
Class ThemeParamInjector

java.lang.Object
  extended by org.jasig.portal.layout.dlm.providers.ThemeParamInjector
All Implemented Interfaces:
IParameterProcessor

public class ThemeParamInjector
extends Object
implements IParameterProcessor

A class used to inject the set of parameters used by the default theme transformation stylesheet. This is an implementation of the org.jasig.portal.layout.dlm.processing.IParameterProcessor interface. If installations need more parameters added to the list than are used in this processor they are encouraged to implement their own processor and replace this processor as one of the configured, fixed processors in properties/context/layoutContext.xml.

Author:
mark.boyd@sungardhe.com

Constructor Summary
ThemeParamInjector()
           
 
Method Summary
 void processParameters(UserPreferences prefs, HttpServletRequest request)
          Injects into the theme stylesheet preferences the "userName" stylesheet parameter containing the value obtained from IPerson.getFullName().
 void setResources(IPerson person, DistributedLayoutManager dlm)
          Captures the passed-in IPerson object for use when processing parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeParamInjector

public ThemeParamInjector()
Method Detail

setResources

public void setResources(IPerson person,
                         DistributedLayoutManager dlm)
Captures the passed-in IPerson object for use when processing parameters.

Specified by:
setResources in interface IParameterProcessor
See Also:
IParameterProcessor.setResources(org.jasig.portal.security.IPerson, org.jasig.portal.layout.dlm.DistributedLayoutManager)

processParameters

public void processParameters(UserPreferences prefs,
                              HttpServletRequest request)
Injects into the theme stylesheet preferences the "userName" stylesheet parameter containing the value obtained from IPerson.getFullName().

Specified by:
processParameters in interface IParameterProcessor
See Also:
IParameterProcessor.processParameters(org.jasig.portal.UserPreferences, javax.servlet.http.HttpServletRequest)


Copyright © 2010 Jasig. All Rights Reserved.