org.apache.lenya.cms.export
Class Importer

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.export.Importer
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled

public class Importer
extends org.apache.avalon.framework.logger.AbstractLogEnabled

Import content.


Constructor Summary
Importer(org.apache.avalon.framework.service.ServiceManager manager, org.apache.avalon.framework.logger.Logger logger)
          Ctor.
 
Method Summary
protected  void convertLinks(org.apache.lenya.cms.publication.Publication srcPub, org.apache.lenya.cms.publication.Area area)
           
protected  void importChildren(org.apache.lenya.cms.publication.Area area, org.apache.lenya.xml.NamespaceHelper helper, org.w3c.dom.Element element, java.lang.String baseUri, java.lang.String path)
           
 void importContent(org.apache.lenya.cms.publication.Area area, java.lang.String path)
          Imports content into an area.
 void importContent(org.apache.lenya.cms.publication.Publication srcPub, org.apache.lenya.cms.publication.Area area, java.lang.String path)
          Imports content from a different publication into an area.
protected  void importDocument(org.apache.lenya.cms.publication.Area area, org.w3c.dom.Element element, java.lang.String baseUri, java.lang.String path, boolean visibleInNav)
           
protected  void importElement(org.apache.lenya.cms.publication.Area area, org.apache.lenya.xml.NamespaceHelper helper, org.w3c.dom.Element element, java.lang.String baseUri, java.lang.String parentPath)
           
 
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
 

Constructor Detail

Importer

public Importer(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

importContent

public void importContent(org.apache.lenya.cms.publication.Area area,
                          java.lang.String path)
                   throws java.lang.Exception
Imports content into an area.

Parameters:
area - The area.
path - The path containing the content.
Throws:
java.lang.Exception - if an error occurs.

importContent

public void importContent(org.apache.lenya.cms.publication.Publication srcPub,
                          org.apache.lenya.cms.publication.Area area,
                          java.lang.String path)
                   throws java.lang.Exception
Imports content from a different publication into an area.

Parameters:
srcPub - The source publication.
area - The area.
path - The path containing the content.
Throws:
java.lang.Exception - if an error occurs.

importElement

protected void importElement(org.apache.lenya.cms.publication.Area area,
                             org.apache.lenya.xml.NamespaceHelper helper,
                             org.w3c.dom.Element element,
                             java.lang.String baseUri,
                             java.lang.String parentPath)

importDocument

protected void importDocument(org.apache.lenya.cms.publication.Area area,
                              org.w3c.dom.Element element,
                              java.lang.String baseUri,
                              java.lang.String path,
                              boolean visibleInNav)

importChildren

protected void importChildren(org.apache.lenya.cms.publication.Area area,
                              org.apache.lenya.xml.NamespaceHelper helper,
                              org.w3c.dom.Element element,
                              java.lang.String baseUri,
                              java.lang.String path)

convertLinks

protected void convertLinks(org.apache.lenya.cms.publication.Publication srcPub,
                            org.apache.lenya.cms.publication.Area area)


Copyright $ Apache Software Foundation. All Rights Reserved.