|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.service.impl.ParameterServiceProxyImpl
public class ParameterServiceProxyImpl
ParameterServiceProxyImpl is an implementation of ParameterServiceProxy that performs simple proxying of storage/retrieval calls to a remoted ParameterService implementation. TODO this class needs improved caching!!!
Field Summary | |
---|---|
static String |
PARAMETER_CACHE_GROUP_NAME
|
static String |
PARAMETER_CACHE_PREFIX
|
private ParameterService |
parameterService
|
Constructor Summary | |
---|---|
ParameterServiceProxyImpl()
|
Method Summary | |
---|---|
void |
clearCache()
This method can be used to clear the parameter cache during unit testing. |
protected Parameter |
fetchFromCache(String namespaceCode,
String detailTypeCode,
String name)
|
protected void |
flushParameterFromCache(String namespaceCode,
String detailTypeCode,
String name)
|
String |
getDetailType(Class<? extends Object> documentOrStepClass)
This method can be used to change the value of a Parameter for unit testing purposes. |
boolean |
getIndicatorParameter(Class<? extends Object> componentClass,
String parameterName)
This method provides a convenient way to access the a parameter that signifies true or false. |
boolean |
getIndicatorParameter(String namespaceCode,
String detailTypeCode,
String parameterName)
This method provides a convenient way to access the a parameter that signifies true or false. |
String |
getNamespace(Class<? extends Object> documentOrStepClass)
This method can be used to set a namespace. |
protected String |
getParameterCacheKey(String namespaceCode,
String detailTypeCode,
String name)
|
ParameterEvaluator |
getParameterEvaluator(Class<? extends Object> componentClass,
String parameterName)
This method will return an instance of a ParameterEvaluator implementation that will wrap a Parameter and provide convenient evaluation methods. |
ParameterEvaluator |
getParameterEvaluator(Class<? extends Object> componentClass,
String parameterName,
String constrainedValue)
This method will return an instance of a ParameterEvaluator implementation that will wrap a Parameter and constrainedValue and provide convenient evaluation methods. |
ParameterEvaluator |
getParameterEvaluator(Class<? extends Object> componentClass,
String parameterName,
String constrainingValue,
String constrainedValue)
This method will return an instance of a ParameterEvaluator implementation that will wrap a Parameter, constrainingValue, and constrainedValue and provide convenient evaluation methods. |
ParameterEvaluator |
getParameterEvaluator(Class<? extends Object> componentClass,
String allowParameterName,
String denyParameterName,
String constrainingValue,
String constrainedValue)
This method will return an instance of a ParameterEvaluator implementation that will wrap an allow Parameter, a deny Parameter, constrainingValue, and constrainedValue and provide convenient evaluation methods. |
ParameterEvaluator |
getParameterEvaluator(String namespaceCode,
String detailTypeCode,
String parameterName)
This method will return an instance of a ParameterEvaluator implementation that will wrap a Parameter and provide convenient evaluation methods. |
ParameterEvaluator |
getParameterEvaluator(String namespaceCode,
String detailTypeCode,
String parameterName,
String constrainedValue)
This method will return an instance of a ParameterEvaluator implementation that will wrap a Parameter and constrainedValue and provide convenient evaluation methods. |
ParameterService |
getParameterService()
|
String |
getParameterValue(Class<? extends Object> componentClass,
String parameterName)
This method returns the unprocessed text value of a parameter. |
String |
getParameterValue(Class<? extends Object> componentClass,
String parameterName,
String constrainingValue)
This method can be used to derive a value based on another value. |
String |
getParameterValue(String namespaceCode,
String detailTypeCode,
String parameterName)
This method returns the value of the specified parameter |
List<String> |
getParameterValues(Class<? extends Object> componentClass,
String parameterName)
This method can be used to parse the value of a parameter. |
List<String> |
getParameterValues(Class<? extends Object> componentClass,
String parameterName,
String constrainingValue)
This method can be used to derive a set of values based on another value. |
List<String> |
getParameterValues(String namespaceCode,
String detailTypeCode,
String parameterName)
This method returns a list of the parameter values split on implementation specific criteria. |
protected void |
insertIntoCache(Parameter parameter)
|
boolean |
parameterExists(Class<? extends Object> componentClass,
String parameterName)
This method provides an exception free way to ensure that a parameter exists. |
Parameter |
retrieveParameter(String namespaceCode,
String detailTypeCode,
String parameterName)
This method returns the actual BusinessObject instance of a parameter. |
List<Parameter> |
retrieveParametersGivenLookupCriteria(Map<String,String> fieldValues)
This method can be used to retrieve a list of parameters that match the given fieldValues criteria. |
void |
setParameterForTesting(Class componentClass,
String parameterName,
String parameterText)
This method can be used to change the value of a Parameter for unit testing purposes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ParameterService parameterService
public static final String PARAMETER_CACHE_PREFIX
public static final String PARAMETER_CACHE_GROUP_NAME
Constructor Detail |
---|
public ParameterServiceProxyImpl()
Method Detail |
---|
public Parameter retrieveParameter(String namespaceCode, String detailTypeCode, String parameterName)
ParameterService
retrieveParameter
in interface ParameterService
public void setParameterForTesting(Class componentClass, String parameterName, String parameterText)
ParameterService
setParameterForTesting
in interface ParameterService
public String getDetailType(Class<? extends Object> documentOrStepClass)
ParameterService
getDetailType
in interface ParameterService
public boolean getIndicatorParameter(Class<? extends Object> componentClass, String parameterName)
ParameterService
getIndicatorParameter
in interface ParameterService
public String getNamespace(Class<? extends Object> documentOrStepClass)
ParameterService
getNamespace
in interface ParameterService
public ParameterEvaluator getParameterEvaluator(Class<? extends Object> componentClass, String allowParameterName, String denyParameterName, String constrainingValue, String constrainedValue)
ParameterService
getParameterEvaluator
in interface ParameterService
public ParameterEvaluator getParameterEvaluator(Class<? extends Object> componentClass, String parameterName, String constrainingValue, String constrainedValue)
ParameterService
getParameterEvaluator
in interface ParameterService
public ParameterEvaluator getParameterEvaluator(Class<? extends Object> componentClass, String parameterName, String constrainedValue)
ParameterService
getParameterEvaluator
in interface ParameterService
public ParameterEvaluator getParameterEvaluator(Class<? extends Object> componentClass, String parameterName)
ParameterService
getParameterEvaluator
in interface ParameterService
public String getParameterValue(Class<? extends Object> componentClass, String parameterName, String constrainingValue)
ParameterService
getParameterValue
in interface ParameterService
public String getParameterValue(Class<? extends Object> componentClass, String parameterName)
ParameterService
getParameterValue
in interface ParameterService
public List<String> getParameterValues(Class<? extends Object> componentClass, String parameterName, String constrainingValue)
ParameterService
getParameterValues
in interface ParameterService
public List<String> getParameterValues(Class<? extends Object> componentClass, String parameterName)
ParameterService
getParameterValues
in interface ParameterService
public boolean parameterExists(Class<? extends Object> componentClass, String parameterName)
ParameterService
parameterExists
in interface ParameterService
public ParameterService getParameterService()
public List<Parameter> retrieveParametersGivenLookupCriteria(Map<String,String> fieldValues)
ParameterService
retrieveParametersGivenLookupCriteria
in interface ParameterService
fieldValues
- The Map containing the key value pairs to be used
to build the criteria.
public String getParameterValue(String namespaceCode, String detailTypeCode, String parameterName)
ParameterService
getParameterValue
in interface ParameterService
public List<String> getParameterValues(String namespaceCode, String detailTypeCode, String parameterName)
ParameterService
getParameterValues
in interface ParameterService
public boolean getIndicatorParameter(String namespaceCode, String detailTypeCode, String parameterName)
ParameterService
getIndicatorParameter
in interface ParameterService
public ParameterEvaluator getParameterEvaluator(String namespaceCode, String detailTypeCode, String parameterName)
ParameterService
getParameterEvaluator
in interface ParameterService
public ParameterEvaluator getParameterEvaluator(String namespaceCode, String detailTypeCode, String parameterName, String constrainedValue)
ParameterService
getParameterEvaluator
in interface ParameterService
public void clearCache()
ParameterService
clearCache
in interface ParameterService
protected Parameter fetchFromCache(String namespaceCode, String detailTypeCode, String name)
protected void insertIntoCache(Parameter parameter)
protected void flushParameterFromCache(String namespaceCode, String detailTypeCode, String name)
protected String getParameterCacheKey(String namespaceCode, String detailTypeCode, String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |