wt.ixb.archive
Class ArchiveHelper

java.lang.Object
  extended bywt.ixb.archive.ArchiveHelper

public class ArchiveHelper
extends Object

Contains general purpose helper methods for Archive and Restore IX applications


Field Summary
private static String ARCHIVE_CONTEXT_KEY
           
private static String ARCHIVE_CONTEXT_VALUE
           
static String IXB_RESTORE_CONTEXT_KEY
           
private static String RESTORED_OBJECTS_SET_KEY
           
private static boolean VERBOSE
           
 
Constructor Summary
ArchiveHelper()
           
 
Method Summary
static void addToRestoredObjectsSet(Persistable obj, Importer importer)
           
static Exporter getExporterForArchive(ApplicationExportHandler appExpHandler, WTContainerRef sourceContainer, IxbElement localMappingRules)
           
static Importer getImporterForRestore(ApplicationImportHandler appImpHandler, WTContainerRef targetContainer, IxbElement localMappingRules, boolean overrideConflicts)
           
static WTCollection getRestoredObjectsSet(Importer importer)
           
static boolean isArchiveRestoreContext(ExpImporter expImporter)
           
private static void PP(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IXB_RESTORE_CONTEXT_KEY

public static final String IXB_RESTORE_CONTEXT_KEY
See Also:
Constant Field Values

ARCHIVE_CONTEXT_KEY

private static final String ARCHIVE_CONTEXT_KEY
See Also:
Constant Field Values

ARCHIVE_CONTEXT_VALUE

private static final String ARCHIVE_CONTEXT_VALUE
See Also:
Constant Field Values

RESTORED_OBJECTS_SET_KEY

private static final String RESTORED_OBJECTS_SET_KEY
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
Constructor Detail

ArchiveHelper

public ArchiveHelper()
Method Detail

getExporterForArchive

public static Exporter getExporterForArchive(ApplicationExportHandler appExpHandler,
                                             WTContainerRef sourceContainer,
                                             IxbElement localMappingRules)
                                      throws WTException
Throws:
WTException

getImporterForRestore

public static Importer getImporterForRestore(ApplicationImportHandler appImpHandler,
                                             WTContainerRef targetContainer,
                                             IxbElement localMappingRules,
                                             boolean overrideConflicts)
                                      throws WTException
Throws:
WTException

isArchiveRestoreContext

public static boolean isArchiveRestoreContext(ExpImporter expImporter)

addToRestoredObjectsSet

public static void addToRestoredObjectsSet(Persistable obj,
                                           Importer importer)
                                    throws WTException
Throws:
WTException

getRestoredObjectsSet

public static WTCollection getRestoredObjectsSet(Importer importer)

PP

private static void PP(String s)