|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.blog.BlojsomConfiguration
BlojsomConfiguration
Field Summary |
Constructor Summary | |
BlojsomConfiguration(javax.servlet.ServletConfig servletConfig,
java.util.Map blojsomConfiguration)
Initialize the BlojsomConfiguration object |
Method Summary | |
void |
addBlogID(java.lang.String blogID)
Add a blog ID to the known blog IDs |
boolean |
checkBlogIDExists(java.lang.String blogID)
Check to see if a blog ID exists in the known blog IDs |
java.lang.String |
getAuthorizationProvider()
Get the name of the authorization provider class |
java.lang.String |
getBaseConfigurationDirectory()
Get the base directory for obtaining configuration information |
java.util.Map |
getBlogIDs()
Retrieve a Map of the known blog IDs |
java.util.Map |
getBlogUsers()
Deprecated. |
java.util.Map |
getBlojsomConfiguration()
Returns an unmodifiable map of the blojsom configuration properties |
java.lang.Object |
getBlojsomProperty(java.lang.String propertyKey)
Return a blojsom configuration property |
java.util.List |
getBlojsomPropertyAsList(java.lang.String propertyKey)
Retrieve a property from blojsom.properties as a List |
java.lang.String |
getBlojsomPropertyAsString(java.lang.String propertyKey)
Retrieve a blojsom property as a string |
java.lang.String[] |
getBlojsomUsers()
Get the list of users for this blojsom instance returned as a String[] |
java.lang.String |
getDefaultUser()
Get the default user for this blojsom instance |
BlojsomEventBroadcaster |
getEventBroadcaster()
Get the BlojsomEventBroadcaster in use to broadcast events |
java.lang.String |
getFetcherClass()
Get the classname of the fetcher used for this blojsom instance |
java.lang.String |
getGlobalBlogHome()
Get the name of the global blog home directory |
java.lang.String |
getInstallationDirectory()
Get the installation directory for blojsom. |
java.util.Locale[] |
getInstalledLocales()
Get the installed locales as Locale objects |
java.lang.String[] |
getInstalledLocalesAsStrings()
Get the installed locales for this blojsom installation |
java.lang.String |
getQualifiedResourceDirectory()
Get the fully qualified directory where resources will be located off the installed directory. |
java.lang.String |
getResourceDirectory()
Get the directory where resources will be located off the installed directory. |
java.lang.String |
getResourceManager()
Get the name of the resource manager class |
java.lang.String |
getTemplatesDirectory()
Get the directory where templates will be located off the user's directory. |
BlogUser |
loadBlog(java.lang.String blogID)
Load a BlogUser for a given blog ID |
void |
removeBlogID(java.lang.String blogID)
Remove a blog ID from the known blog IDs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlojsomConfiguration(javax.servlet.ServletConfig servletConfig, java.util.Map blojsomConfiguration) throws BlojsomConfigurationException
servletConfig
- Servlet configuration informationblojsomConfiguration
- Map of loaded blojsom propertiesMethod Detail |
public java.util.Map getBlojsomConfiguration()
public java.lang.String getBlojsomPropertyAsString(java.lang.String propertyKey)
propertyKey
- Property key
null
if no property key is foundpublic java.util.List getBlojsomPropertyAsList(java.lang.String propertyKey)
blojsom.properties
as a List
propertyKey
- Key
List
for property or null
if property does not existpublic java.lang.Object getBlojsomProperty(java.lang.String propertyKey)
propertyKey
- Property key
public java.lang.String getDefaultUser()
public java.lang.String getBaseConfigurationDirectory()
public java.lang.String getFetcherClass()
public java.lang.String getInstallationDirectory()
public java.lang.String getTemplatesDirectory()
public java.lang.String getResourceDirectory()
public java.lang.String getQualifiedResourceDirectory()
public java.lang.String[] getBlojsomUsers()
public java.util.Map getBlogUsers()
BlogUser
objects
BlogUser
objects{@link #getBlojsomUsers()}
public java.lang.String getResourceManager()
public java.lang.String getAuthorizationProvider()
public java.lang.String getGlobalBlogHome()
public BlojsomEventBroadcaster getEventBroadcaster()
BlojsomEventBroadcaster
in use to broadcast events
BlojsomEventBroadcaster
public java.lang.String[] getInstalledLocalesAsStrings()
public java.util.Locale[] getInstalledLocales()
Locale
objects
Locale
objectspublic boolean checkBlogIDExists(java.lang.String blogID)
blogID
- Blog ID
true
if the blog ID exists, false
otherwisepublic BlogUser loadBlog(java.lang.String blogID) throws BlojsomException
BlogUser
for a given blog ID
blogID
- Blog ID
BlogUser
object
BlojsomException
- If there is an exception loading the object
public java.util.Map getBlogIDs()
Map
of the known blog IDs
Map
of the known blog IDspublic void addBlogID(java.lang.String blogID)
blogID
- Blog IDpublic void removeBlogID(java.lang.String blogID)
blogID
- Blog ID
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |