Package org.kuali.coeus.propdev.api.s2s
Interface S2SConfigurationService
-
public interface S2SConfigurationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BooleangetValueAsBoolean(String name)This method gets a config value for the s2s application from a config name as a Boolean.StringgetValueAsString(String name)This method gets a config value for the s2s application from a config name as a String.List<String>getValuesFromCommaSeparatedParam(String name)This method gets a config values for the s2s application from a config name as a List of Strings.
-
-
-
Method Detail
-
getValueAsString
String getValueAsString(String name)
This method gets a config value for the s2s application from a config name as a String. The name cannot be blank. This method will return the config value or null if the value cannot be found.- Parameters:
name- the name to retrieve the value for- Returns:
- the configuration value or null
- Throws:
IllegalArgumentException- if the name is blank
-
getValueAsBoolean
Boolean getValueAsBoolean(String name)
This method gets a config value for the s2s application from a config name as a Boolean. The name cannot be blank. This method will return the config value or null if the value cannot be found.This method will return null if the parameter does not exist or is not a valid truth value.
valid true values (case insensitive):- Y
- true
- on
- 1
- t
- enabled
- N
- false
- off
- 0
- f
- disabled
- Parameters:
name- the name to retrieve the value for- Returns:
- the configuration value or null
- Throws:
IllegalArgumentException- if the name is blank
-
getValuesFromCommaSeparatedParam
List<String> getValuesFromCommaSeparatedParam(String name)
This method gets a config values for the s2s application from a config name as a List of Strings. The name cannot be blank. This method will return the config values or null if the value cannot be found.- Parameters:
name- the name to retrieve the value for- Returns:
- the configuration values or null
- Throws:
IllegalArgumentException- if the name is blank
-
-