org.pentaho.platform.engine.core.solution
Class SimpleParameterProvider

java.lang.Object
  extended by org.pentaho.platform.engine.core.solution.BaseParameterProvider
      extended by org.pentaho.platform.engine.core.solution.SimpleParameterProvider
All Implemented Interfaces:
IParameterProvider
Direct Known Subclasses:
FlashChartRequestMapper, FlashChartRequestMapper, HttpRequestParameterProvider, HttpSessionParameterProvider, PentahoSessionParameterProvider, PortletPreferencesParameterProvider, PortletRequestParameterProvider, SimpleParameterSetter

public class SimpleParameterProvider
extends BaseParameterProvider
implements IParameterProvider


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.engine.IParameterProvider
SCOPE_REQUEST, SCOPE_SESSION
 
Constructor Summary
SimpleParameterProvider()
           
SimpleParameterProvider(Map parameters)
           
 
Method Summary
 void copyAndConvertAdditionalParameters(Map paramMap)
          Looks for ADDITIONAL_PARAMS in the paramMap, if it finds a parameter by that name, it assumes that it is a query string, it parses the query string, and adds the components of the query string to this class's parameter map.
 void copyAndConvertParameters(Map paramMap)
          Converts single value arrays to String parameters
 Object getParameter(String name)
          Gets the named parameter from the provider as it's native type
 Iterator getParameterNames()
          Return list of all avialable parameter names in this provider
 void setParameter(String name, Date value)
           
 void setParameter(String name, long value)
           
 void setParameter(String name, Object value)
           
 void setParameter(String name, String value)
           
 void setParameters(Map newParameters)
           
 
Methods inherited from class org.pentaho.platform.engine.core.solution.BaseParameterProvider
getArrayParameter, getDateParameter, getDecimalParameter, getListParameter, getLongParameter, getStringArrayParameter, getStringParameter, hasParameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.platform.api.engine.IParameterProvider
getArrayParameter, getDateParameter, getDecimalParameter, getLongParameter, getStringArrayParameter, getStringParameter, hasParameter
 

Constructor Detail

SimpleParameterProvider

public SimpleParameterProvider()

SimpleParameterProvider

public SimpleParameterProvider(Map parameters)
Method Detail

getParameter

public Object getParameter(String name)
Description copied from interface: IParameterProvider
Gets the named parameter from the provider as it's native type

Specified by:
getParameter in interface IParameterProvider
Specified by:
getParameter in class BaseParameterProvider
Parameters:
name - The name of the parameter to retrieve
Returns:
The native object

setParameter

public void setParameter(String name,
                         String value)

setParameter

public void setParameter(String name,
                         long value)

setParameter

public void setParameter(String name,
                         Date value)

setParameter

public void setParameter(String name,
                         Object value)

setParameters

public void setParameters(Map newParameters)

getParameterNames

public Iterator getParameterNames()
Description copied from interface: IParameterProvider
Return list of all avialable parameter names in this provider

Specified by:
getParameterNames in interface IParameterProvider
Returns:
Set of parameter names

copyAndConvertParameters

public void copyAndConvertParameters(Map paramMap)
Converts single value arrays to String parameters


copyAndConvertAdditionalParameters

public void copyAndConvertAdditionalParameters(Map paramMap)
Looks for ADDITIONAL_PARAMS in the paramMap, if it finds a parameter by that name, it assumes that it is a query string, it parses the query string, and adds the components of the query string to this class's parameter map.

Parameters:
paramMap -