wt.inf.container
Class MigrateUserCabFolderToXchgContainer

java.lang.Object
  extended bywt.inf.container.MigrateUserCabFolderToXchgContainer
All Implemented Interfaces:
JavaMigrator

public class MigrateUserCabFolderToXchgContainer
extends Object
implements JavaMigrator

Migrates personal cabinet containers. This migrator assumes that users have already been migrated to the appropriate 7.0 domain. The steps this migrator takes are:

  1. Assign all personal cabinets to the exchange container
  2. Assign all folders within a personal cabinet to the exchange container


Field Summary
private  DirectiveServices ds
           
private  long exchangeOid
           
 
Constructor Summary
MigrateUserCabFolderToXchgContainer()
           
 
Method Summary
private  long getExchangeOid()
          Gets the oid of the exchange container.
private  void migrateCabinetsToExchange()
          Assigns personal cabinets to the exchange container
private  void migrateFoldersToExchange()
          Assigns folders in personal cabinets to the exchange container
 boolean runMigration(DirectiveServices directive_services)
          Run the migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ds

private DirectiveServices ds

exchangeOid

private long exchangeOid
Constructor Detail

MigrateUserCabFolderToXchgContainer

public MigrateUserCabFolderToXchgContainer()
Method Detail

runMigration

public boolean runMigration(DirectiveServices directive_services)
                     throws Throwable
Run the migration.

Specified by:
runMigration in interface JavaMigrator
Parameters:
directive_services - provide access to database, logging, and versioning information
Returns:
true
Throws:
Throwable - declared so that migrators can let exceptions contributing to failure pass out of the method. The migrator runner will handle these by logging them.

migrateCabinetsToExchange

private void migrateCabinetsToExchange()
                                throws Exception
Assigns personal cabinets to the exchange container

Throws:
Exception

migrateFoldersToExchange

private void migrateFoldersToExchange()
                               throws Exception
Assigns folders in personal cabinets to the exchange container

Throws:
Exception

getExchangeOid

private long getExchangeOid()
                     throws Exception
Gets the oid of the exchange container.

Returns:
The oid of the exchange container
Throws:
WTException - If the exchange container can't be found, or if there is more than one row in the exchange container table
Exception