|
||||||||||
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.ParameterServiceBase
public abstract class ParameterServiceBase
This is a description of what this class does - tom don't forget to fill this in.
Field Summary | |
---|---|
protected DataDictionaryService |
dataDictionaryService
|
protected KualiModuleService |
kualiModuleService
|
protected static String |
PARAMETER_CACHE_GROUP_NAME
|
protected static String |
PARAMETER_CACHE_PREFIX
|
Constructor Summary | |
---|---|
ParameterServiceBase()
This constructs a ... |
Method Summary | |
---|---|
void |
clearCache()
This method can be used to clear the parameter cache during unit testing. |
private boolean |
constraintIsAllow(Parameter parameter)
|
protected Parameter |
fetchFromCache(String namespaceCode,
String detailTypeCode,
String name)
Fetches the Parameter from the cache with the given parameter namespace and name. |
protected void |
flushParameterFromCache(String namespaceCode,
String detailTypeCode,
String name)
Inserts the given Parameter into the cache. |
String |
getDetailType(Class documentOrStepClass)
This method can be used to change the value of a Parameter for unit testing purposes. |
protected String |
getDetailTypeName(Class documentOrStepClass)
|
boolean |
getIndicatorParameter(Class componentClass,
String parameterName)
This method provides a convenient way to access the value of indicator parameters with Y/N values. |
boolean |
getIndicatorParameter(String namespaceCode,
String detailTypeCode,
String parameterName)
This method provides a convenient way to access the value of indicator parameters with Y/N values. |
String |
getNamespace(Class documentOrStepClass)
This method can be used to set a namespace. |
protected Parameter |
getParameter(Class componentClass,
String parameterName)
|
protected Parameter |
getParameter(String namespaceCode,
String detailTypeCode,
String parameterName)
|
protected String |
getParameterCacheKey(String namespaceCode,
String detailTypeCode,
String name)
Returns the cache key for the given parameter. |
protected ParameterDetailType |
getParameterDetailType(Class documentOrStepClass)
|
ParameterEvaluator |
getParameterEvaluator(Class componentClass,
String parameterName)
This method will return an instance of the parameterEvaluator bean defined in Spring, initialized with the Parameter corresponding to the specified componentClass and parameterName and the values of the Parameter. |
ParameterEvaluator |
getParameterEvaluator(Class componentClass,
String parameterName,
String constrainedValue)
This method will return an instance of the parameterEvaluator bean defined in Spring, initialized with the Parameter corresponding to the specified componentClass and parameterName, the values of the Parameter, the knowledge of whether the values are allowed or denied, and the constrainedValue. |
ParameterEvaluator |
getParameterEvaluator(Class componentClass,
String parameterName,
String constrainingValue,
String constrainedValue)
This method will return an instance of the parameterEvaluator bean defined in Spring, initialized with the Parameter corresponding to the specified componentClass and parameterName, the values of the Parameter that correspond to the specified constrainingValue, the knowledge of whether the values are allowed or denied, and the constrainedValue. |
ParameterEvaluator |
getParameterEvaluator(Class componentClass,
String allowParameterName,
String denyParameterName,
String constrainingValue,
String constrainedValue)
This method will return an instance of the parameterEvaluator bean defined in Spring, initialized with the Parameter corresponding to the specified componentClass and allowParameterName or to the specified componentClass and denyParameterName (depending on which restricts based on the constraining value) or an instance of AlwaysSucceedParameterEvaluatorImpl if neither restricts, the values of the Parameter that correspond to the specified constrainingValue, the knowledge of whether the values are allowed or denied, and the constrainedValue. |
protected ParameterEvaluatorImpl |
getParameterEvaluator(Parameter parameter)
|
protected ParameterEvaluatorImpl |
getParameterEvaluator(Parameter parameter,
String constrainedValue)
|
protected ParameterEvaluatorImpl |
getParameterEvaluator(Parameter parameter,
String constrainingValue,
String constrainedValue)
|
ParameterEvaluator |
getParameterEvaluator(String namespaceCode,
String detailTypeCode,
String parameterName)
This method will return an instance of the parameterEvaluator bean defined in Spring, initialized with the Parameter corresponding to the specified componentClass and parameterName and the values of the Parameter. |
ParameterEvaluator |
getParameterEvaluator(String namespaceCode,
String detailTypeCode,
String parameterName,
String constrainedValue)
This method will return an instance of the parameterEvaluator bean defined in Spring, initialized with the Parameter corresponding to the specified componentClass and parameterName and the values of the Parameter. |
String |
getParameterValue(Class componentClass,
String parameterName)
This method returns the unprocessed text value of a parameter. |
String |
getParameterValue(Class componentClass,
String parameterName,
String constrainingValue)
This will look for constrainingValue= |
String |
getParameterValue(String namespaceCode,
String detailTypeCode,
String parameterName)
This method returns the value of the specified parameter |
List<String> |
getParameterValues(Class componentClass,
String parameterName)
This method can be used to parse the value of a parameter by splitting on a semi-colon. |
List<String> |
getParameterValues(Class componentClass,
String parameterName,
String constrainingValue)
This method looks for constrainingValue= |
private List<String> |
getParameterValues(Parameter parameter)
|
protected List<String> |
getParameterValues(Parameter parameter,
String constrainingValue)
|
List<String> |
getParameterValues(String namespaceCode,
String detailTypeCode,
String parameterName)
This method can be used to parse the value of a parameter by splitting on a semi-colon. |
private Class |
getStepClass()
|
protected void |
insertIntoCache(Parameter parameter)
Inserts the given Parameter into the cache. |
boolean |
parameterExists(Class componentClass,
String parameterName)
This method provides an exception free way to ensure that a parameter exists. |
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
void |
setKualiModuleService(KualiModuleService kualiModuleService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.kns.service.ParameterService |
---|
retrieveParameter, retrieveParametersGivenLookupCriteria, setParameterForTesting |
Field Detail |
---|
protected DataDictionaryService dataDictionaryService
protected KualiModuleService kualiModuleService
protected static final String PARAMETER_CACHE_PREFIX
protected static final String PARAMETER_CACHE_GROUP_NAME
Constructor Detail |
---|
public ParameterServiceBase()
Method Detail |
---|
public boolean parameterExists(Class componentClass, String parameterName)
ParameterService
parameterExists
in interface ParameterService
org.kuali.kfs.sys.service.ParameterService#parameterExists(java.lang.Class componentClass, java.lang.String parameterName)
public boolean getIndicatorParameter(Class componentClass, String parameterName)
getIndicatorParameter
in interface ParameterService
componentClass
- parameterName
-
public boolean getIndicatorParameter(String namespaceCode, String detailTypeCode, String parameterName)
getIndicatorParameter
in interface ParameterService
namespaceCode
- detailTypeCode
- parameterName
-
public String getParameterValue(Class componentClass, String parameterName)
ParameterService
getParameterValue
in interface ParameterService
org.kuali.kfs.sys.service.ParameterService#getParameterValue(java.lang.Class componentClass, java.lang.String parameterName)
public String getParameterValue(String namespaceCode, String detailTypeCode, String parameterName)
ParameterService
getParameterValue
in interface ParameterService
org.kuali.kfs.sys.service.ParameterService#getParameterValue(java.lang.Class componentClass, java.lang.String parameterName)
public String getParameterValue(Class componentClass, String parameterName, String constrainingValue)
getParameterValue
in interface ParameterService
componentClass
- parameterName
- constrainingValue
-
public List<String> getParameterValues(Class componentClass, String parameterName)
getParameterValues
in interface ParameterService
componentClass
- parameterName
-
public List<String> getParameterValues(String namespaceCode, String detailTypeCode, String parameterName)
getParameterValues
in interface ParameterService
namespaceCode
- detailTypeCode
- parameterName
-
public List<String> getParameterValues(Class componentClass, String parameterName, String constrainingValue)
getParameterValues
in interface ParameterService
componentClass
- parameterName
- constrainingValue
-
public ParameterEvaluator getParameterEvaluator(Class componentClass, String parameterName)
getParameterEvaluator
in interface ParameterService
componentClass
- parameterName
-
public ParameterEvaluator getParameterEvaluator(String namespaceCode, String detailTypeCode, String parameterName)
getParameterEvaluator
in interface ParameterService
namespaceCode
- detailTypeCode
- parameterName
-
public ParameterEvaluator getParameterEvaluator(Class componentClass, String parameterName, String constrainedValue)
getParameterEvaluator
in interface ParameterService
componentClass
- parameterName
-
public ParameterEvaluator getParameterEvaluator(String namespaceCode, String detailTypeCode, String parameterName, String constrainedValue)
getParameterEvaluator
in interface ParameterService
namespaceCode
- detailTypeCode
- parameterName
-
public ParameterEvaluator getParameterEvaluator(Class componentClass, String parameterName, String constrainingValue, String constrainedValue)
getParameterEvaluator
in interface ParameterService
componentClass
- parameterName
-
public ParameterEvaluator getParameterEvaluator(Class componentClass, String allowParameterName, String denyParameterName, String constrainingValue, String constrainedValue)
getParameterEvaluator
in interface ParameterService
componentClass
- allowParameterName
- denyParameterName
- constrainingValue
- constrainedValue
-
public String getNamespace(Class documentOrStepClass)
ParameterService
getNamespace
in interface ParameterService
public String getDetailType(Class documentOrStepClass)
ParameterService
getDetailType
in interface ParameterService
private Class getStepClass()
protected String getDetailTypeName(Class documentOrStepClass)
protected ParameterEvaluatorImpl getParameterEvaluator(Parameter parameter)
protected ParameterEvaluatorImpl getParameterEvaluator(Parameter parameter, String constrainedValue)
protected ParameterEvaluatorImpl getParameterEvaluator(Parameter parameter, String constrainingValue, String constrainedValue)
protected ParameterDetailType getParameterDetailType(Class documentOrStepClass)
protected List<String> getParameterValues(Parameter parameter, String constrainingValue)
private List<String> getParameterValues(Parameter parameter)
public void clearCache()
ParameterService
clearCache
in interface ParameterService
org.kuali.kfs.sys.service.ParameterService#clearCache()
protected Parameter getParameter(Class componentClass, String parameterName)
protected Parameter getParameter(String namespaceCode, String detailTypeCode, String parameterName)
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)
private boolean constraintIsAllow(Parameter parameter)
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
public void setKualiModuleService(KualiModuleService kualiModuleService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |