org.hippoecm.hst.configuration.model
Class HstManagerImpl

java.lang.Object
  extended by org.hippoecm.hst.configuration.model.HstManagerImpl
All Implemented Interfaces:
HstManager

public class HstManagerImpl
extends Object
implements HstManager

This class handles the loading of HstNodeImpl's.


Field Summary
static Object MUTEX
          general mutex on which implementation can synchronize with the HstManagerImpl
 
Constructor Summary
HstManagerImpl()
           
 
Method Summary
 void addHstConfigurationAugmenter(HstConfigurationAugmenter augmenter)
          Adds hstConfigurationProvider to hstConfigurationAugmenters
protected  void buildSites()
           
 String getCmsPreviewPrefix()
           
 HstNode getCommonCatalog()
           
 Map<String,HstNode> getEnhancedConfigurationRootNodes()
           
 Map<Set<String>,HstComponentsConfigurationService> getHstComponentsConfigurationInstanceCache()
           
 List<HstConfigurationAugmenter> getHstConfigurationAugmenters()
           
 Map<String,HstSiteRootNode> getHstSiteRootNodes()
           
 String getPathSuffixDelimiter()
          Returns the request path suffix delimiter.
 String getRootPath()
           
 HstSiteMapItemHandlerFactory getSiteMapItemHandlerFactory()
           
 HstSiteMapMatcher getSiteMapMatcher()
          a HstSitesManager must contain a reference to the HstSiteMapMatcher that is being used.
 HstURLFactory getUrlFactory()
           
 VirtualHosts getVirtualHosts()
           
 void invalidate(javax.jcr.observation.EventIterator events)
          Invalidates this HstSitesManager with EventIterator events.
 void invalidateAll()
          Invalidates this HstSitesManager completely.
 void setChannelManager(MutableChannelManager channelManager)
           
 void setCmsPreviewPrefix(String cmsPreviewPrefix)
           
 void setComponentRegistry(HstComponentRegistry componentRegistry)
           
 void setCredentials(javax.jcr.Credentials credentials)
           
 void setHstLinkCreator(HstLinkCreator hstLinkCreator)
           
 void setPathSuffixDelimiter(String pathSuffixDelimiter)
           
 void setRepository(javax.jcr.Repository repository)
           
 void setRootPath(String rootPath)
           
 void setSiteMapItemHandlerFactory(HstSiteMapItemHandlerFactory siteMapItemHandlerFactory)
           
 void setSiteMapItemHandlerRegistry(HstSiteMapItemHandlerRegistry siteMapItemHandlerRegistry)
           
 void setSiteMapMatcher(HstSiteMapMatcher siteMapMatcher)
           
 void setUrlFactory(HstURLFactory urlFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MUTEX

public static final Object MUTEX
general mutex on which implementation can synchronize with the HstManagerImpl

Constructor Detail

HstManagerImpl

public HstManagerImpl()
Method Detail

setRepository

public void setRepository(javax.jcr.Repository repository)

setCredentials

public void setCredentials(javax.jcr.Credentials credentials)

setRootPath

public void setRootPath(String rootPath)

getRootPath

public String getRootPath()

setComponentRegistry

public void setComponentRegistry(HstComponentRegistry componentRegistry)

setSiteMapItemHandlerRegistry

public void setSiteMapItemHandlerRegistry(HstSiteMapItemHandlerRegistry siteMapItemHandlerRegistry)

getCmsPreviewPrefix

public String getCmsPreviewPrefix()

setCmsPreviewPrefix

public void setCmsPreviewPrefix(String cmsPreviewPrefix)

setUrlFactory

public void setUrlFactory(HstURLFactory urlFactory)

getUrlFactory

public HstURLFactory getUrlFactory()
Specified by:
getUrlFactory in interface HstManager
Returns:
the HstURLFactory

setSiteMapMatcher

public void setSiteMapMatcher(HstSiteMapMatcher siteMapMatcher)

getSiteMapMatcher

public HstSiteMapMatcher getSiteMapMatcher()
Description copied from interface: HstManager
a HstSitesManager must contain a reference to the HstSiteMapMatcher that is being used. You can inject your own HstSiteMapMatcher implementation if needed

Specified by:
getSiteMapMatcher in interface HstManager
Returns:
the global HstSiteMapMatcher implementation used for all the hosts & sites

getHstConfigurationAugmenters

public List<HstConfigurationAugmenter> getHstConfigurationAugmenters()
Specified by:
getHstConfigurationAugmenters in interface HstManager
Returns:
the List of HstConfigurationAugmenters and empty list if no providers available.

addHstConfigurationAugmenter

public void addHstConfigurationAugmenter(HstConfigurationAugmenter augmenter)
Adds hstConfigurationProvider to hstConfigurationAugmenters

Parameters:
augmenter -

setSiteMapItemHandlerFactory

public void setSiteMapItemHandlerFactory(HstSiteMapItemHandlerFactory siteMapItemHandlerFactory)

getSiteMapItemHandlerFactory

public HstSiteMapItemHandlerFactory getSiteMapItemHandlerFactory()
Specified by:
getSiteMapItemHandlerFactory in interface HstManager
Returns:
the siteMapItemHandler factory which can create HstSiteMapItemHandler instances

getPathSuffixDelimiter

public String getPathSuffixDelimiter()
Description copied from interface: HstManager
Returns the request path suffix delimiter.

Specified by:
getPathSuffixDelimiter in interface HstManager
Returns:

setPathSuffixDelimiter

public void setPathSuffixDelimiter(String pathSuffixDelimiter)

setChannelManager

public void setChannelManager(MutableChannelManager channelManager)

setHstLinkCreator

public void setHstLinkCreator(HstLinkCreator hstLinkCreator)

getVirtualHosts

public VirtualHosts getVirtualHosts()
                             throws RepositoryNotAvailableException
Specified by:
getVirtualHosts in interface HstManager
Returns:
the VirtualHosts
Throws:
RepositoryNotAvailableException

buildSites

protected void buildSites()
                   throws RepositoryNotAvailableException
Throws:
RepositoryNotAvailableException

invalidate

public void invalidate(javax.jcr.observation.EventIterator events)
Description copied from interface: HstManager
Invalidates this HstSitesManager with EventIterator events. Typically this invalidate is called after a received event indicating that for example the backing hosts configuration has been changed.

Specified by:
invalidate in interface HstManager

invalidateAll

public void invalidateAll()
Description copied from interface: HstManager
Invalidates this HstSitesManager completely. For example useful after a repository reconnection where you do not know whether some events might have been missed

Specified by:
invalidateAll in interface HstManager

getHstSiteRootNodes

public Map<String,HstSiteRootNode> getHstSiteRootNodes()

getEnhancedConfigurationRootNodes

public Map<String,HstNode> getEnhancedConfigurationRootNodes()

getCommonCatalog

public HstNode getCommonCatalog()

getHstComponentsConfigurationInstanceCache

public Map<Set<String>,HstComponentsConfigurationService> getHstComponentsConfigurationInstanceCache()
Returns:
the hstComponentsConfigurationInstanceCache. This Map is never null


Copyright © 2008-2012 Hippo. All Rights Reserved.