net.sf.exorcist.midgard
Class MidgardImporter

java.lang.Object
  extended by net.sf.exorcist.midgard.MidgardImporter
All Implemented Interfaces:
ContentImporter

public class MidgardImporter
extends java.lang.Object
implements ContentImporter


Constructor Summary
MidgardImporter()
           
 
Method Summary
 void deleteObject(MidgardSchema schema, java.lang.String guid)
           
 void importContent(ContentState state)
          Imports content into a target content repository.
 void importObject(MidgardSchema schema, int parent)
           
 void setDatabase(java.lang.String database)
           
 void setDelete(boolean delete)
           
 void setFilepath(java.lang.String filepath)
           
 void setPassword(java.lang.String password)
           
 void setSchema(java.lang.String file)
           
 void setSitegroup(java.lang.String sitegroup)
           
 void setUsername(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidgardImporter

public MidgardImporter()
Method Detail

setSchema

public void setSchema(java.lang.String file)
               throws java.io.IOException,
                      javax.xml.parsers.ParserConfigurationException,
                      org.xml.sax.SAXException
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

setSitegroup

public void setSitegroup(java.lang.String sitegroup)

setDatabase

public void setDatabase(java.lang.String database)

setUsername

public void setUsername(java.lang.String username)

setPassword

public void setPassword(java.lang.String password)

setFilepath

public void setFilepath(java.lang.String filepath)

setDelete

public void setDelete(boolean delete)

importObject

public void importObject(MidgardSchema schema,
                         int parent)
                  throws java.sql.SQLException,
                         java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

deleteObject

public void deleteObject(MidgardSchema schema,
                         java.lang.String guid)

importContent

public void importContent(ContentState state)
                   throws ContentException
Description copied from interface: ContentImporter
Imports content into a target content repository. The content to import is contained in the content state instance passed by the Exorcist framework as the argument.

Specified by:
importContent in interface ContentImporter
Parameters:
state - the content state snapshot to be imported
Throws:
ContentException - if the selected content could not be imported


Copyright © 2005 The Exorcist Team @ SourceForge. All Rights Reserved.