org.apache.lenya.cms.site.simple
Class DocumentStoreFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.site.simple.DocumentStoreFactory
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.cms.repository.RepositoryItemFactory

public class DocumentStoreFactory
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.lenya.cms.repository.RepositoryItemFactory

Factory for sitetree objects.

Version:
$Id: DocumentStoreFactory.java 527520 2007-04-11 15:22:11Z andreas $

Field Summary
protected  org.apache.avalon.framework.service.ServiceManager manager
           
 
Constructor Summary
DocumentStoreFactory(org.apache.avalon.framework.service.ServiceManager manager, org.apache.avalon.framework.logger.Logger logger)
          Ctor.
 
Method Summary
 org.apache.lenya.cms.repository.RepositoryItem buildItem(org.apache.lenya.cms.repository.Session session, java.lang.String key)
           
protected  void createAreaVersion(org.apache.lenya.cms.publication.Publication publication, java.lang.String areaName, java.lang.String uuid, java.lang.String lang)
           
 java.lang.String getItemType()
           
 boolean isSharable()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected org.apache.avalon.framework.service.ServiceManager manager
Constructor Detail

DocumentStoreFactory

public DocumentStoreFactory(org.apache.avalon.framework.service.ServiceManager manager,
                            org.apache.avalon.framework.logger.Logger logger)
Ctor.

Parameters:
manager - The service manager.
logger - The logger.
Method Detail

getItemType

public java.lang.String getItemType()
Specified by:
getItemType in interface org.apache.lenya.cms.repository.RepositoryItemFactory
See Also:
RepositoryItemFactory.getItemType()

buildItem

public org.apache.lenya.cms.repository.RepositoryItem buildItem(org.apache.lenya.cms.repository.Session session,
                                                                java.lang.String key)
                                                         throws org.apache.lenya.cms.repository.RepositoryException
Specified by:
buildItem in interface org.apache.lenya.cms.repository.RepositoryItemFactory
Throws:
org.apache.lenya.cms.repository.RepositoryException
See Also:
RepositoryItemFactory.buildItem(org.apache.lenya.cms.repository.Session, java.lang.String)

createAreaVersion

protected void createAreaVersion(org.apache.lenya.cms.publication.Publication publication,
                                 java.lang.String areaName,
                                 java.lang.String uuid,
                                 java.lang.String lang)
                          throws org.apache.lenya.cms.publication.PublicationException,
                                 org.apache.avalon.framework.service.ServiceException
Throws:
org.apache.lenya.cms.publication.PublicationException
org.apache.avalon.framework.service.ServiceException

isSharable

public boolean isSharable()


Copyright $ Apache Software Foundation. All Rights Reserved.