|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.PropertiesManager
Deprecated PropertiesManager. This class still exists here at org.jasig.portal.PropertiesManager in order to delegate all requests to the real PropertiesManager at org.jasig.portal.properties.PropertiesManager so as not to break backwards compatibility. Pre 2.4 code which imports this old PropertiesManager should still work great. However, note that there is new functionality to be had from the new PropertiesManager in the form of reporting of missing properties and methods which take default values. Please change your imports to import the new PropertiesManager. Presumably this deprecated class will disappear in a future uPortal release.
Constructor Summary | |
PropertiesManager()
Deprecated. |
Method Summary | |
static java.lang.String |
getProperty(java.lang.String name)
Deprecated. Returns the value of a property for a given name. |
static boolean |
getPropertyAsBoolean(java.lang.String name)
Deprecated. Returns the value of a property for a given name. |
static byte |
getPropertyAsByte(java.lang.String name)
Deprecated. Returns the value of a property for a given name as a byte |
static double |
getPropertyAsDouble(java.lang.String name)
Deprecated. Returns the value of a property for a given name as a long |
static float |
getPropertyAsFloat(java.lang.String name)
Deprecated. Returns the value of a property for a given name as a float |
static int |
getPropertyAsInt(java.lang.String name)
Deprecated. Returns the value of a property for a given name as an int |
static long |
getPropertyAsLong(java.lang.String name)
Deprecated. Returns the value of a property for a given name as a long |
static short |
getPropertyAsShort(java.lang.String name)
Deprecated. Returns the value of a property for a given name as a short |
static java.lang.String |
getPropertyUntrimmed(java.lang.String name)
Deprecated. Returns the value of a property for a given name including whitespace trailing the property value, but not including whitespace leading the property value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertiesManager()
Method Detail |
public static java.lang.String getProperty(java.lang.String name) throws MissingPropertyException
name
- the name of the requested property
MissingPropertyException
- - if the requested property cannot be foundpublic static java.lang.String getPropertyUntrimmed(java.lang.String name) throws MissingPropertyException
name
- the name of the requested property
MissingPropertyException
- - (undeclared) if the requested property is not foundpublic static boolean getPropertyAsBoolean(java.lang.String name) throws MissingPropertyException
true
is
returned if the property is set to "true", "yes", "y", or "on"
(regardless of case),
and false
is returned in all other cases.
name
- the name of the requested property
true
if property is set to "true", "yes", "y", or "on" regardless of case, otherwise false
MissingPropertyException
- - when no property of the given name is declared.public static byte getPropertyAsByte(java.lang.String name) throws MissingPropertyException, BadPropertyException
byte
name
- the name of the requested property
byte
MissingPropertyException
- - if the property is not set
BadPropertyException
- - if the property cannot be parsed as a bytepublic static short getPropertyAsShort(java.lang.String name) throws MissingPropertyException, BadPropertyException
short
name
- the name of the requested property
short
MissingPropertyException
- - if the property is not set
BadPropertyException
- - if the property cannot be parsed as a short or is not set.public static int getPropertyAsInt(java.lang.String name) throws MissingPropertyException, BadPropertyException
int
name
- the name of the requested property
int
MissingPropertyException
- - if the property is not set
BadPropertyException
- - if the property cannot be parsed as an intpublic static long getPropertyAsLong(java.lang.String name) throws MissingPropertyException, BadPropertyException
long
name
- the name of the requested property
long
MissingPropertyException
- - if the property is not set
BadPropertyException
- - if the property cannot be parsed as a longpublic static float getPropertyAsFloat(java.lang.String name) throws MissingPropertyException, BadPropertyException
float
name
- the name of the requested property
float
MissingPropertyException
- - if the property is not set
BadPropertyException
- - if the property cannot be parsed as a floatpublic static double getPropertyAsDouble(java.lang.String name) throws MissingPropertyException, BadPropertyException
long
name
- the name of the requested property
double
MissingPropertyException
- - if the property has not been set
BadPropertyException
- - if the property cannot be parsed as a double or is not set.
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |