com.plumtree.portalpages.admin.ptutilities.migrationutility.exp
Class PTExportMigrationTask

java.lang.Object
  extended by com.plumtree.portalpages.admin.ptutilities.migrationutility.PTMigrationTask
      extended by com.plumtree.portalpages.admin.ptutilities.migrationutility.exp.PTExportMigrationTask

public class PTExportMigrationTask
extends PTMigrationTask

This class is what calls the actual server migration code. It runs in a separate thread to prevent UI timeouts.

Author:
jennifersu

Field Summary
protected  XPHashtable m_htMWSPropBags
          Hashtable of MWS property bags to send.
protected  IPTSession m_ptSession
          IPTSession
protected  XPHashtable m_xphtUUIDs
          Hashtable of migrated objects Key=UUID; Value=IPTMigrationElement
static java.lang.String PACKAGE_DESCRIPTION
           
static java.lang.String PACKAGE_NAME
           
static java.lang.String PUBLISHER_NAME
           
 
Fields inherited from class com.plumtree.portalpages.admin.ptutilities.migrationutility.PTMigrationTask
CANCEL, CREATED, DONE, FAILED, INPROGRESS, m_intStatus, m_MigrationManager
 
Constructor Summary
PTExportMigrationTask(IPTMigrationManager _MigrationManager, IPTSession _ptSession, PTGrowableSortedArrayWrapper _saData, java.lang.String _strName, java.lang.String _strDescription, java.lang.String _strPublisher, boolean exportParentFoldersWhenExportDeps)
           
 
Method Summary
 void ExportAdminFolderContents(IPTAdminCatalog ptAC, IPTAdminFolder ptAF, boolean bExportAllDependencies)
          Recursively export all contents of the given IPTAdminFolder
 void ExportDependentObjects(IPTMigrationElement ptME, boolean bExportAllDependencies, DependencyBundle dbOrig)
          Recursively export all dependencies of the given IPTMigrationElement
 void ExportDirectoryFolderContents(IPTCatalog ptCatalog, IPTFolder ptFolder, boolean bExportAllDependencies)
          Recursively export all contents of the given IPTFolder.
 XPArrayList GetMWSMessages()
           
static boolean IsNonMigratableObject(int nClassID, int nObjectID)
          Check for any migration restrictions
 void run()
          Performs the actual migration.
 void SetMWSPropBags(XPHashtable _htMWSPropBags)
          Set the hashtable of property bags to send to MWS's.
 void WriteExportPackage()
          Write package content to file
 
Methods inherited from class com.plumtree.portalpages.admin.ptutilities.migrationutility.PTMigrationTask
Cancel, GetStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGE_NAME

public static final java.lang.String PACKAGE_NAME
See Also:
Constant Field Values

PACKAGE_DESCRIPTION

public static final java.lang.String PACKAGE_DESCRIPTION
See Also:
Constant Field Values

PUBLISHER_NAME

public static final java.lang.String PUBLISHER_NAME
See Also:
Constant Field Values

m_xphtUUIDs

protected XPHashtable m_xphtUUIDs
Hashtable of migrated objects Key=UUID; Value=IPTMigrationElement


m_ptSession

protected IPTSession m_ptSession
IPTSession


m_htMWSPropBags

protected XPHashtable m_htMWSPropBags
Hashtable of MWS property bags to send. Key=MWS ID; Value=IXPPropertyBag

Constructor Detail

PTExportMigrationTask

public PTExportMigrationTask(IPTMigrationManager _MigrationManager,
                             IPTSession _ptSession,
                             PTGrowableSortedArrayWrapper _saData,
                             java.lang.String _strName,
                             java.lang.String _strDescription,
                             java.lang.String _strPublisher,
                             boolean exportParentFoldersWhenExportDeps)
Parameters:
exportParentFoldersWhenExportDeps - If true, export parent folders when exporting dependencies
Method Detail

run

public void run()
Performs the actual migration.

Overrides:
run in class PTMigrationTask

WriteExportPackage

public void WriteExportPackage()
Write package content to file


GetMWSMessages

public XPArrayList GetMWSMessages()
Overrides:
GetMWSMessages in class PTMigrationTask
Returns:
XPArrayList of String each of which represents the return value from an MWS ExportPackage call with info about the MWS. If no MWS's are present or none responded, returns an empty list.

ExportDependentObjects

public void ExportDependentObjects(IPTMigrationElement ptME,
                                   boolean bExportAllDependencies,
                                   DependencyBundle dbOrig)
Recursively export all dependencies of the given IPTMigrationElement

Parameters:
ptME -
bExportAllDependencies -
dbOrig -

ExportAdminFolderContents

public void ExportAdminFolderContents(IPTAdminCatalog ptAC,
                                      IPTAdminFolder ptAF,
                                      boolean bExportAllDependencies)
Recursively export all contents of the given IPTAdminFolder

Parameters:
ptME -
bExportAllDependencies -
dbOrig -

ExportDirectoryFolderContents

public void ExportDirectoryFolderContents(IPTCatalog ptCatalog,
                                          IPTFolder ptFolder,
                                          boolean bExportAllDependencies)
Recursively export all contents of the given IPTFolder.

Parameters:
ptME -
bExportAllDependencies -
dbOrig -

IsNonMigratableObject

public static boolean IsNonMigratableObject(int nClassID,
                                            int nObjectID)
Check for any migration restrictions

Parameters:
nClassID -
nObjectID -
Returns:

SetMWSPropBags

public void SetMWSPropBags(XPHashtable _htMWSPropBags)
Set the hashtable of property bags to send to MWS's. Key=MWS ID; Value=IXPPropertyBag.

Parameters:
_htMWSPropBags -



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.