|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.coreservice.impl.parameter.ParameterServiceImpl
public class ParameterServiceImpl
Constructor Summary | |
---|---|
ParameterServiceImpl()
|
Method Summary | |
---|---|
Parameter |
createParameter(Parameter parameter)
This will create a Parameter exactly like the parameter passed in. |
Parameter |
getParameter(Class<?> componentClass,
String parameterName)
Retrieves a parameter. |
Parameter |
getParameter(String namespaceCode,
String componentCode,
String parameterName)
Retrieves a parameter. |
Boolean |
getParameterValueAsBoolean(Class<?> componentClass,
String parameterName)
Retrieves a parameter's boolean value. |
Boolean |
getParameterValueAsBoolean(Class<?> componentClass,
String parameterName,
Boolean defaultValue)
Retrieves a parameter's boolean value. |
Boolean |
getParameterValueAsBoolean(String namespaceCode,
String componentCode,
String parameterName)
Retrieves a parameter's boolean value. |
Boolean |
getParameterValueAsBoolean(String namespaceCode,
String componentCode,
String parameterName,
Boolean defaultValue)
Retrieves a parameter's boolean value. |
String |
getParameterValueAsString(Class<?> componentClass,
String parameterName)
Retrieves a parameter's string value. |
String |
getParameterValueAsString(Class<?> componentClass,
String parameterName,
String defaultValue)
Retrieves a parameter's string value. |
String |
getParameterValueAsString(String namespaceCode,
String componentCode,
String parameterName)
Retrieves a parameter's string value. |
String |
getParameterValueAsString(String namespaceCode,
String componentCode,
String parameterName,
String defaultValue)
Retrieves a parameter's string value. |
Collection<String> |
getParameterValuesAsString(Class<?> componentClass,
String parameterName)
Retrieves a parameter's string values where a parameter contains 0 or more values. |
Collection<String> |
getParameterValuesAsString(String namespaceCode,
String componentCode,
String parameterName)
Retrieves a parameter's string values where a parameter contains 0 or more values. |
String |
getSubParameterValueAsString(Class<?> componentClass,
String parameterName,
String constrainingValue)
Retrieves a subParameter's string value. |
String |
getSubParameterValueAsString(String namespaceCode,
String componentCode,
String parameterName,
String constrainingValue)
Retrieves a subParameter's string value. |
Collection<String> |
getSubParameterValuesAsString(Class<?> componentClass,
String parameterName,
String constrainingValue)
Retrieves a subParameter's string values where a subParameter contains 0 or more values. |
Collection<String> |
getSubParameterValuesAsString(String namespaceCode,
String componentCode,
String parameterName,
String constrainingValue)
Retrieves a subParameter's string values where a subParameter contains 0 or more values. |
Boolean |
parameterExists(Class<?> componentClass,
String parameterName)
This method checks if a parameter exists. |
Boolean |
parameterExists(String namespaceCode,
String componentCode,
String parameterName)
This method checks if a parameter exists. |
void |
setApplicationId(String applicationId)
|
void |
setKualiModuleService(KualiModuleService kualiModuleService)
|
void |
setParameterRepositoryService(ParameterRepositoryService parameterRepositoryService)
|
Parameter |
updateParameter(Parameter parameter)
This will update a Parameter . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterServiceImpl()
Method Detail |
---|
public Parameter createParameter(Parameter parameter)
ParameterService
Parameter
exactly like the parameter passed in.
createParameter
in interface ParameterService
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#createParameter(org.kuali.rice.coreservice.api.parameter.Parameter)} for details
public Parameter updateParameter(Parameter parameter)
ParameterService
Parameter
.
updateParameter
in interface ParameterService
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#updateParameter(org.kuali.rice.coreservice.api.parameter.Parameter)} for details
public Parameter getParameter(String namespaceCode, String componentCode, String parameterName)
ParameterService
The parameter key is constructed from the following:
getParameter
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameter(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public Parameter getParameter(Class<?> componentClass, String parameterName)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getParameter
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameter(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public Boolean parameterExists(String namespaceCode, String componentCode, String parameterName)
ParameterService
The parameter key is constructed from the following:
If the parameter does not exist under the application code, then this method will check if the parameter exists under the default rice application id and will return that parameter.
parameterExists
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter name
public Boolean parameterExists(Class<?> componentClass, String parameterName)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassIf the parameter does not exist under the application code, then this method will check if the parameter exists under the default rice application id and will return that parameter.
parameterExists
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter name
public Boolean getParameterValueAsBoolean(String namespaceCode, String componentCode, String parameterName)
ParameterService
The parameter key is constructed from the following:
getParameterValueAsBoolean
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsBoolean(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public Boolean getParameterValueAsBoolean(String namespaceCode, String componentCode, String parameterName, Boolean defaultValue)
ParameterService
The parameter key is constructed from the following:
getParameterValueAsBoolean
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter namedefaultValue
- the value to return is the parameter does not exist. Can be any Boolean value including null
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsBoolean(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public Boolean getParameterValueAsBoolean(Class<?> componentClass, String parameterName)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getParameterValueAsBoolean
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsBoolean(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public Boolean getParameterValueAsBoolean(Class<?> componentClass, String parameterName, Boolean defaultValue)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getParameterValueAsBoolean
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter namedefaultValue
- the value to return is the parameter does not exist. Can be any Boolean value including null
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsBoolean(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public String getParameterValueAsString(String namespaceCode, String componentCode, String parameterName)
ParameterService
The parameter key is constructed from the following:
getParameterValueAsString
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public String getParameterValueAsString(String namespaceCode, String componentCode, String parameterName, String defaultValue)
ParameterService
The parameter key is constructed from the following:
getParameterValueAsString
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter namedefaultValue
- the value to return is the parameter does not exist. Can be any string value including null
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public String getParameterValueAsString(Class<?> componentClass, String parameterName)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getParameterValueAsString
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public String getParameterValueAsString(Class<?> componentClass, String parameterName, String defaultValue)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getParameterValueAsString
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter namedefaultValue
- the value to return is the parameter does not exist. Can be any string value including null
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public Collection<String> getParameterValuesAsString(String namespaceCode, String componentCode, String parameterName)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getParameterValuesAsString
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValuesAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public Collection<String> getParameterValuesAsString(Class<?> componentClass, String parameterName)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getParameterValuesAsString
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValuesAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for details
public Collection<String> getSubParameterValuesAsString(String namespaceCode, String componentCode, String parameterName, String constrainingValue)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getSubParameterValuesAsString
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter nameconstrainingValue
- the subParameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getSubParameterValuesAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey, String)} for details
public Collection<String> getSubParameterValuesAsString(Class<?> componentClass, String parameterName, String constrainingValue)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getSubParameterValuesAsString
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter nameconstrainingValue
- the subParameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getSubParameterValuesAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey, String)} for details
public String getSubParameterValueAsString(String namespaceCode, String componentCode, String parameterName, String constrainingValue)
ParameterService
The parameter key is constructed from the following:
getSubParameterValueAsString
in interface ParameterService
namespaceCode
- the namespace codecomponentCode
- the component codeparameterName
- the parameter nameconstrainingValue
- the subParameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getSubParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey, String)} for details
public String getSubParameterValueAsString(Class<?> componentClass, String parameterName, String constrainingValue)
ParameterService
The parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClass
getSubParameterValueAsString
in interface ParameterService
componentClass
- the class with the namespace & component annotationsparameterName
- the parameter nameconstrainingValue
- the subParameter name
org.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getSubParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey, String)} for details
public void setKualiModuleService(KualiModuleService kualiModuleService)
public void setParameterRepositoryService(ParameterRepositoryService parameterRepositoryService)
public void setApplicationId(String applicationId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |