com.ptc.windchill.esi.migrate
Class OrgAssociationMigrator.Server

java.lang.Object
  extended bycom.ptc.windchill.esi.migrate.OrgAssociationMigrator.Server
All Implemented Interfaces:
RemoteAccess
Enclosing class:
OrgAssociationMigrator

public static class OrgAssociationMigrator.Server
extends Object
implements RemoteAccess


Field Summary
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
protected OrgAssociationMigrator.Server()
          Constructs a Server object which performs the migration.
 
Method Summary
protected  void migrate()
          Migrates RTP Part/Organizations Associations to ESI Target Assignment Links
protected  void migrate(WTPartMaster master, Collection targets)
          Migrates RTP Part/Organizations Associations for the supplied part master object.
protected  boolean migrateFromReleaseActivity(OrgAssociationMigrator.PartTargetAssignments assignments)
          Creates ESI Target Assignment Links for the supplied part iteration based on the iteration's release history.
static Boolean runMigration()
          Static method for initiating migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrgAssociationMigrator.Server

protected OrgAssociationMigrator.Server()
                                 throws WTException
Constructs a Server object which performs the migration.

Throws:
WTException
Method Detail

runMigration

public static Boolean runMigration()
                            throws WTException
Static method for initiating migration. requires: - RTP Organization migration must be complete. - RTP Release History migration must be complete. - ERP Release History import must be complete.

Throws:
WTException

migrate

protected void migrate()
                throws WTException
Migrates RTP Part/Organizations Associations to ESI Target Assignment Links

Throws:
WTException

migrate

protected void migrate(WTPartMaster master,
                       Collection targets)
                throws WTException,
                       SQLException
Migrates RTP Part/Organizations Associations for the supplied part master object.

Parameters:
master - - the part master to migrate
targets - - targets to which the supplied master has OrgPMAssociations.
Throws:
WTException
SQLException

migrateFromReleaseActivity

protected boolean migrateFromReleaseActivity(OrgAssociationMigrator.PartTargetAssignments assignments)
                                      throws WTException
Creates ESI Target Assignment Links for the supplied part iteration based on the iteration's release history. The iteration will be assigned to those targets to which it has been released.

Returns:
true if the iteration has been released; otherwise, false
Throws:
WTException