|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.String |
PARAMETER_CACHE_GROUP_NAME
|
static java.lang.String |
PARAMETER_CACHE_PREFIX
|
Constructor Summary | |
---|---|
ParameterServiceProxyImpl()
|
Method Summary | |
---|---|
void |
clearCache()
This method can be used to clear the parameter cache during unit testing. |
protected Parameter |
fetchFromCache(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String name)
|
protected void |
flushParameterFromCache(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String name)
|
java.lang.String |
getDetailType(java.lang.Class<? extends java.lang.Object> documentOrStepClass)
This method can be used to change the value of a Parameter for unit testing purposes. |
boolean |
getIndicatorParameter(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName)
This method provides a convenient way to access the a parameter that signifies true or false. |
boolean |
getIndicatorParameter(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String parameterName)
This method provides a convenient way to access the a parameter that signifies true or false. |
java.lang.String |
getNamespace(java.lang.Class<? extends java.lang.Object> documentOrStepClass)
This method can be used to set a namespace. |
protected java.lang.String |
getParameterCacheKey(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String name)
|
org.kuali.rice.kns.service.ParameterEvaluator |
getParameterEvaluator(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName)
This method will return an instance of a ParameterEvaluator implementation that will wrap a Parameter and provide convenient evaluation methods. |
org.kuali.rice.kns.service.ParameterEvaluator |
getParameterEvaluator(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName,
java.lang.String constrainedValue)
This method will return an instance of a ParameterEvaluator implementation that will wrap a Parameter and constrainedValue and provide convenient evaluation methods. |
org.kuali.rice.kns.service.ParameterEvaluator |
getParameterEvaluator(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName,
java.lang.String constrainingValue,
java.lang.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. |
org.kuali.rice.kns.service.ParameterEvaluator |
getParameterEvaluator(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String allowParameterName,
java.lang.String denyParameterName,
java.lang.String constrainingValue,
java.lang.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. |
org.kuali.rice.kns.service.ParameterEvaluator |
getParameterEvaluator(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String parameterName)
This method will return an instance of a ParameterEvaluator implementation that will wrap a Parameter and provide convenient evaluation methods. |
org.kuali.rice.kns.service.ParameterEvaluator |
getParameterEvaluator(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String parameterName,
java.lang.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()
|
java.lang.String |
getParameterValue(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName)
This method returns the unprocessed text value of a parameter. |
java.lang.String |
getParameterValue(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName,
java.lang.String constrainingValue)
This method can be used to derive a value based on another value. |
java.lang.String |
getParameterValue(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String parameterName)
This method returns the value of the specified parameter |
java.util.List<java.lang.String> |
getParameterValues(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName)
This method can be used to parse the value of a parameter. |
java.util.List<java.lang.String> |
getParameterValues(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName,
java.lang.String constrainingValue)
This method can be used to derive a set of values based on another value. |
java.util.List<java.lang.String> |
getParameterValues(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String parameterName)
This method returns a list of the parameter values split on implementation specific criteria. |
protected void |
insertIntoCache(Parameter parameter)
|
boolean |
parameterExists(java.lang.Class<? extends java.lang.Object> componentClass,
java.lang.String parameterName)
This method provides an exception free way to ensure that a parameter exists. |
Parameter |
retrieveParameter(java.lang.String namespaceCode,
java.lang.String detailTypeCode,
java.lang.String parameterName)
This method returns the actual BusinessObject instance of a parameter. |
java.util.List<Parameter> |
retrieveParametersGivenLookupCriteria(java.util.Map<java.lang.String,java.lang.String> fieldValues)
This method can be used to retrieve a list of parameters that match the given fieldValues criteria. |
void |
setParameterForTesting(java.lang.Class componentClass,
java.lang.String parameterName,
java.lang.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 |
---|
public static final java.lang.String PARAMETER_CACHE_PREFIX
public static final java.lang.String PARAMETER_CACHE_GROUP_NAME
Constructor Detail |
---|
public ParameterServiceProxyImpl()
Method Detail |
---|
public Parameter retrieveParameter(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String parameterName)
ParameterService
retrieveParameter
in interface ParameterService
public void setParameterForTesting(java.lang.Class componentClass, java.lang.String parameterName, java.lang.String parameterText)
ParameterService
setParameterForTesting
in interface ParameterService
public java.lang.String getDetailType(java.lang.Class<? extends java.lang.Object> documentOrStepClass)
ParameterService
getDetailType
in interface ParameterService
public boolean getIndicatorParameter(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName)
ParameterService
getIndicatorParameter
in interface ParameterService
public java.lang.String getNamespace(java.lang.Class<? extends java.lang.Object> documentOrStepClass)
ParameterService
getNamespace
in interface ParameterService
public org.kuali.rice.kns.service.ParameterEvaluator getParameterEvaluator(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String allowParameterName, java.lang.String denyParameterName, java.lang.String constrainingValue, java.lang.String constrainedValue)
ParameterService
getParameterEvaluator
in interface ParameterService
public org.kuali.rice.kns.service.ParameterEvaluator getParameterEvaluator(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName, java.lang.String constrainingValue, java.lang.String constrainedValue)
ParameterService
getParameterEvaluator
in interface ParameterService
public org.kuali.rice.kns.service.ParameterEvaluator getParameterEvaluator(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName, java.lang.String constrainedValue)
ParameterService
getParameterEvaluator
in interface ParameterService
public org.kuali.rice.kns.service.ParameterEvaluator getParameterEvaluator(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName)
ParameterService
getParameterEvaluator
in interface ParameterService
public java.lang.String getParameterValue(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName, java.lang.String constrainingValue)
ParameterService
getParameterValue
in interface ParameterService
public java.lang.String getParameterValue(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName)
ParameterService
getParameterValue
in interface ParameterService
public java.util.List<java.lang.String> getParameterValues(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName, java.lang.String constrainingValue)
ParameterService
getParameterValues
in interface ParameterService
public java.util.List<java.lang.String> getParameterValues(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName)
ParameterService
getParameterValues
in interface ParameterService
public boolean parameterExists(java.lang.Class<? extends java.lang.Object> componentClass, java.lang.String parameterName)
ParameterService
parameterExists
in interface ParameterService
public ParameterService getParameterService()
public java.util.List<Parameter> retrieveParametersGivenLookupCriteria(java.util.Map<java.lang.String,java.lang.String> fieldValues)
ParameterService
retrieveParametersGivenLookupCriteria
in interface ParameterService
fieldValues
- The Map containing the key value pairs to be used
to build the criteria.
public java.lang.String getParameterValue(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String parameterName)
ParameterService
getParameterValue
in interface ParameterService
public java.util.List<java.lang.String> getParameterValues(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String parameterName)
ParameterService
getParameterValues
in interface ParameterService
public boolean getIndicatorParameter(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String parameterName)
ParameterService
getIndicatorParameter
in interface ParameterService
public org.kuali.rice.kns.service.ParameterEvaluator getParameterEvaluator(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String parameterName)
ParameterService
getParameterEvaluator
in interface ParameterService
public org.kuali.rice.kns.service.ParameterEvaluator getParameterEvaluator(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String parameterName, java.lang.String constrainedValue)
ParameterService
getParameterEvaluator
in interface ParameterService
public void clearCache()
ParameterService
clearCache
in interface ParameterService
protected Parameter fetchFromCache(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String name)
protected void insertIntoCache(Parameter parameter)
protected void flushParameterFromCache(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String name)
protected java.lang.String getParameterCacheKey(java.lang.String namespaceCode, java.lang.String detailTypeCode, java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |