This class acts as a convenience gateway for getting property values
via the PropertiesManager. We do this because most calls to the
PropertiesManager are just to get the value of a specific property and
thus the caller doesn't need the full RollerPropertyData object.
We also provide some methods for converting to different data types.
isFrontPageWeblog(String weblogHandle) Convenience method for Roller classes trying to determine if a given
weblog handle represents the front page blog.
public static boolean
isSiteWideWeblog(String weblogHandle) Convenience method for Roller classes trying to determine if a given
weblog handle represents the front page blog configured to render
site-wide data.
public static String getAbsoluteContextURL()(Code)
Get the absolute url to this site.
This method will just return the value of the "site.absoluteurl"
property if it is set, otherwise it will return the non-persisted
value which is set by the InitFilter.
getBooleanProperty
public static boolean getBooleanProperty(String name)(Code)
Retrieve a property as a boolean ... defaults to false if there is an error
getIntProperty
public static int getIntProperty(String name)(Code)
Retrieve a property as an int ... defaults to -1 if there is an error
public static String getRuntimeConfigDefsAsString()(Code)
Get the runtime configuration definitions XML file as a string.
This is basically a convenience method for accessing this file.
The file itself contains meta-data about what configuration
properties we change at runtime via the UI and how to setup
the display for editing those properties.
isFrontPageWeblog
public static boolean isFrontPageWeblog(String weblogHandle)(Code)
Convenience method for Roller classes trying to determine if a given
weblog handle represents the front page blog.
isSiteWideWeblog
public static boolean isSiteWideWeblog(String weblogHandle)(Code)
Convenience method for Roller classes trying to determine if a given
weblog handle represents the front page blog configured to render
site-wide data.
setAbsoluteContextURL
public static void setAbsoluteContextURL(String url)(Code)
Special method which sets the non-persisted absolute url to this site.
This property is *not* persisted in any way.
setRelativeContextURL
public static void setRelativeContextURL(String url)(Code)
Special method which sets the non-persisted relative url to this site.
This property is *not* persisted in any way.