|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.session.Importer
A class that implements the import operation.
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
EXCHANGE_WRAPPER_ELEMENT
|
static java.lang.String |
SYSCONFIG
Id of the system configuration object. |
protected static WSTrace |
trace
|
Constructor Summary | |
Importer(LocalSession session,
com.waveset.server.Server server)
Build an importer. |
Method Summary | |
void |
importObjects(java.io.InputStream input,
BulkMonitor monitor,
boolean force)
|
void |
importObjects(java.lang.String file,
BulkMonitor monitor,
boolean force)
Import a collection of objects defined in an import file. |
void |
importXml(java.lang.String xml,
BulkMonitor monitor)
Import a collection of objects defined in an XML string. |
protected void |
internalIncludeFile(java.lang.String file)
Given a filename import the file's xml. |
boolean |
isPreserved(java.lang.String id)
Test to see if an object is marked for preservation. |
boolean |
isProtected(PersistentObject obj,
PersistentObject existing)
Test to see if an object is protected. |
void |
setForce(boolean b)
Enable force mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static WSTrace trace
public static final java.lang.String code_id
public static final java.lang.String SYSCONFIG
public static final java.lang.String EXCHANGE_WRAPPER_ELEMENT
Constructor Detail |
public Importer(LocalSession session, com.waveset.server.Server server) throws WavesetException
Method Detail |
public void setForce(boolean b)
public void importObjects(java.lang.String file, BulkMonitor monitor, boolean force) throws WavesetException
!! We should be using a SAX parsing interface here assuming that the input file can be arbitrarily large. For now, we'll bring it in as a string and use the DOM parser.
WavesetException
public void importObjects(java.io.InputStream input, BulkMonitor monitor, boolean force) throws WavesetException
WavesetException
public void importXml(java.lang.String xml, BulkMonitor monitor) throws WavesetException
We'll assume that with the string interface we can use the DOM parser.
WavesetException
protected void internalIncludeFile(java.lang.String file) throws WavesetException
WavesetException
public boolean isPreserved(java.lang.String id)
public boolean isProtected(PersistentObject obj, PersistentObject existing) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |