public class ParameterServiceImpl extends Object implements ParameterService
| Constructor and Description |
|---|
ParameterServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public ParameterServiceImpl()
public Parameter createParameter(Parameter parameter)
ParameterServiceParameter exactly like the parameter passed in.createParameter in interface ParameterServiceorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#createParameter(org.kuali.rice.coreservice.api.parameter.Parameter)} for detailspublic Parameter updateParameter(Parameter parameter)
ParameterServiceParameter.updateParameter in interface ParameterServiceorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#updateParameter(org.kuali.rice.coreservice.api.parameter.Parameter)} for detailspublic Parameter getParameter(String namespaceCode, String componentCode, String parameterName)
ParameterServiceThe parameter key is constructed from the following:
getParameter in interface ParameterServicenamespaceCode - the namespace codecomponentCode - the component codeparameterName - the parameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameter(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic Parameter getParameter(Class<?> componentClass, String parameterName)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetParameter in interface ParameterServicecomponentClass - the class with the namespace & component annotationsparameterName - the parameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameter(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic Boolean parameterExists(String namespaceCode, String componentCode, String parameterName)
ParameterServiceThe 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 ParameterServicenamespaceCode - the namespace codecomponentCode - the component codeparameterName - the parameter namepublic Boolean parameterExists(Class<?> componentClass, String parameterName)
ParameterServiceThe 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 ParameterServicecomponentClass - the class with the namespace & component annotationsparameterName - the parameter namepublic Boolean getParameterValueAsBoolean(String namespaceCode, String componentCode, String parameterName)
ParameterServiceThe parameter key is constructed from the following:
getParameterValueAsBoolean in interface ParameterServicenamespaceCode - the namespace codecomponentCode - the component codeparameterName - the parameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsBoolean(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic Boolean getParameterValueAsBoolean(String namespaceCode, String componentCode, String parameterName, Boolean defaultValue)
ParameterServiceThe parameter key is constructed from the following:
getParameterValueAsBoolean in interface ParameterServicenamespaceCode - 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 nullorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsBoolean(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic Boolean getParameterValueAsBoolean(Class<?> componentClass, String parameterName)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetParameterValueAsBoolean in interface ParameterServicecomponentClass - the class with the namespace & component annotationsparameterName - the parameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsBoolean(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic Boolean getParameterValueAsBoolean(Class<?> componentClass, String parameterName, Boolean defaultValue)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetParameterValueAsBoolean in interface ParameterServicecomponentClass - 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 nullorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsBoolean(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic String getParameterValueAsString(String namespaceCode, String componentCode, String parameterName)
ParameterServiceThe parameter key is constructed from the following:
getParameterValueAsString in interface ParameterServicenamespaceCode - the namespace codecomponentCode - the component codeparameterName - the parameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic String getParameterValueAsString(String namespaceCode, String componentCode, String parameterName, String defaultValue)
ParameterServiceThe parameter key is constructed from the following:
getParameterValueAsString in interface ParameterServicenamespaceCode - 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 nullorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic String getParameterValueAsString(Class<?> componentClass, String parameterName)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetParameterValueAsString in interface ParameterServicecomponentClass - the class with the namespace & component annotationsparameterName - the parameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic String getParameterValueAsString(Class<?> componentClass, String parameterName, String defaultValue)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetParameterValueAsString in interface ParameterServicecomponentClass - 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 nullorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic Collection<String> getParameterValuesAsString(String namespaceCode, String componentCode, String parameterName)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetParameterValuesAsString in interface ParameterServicenamespaceCode - the namespace codecomponentCode - the component codeparameterName - the parameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValuesAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic Collection<String> getParameterValuesAsString(Class<?> componentClass, String parameterName)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetParameterValuesAsString in interface ParameterServicecomponentClass - the class with the namespace & component annotationsparameterName - the parameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getParameterValuesAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey)} for detailspublic Collection<String> getSubParameterValuesAsString(String namespaceCode, String componentCode, String parameterName, String constrainingValue)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetSubParameterValuesAsString in interface ParameterServicenamespaceCode - the namespace codecomponentCode - the component codeparameterName - the parameter nameconstrainingValue - the subParameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getSubParameterValuesAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey, String)} for detailspublic Collection<String> getSubParameterValuesAsString(Class<?> componentClass, String parameterName, String constrainingValue)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetSubParameterValuesAsString in interface ParameterServicecomponentClass - the class with the namespace & component annotationsparameterName - the parameter nameconstrainingValue - the subParameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getSubParameterValuesAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey, String)} for detailspublic String getSubParameterValueAsString(String namespaceCode, String componentCode, String parameterName, String constrainingValue)
ParameterServiceThe parameter key is constructed from the following:
getSubParameterValueAsString in interface ParameterServicenamespaceCode - the namespace codecomponentCode - the component codeparameterName - the parameter nameconstrainingValue - the subParameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getSubParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey, String)} for detailspublic String getSubParameterValueAsString(Class<?> componentClass, String parameterName, String constrainingValue)
ParameterServiceThe parameter key is constructed from the following:
ParameterConstants.NAMESPACE
annotation on the componentClassParameterConstants.COMPONENT
annotation on the componentClassgetSubParameterValueAsString in interface ParameterServicecomponentClass - the class with the namespace & component annotationsparameterName - the parameter nameconstrainingValue - the subParameter nameorg.kuali.rice.coreservice.api.parameter.ParameterRepositoryService#getSubParameterValueAsString(org.kuali.rice.coreservice.api.parameter.ParameterKey, String)} for detailspublic void setKualiModuleService(KualiModuleService kualiModuleService)
public void setParameterRepositoryService(ParameterRepositoryService parameterRepositoryService)
public void setApplicationId(String applicationId)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.