org.outerj.daisy.frontend.components.siteconf
Class SitesManagerImpl

java.lang.Object
  extended by AbstractLogEnabled
      extended by org.outerj.daisy.frontend.components.siteconf.SitesManagerImpl
All Implemented Interfaces:
SitesManager

public class SitesManagerImpl
extends AbstractLogEnabled
implements SitesManager

Implementation of the sites manager.

Sites are defined by subdirectories inside one sites directory, each of these subdirectories should contain a file called siteconf.xml.

This component uses the Excalibur ActiveMonitor to assynchronously listen for changes to the siteconf files and the sites directory itself.


Field Summary
 
Fields inherited from interface org.outerj.daisy.frontend.components.siteconf.SitesManager
ROLE
 
Constructor Summary
SitesManagerImpl()
           
 
Method Summary
 void configure(Configuration configuration)
           
 void dispose()
           
 java.lang.String getGlobalCocoonSitemapLocation()
           
 java.lang.String getGlobalPublisherRequestSet()
           
 SaxBuffer getGlobalSkinConf()
          Returns the global (non-site-specific) skinconf.
 java.lang.String getGlobalSkinName()
          Returns the global (non-site-specific) skin name.
 SiteConf getSiteConf(java.lang.String name)
          Returns the SiteConf object for the named site.
 java.util.List getSiteConfs()
          Returns a list of all available sites.
 SiteConf getSiteConfSoftly(java.lang.String name)
          Gets the SiteConf object for the named site, does not throw an exception but returns null if the site does not exist.
 void initialize()
           
 void service(ServiceManager serviceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitesManagerImpl

public SitesManagerImpl()
Method Detail

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Throws:
ServiceException

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Throws:
ConfigurationException

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception

dispose

public void dispose()

getGlobalSkinName

public java.lang.String getGlobalSkinName()
Description copied from interface: SitesManager
Returns the global (non-site-specific) skin name. If not explicitely configured by the user, this returns null.

Specified by:
getGlobalSkinName in interface SitesManager

getSiteConf

public SiteConf getSiteConf(java.lang.String name)
                     throws java.lang.Exception
Description copied from interface: SitesManager
Returns the SiteConf object for the named site. This method throws an exception if it does not exist.

Specified by:
getSiteConf in interface SitesManager
Throws:
java.lang.Exception

getSiteConfSoftly

public SiteConf getSiteConfSoftly(java.lang.String name)
Description copied from interface: SitesManager
Gets the SiteConf object for the named site, does not throw an exception but returns null if the site does not exist.

Specified by:
getSiteConfSoftly in interface SitesManager

getGlobalSkinConf

public SaxBuffer getGlobalSkinConf()
Description copied from interface: SitesManager
Returns the global (non-site-specific) skinconf. Can be null.

Specified by:
getGlobalSkinConf in interface SitesManager

getSiteConfs

public java.util.List getSiteConfs()
Description copied from interface: SitesManager
Returns a list of all available sites. The list contains the SiteConf object for each site.

Specified by:
getSiteConfs in interface SitesManager

getGlobalCocoonSitemapLocation

public java.lang.String getGlobalCocoonSitemapLocation()
Specified by:
getGlobalCocoonSitemapLocation in interface SitesManager

getGlobalPublisherRequestSet

public java.lang.String getGlobalPublisherRequestSet()


Copyright © -2006 . All Rights Reserved.