public interface PortalConfiguration
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String key)
Retrieve a portal configuration setting
|
boolean |
getBoolean(String key,
boolean defaultValue)
Retrieve a portal configuration setting
|
double |
getDouble(String key)
Retrieve a portal configuration setting
|
double |
getDouble(String key,
double defaultValue)
Retrieve a portal configuration setting
|
float |
getFloat(String key)
Retrieve a portal configuration setting
|
float |
getFloat(String key,
float defaultValue)
Retrieve a portal configuration setting
|
int |
getInt(String key)
Retrieve a portal configuration setting
|
int |
getInt(String key,
int defaultValue)
Retrieve a portal configuration setting
|
Iterator<String> |
getKeys()
Retrieve an iterator over the keys of all portal configuration settings
|
List |
getList(String key)
Retrieve a list of multivalued portal configuration settings
|
long |
getLong(String key)
Retrieve a portal configuration setting
|
long |
getLong(String key,
long defaultValue)
Retrieve a portal configuration setting
|
String |
getString(String key)
Retrieve a portal configuration setting
|
String |
getString(String key,
String defaultValue)
Retrieve a portal configuration setting
|
String[] |
getStringArray(String key)
Retrieve the multivalued string array of portal configuration setting for a given key
|
void |
setString(String key,
String value)
Set a non-persisted (runtime only) configuration setting value for a given key
|
boolean getBoolean(String key)
key
- the name of the portal configuration settingboolean getBoolean(String key, boolean defaultValue)
key
- the name of the portal configuration settingdefaultValue
- if the property is not found, use this default valueString getString(String key)
key
- the name of the portal configuration settingString getString(String key, String defaultValue)
key
- the name of the portal configuration settingdefaultValue
- if the property is not found, use this default valuedouble getDouble(String key)
key
- the name of the portal configuration settingdouble getDouble(String key, double defaultValue)
key
- the name of the portal configuration settingdefaultValue
- if the property is not found, use this default valuefloat getFloat(String key)
key
- the name of the portal configuration settingfloat getFloat(String key, float defaultValue)
key
- the name of the portal configuration settingdefaultValue
- if the property is not found, use this default valueint getInt(String key)
key
- the name of the portal configuration settingint getInt(String key, int defaultValue)
key
- the name of the portal configuration settingdefaultValue
- if the property is not found, use this default valueList getList(String key)
key
- the name of the portal configuration settinglong getLong(String key)
key
- the name of the portal configuration settinglong getLong(String key, long defaultValue)
key
- the name of the portal configuration settingdefaultValue
- if the property is not found, use this default valueString[] getStringArray(String key)
key
- the name of the portal configuration settingIterator<String> getKeys()
Iterator
over the keys for all configuration settingsCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.