|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.container.LoadExchangeContainer
Creates the exchange container and assigns it to the special domains.
Field Summary | |
private static String |
CREATOR_RESOURCE
|
private DirectiveServices |
ds
|
private ObjectIdentifier |
exchangeOid
|
private static String |
RESOURCE
|
private ObjectIdentifier |
rootDomainOid
|
private static String |
SESSION_ITERATION_DOMAIN_NAME
|
private ObjectIdentifier |
systemDomainOid
|
Constructor Summary | |
LoadExchangeContainer()
|
Method Summary | |
private ObjectIdentifier |
createCabinet(String name,
String description,
ObjectIdentifier domain_id,
ObjectIdentifier container_id)
Creates a cabinet with the given properties |
private ObjectIdentifier |
getCabinet(String name)
Finds the oid of the cabinet with the given name |
private ObjectIdentifier |
getRootDomain()
Finds the oid of the root domain |
private ObjectIdentifier |
getSpecialDomain(String name)
Finds the oid of the given special domain |
private void |
migrateExchangeCabinets()
Assigns all cabinets in the global system domain to the exchange container |
private void |
migrateExchangeContainer()
Creates the exchange container |
private void |
migrateExchangeSubFolders()
Assigns all subfolders of all cabinets in the exchange container to the exchange container. |
private void |
migrateSessionIterationDomain()
Assigns the session iteration domain to the exchange container |
boolean |
runMigration(DirectiveServices directive_services)
Implemented from JavaMigrator |
private void |
safeClose(ResultSet rs)
If the Statement is not null, try to close it, catching and smothering any SQLException that results. |
private void |
safeClose(Statement stmt)
If the Statement is not null, try to close it, catching and smothering any SQLException that results. |
private void |
setContainer(ObjectIdentifier contained_id,
ObjectIdentifier container_id)
Assigns the contained object with oid contained_id to container
container_id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CREATOR_RESOURCE
private static final String SESSION_ITERATION_DOMAIN_NAME
private DirectiveServices ds
private ObjectIdentifier exchangeOid
private ObjectIdentifier rootDomainOid
private ObjectIdentifier systemDomainOid
Constructor Detail |
public LoadExchangeContainer()
Method Detail |
public boolean runMigration(DirectiveServices directive_services) throws Exception
runMigration
in interface JavaMigrator
directive_services
- Contains migration resources
true
WTException
- If the system cabinet can't be found
Exception
private void migrateExchangeContainer() throws Exception
Exception
private void migrateExchangeCabinets() throws Exception
Exception
private void migrateExchangeSubFolders() throws Exception
Exception
private void migrateSessionIterationDomain() throws Exception
Exception
private ObjectIdentifier getRootDomain() throws Exception
ObjectIdentifier
of the root domain
WTException
- If the root domain can't be found
Exception
private ObjectIdentifier getSpecialDomain(String name) throws Exception
ObjectIdentifier
of the domain
WTException
- If the domain can't be found
Exception
private void setContainer(ObjectIdentifier contained_id, ObjectIdentifier container_id) throws Exception
contained_id
to container
container_id
contained_id
- The oid of the contained object to assign to the containercontainer_id
- The oid of the container to put the object in
Exception
private ObjectIdentifier getCabinet(String name) throws Exception
name
- The name of the cabinet to look for
ObjectIdentifier
of the cabinet,
or null
if it couldn't be found.
Exception
private ObjectIdentifier createCabinet(String name, String description, ObjectIdentifier domain_id, ObjectIdentifier container_id) throws Exception
name
- The name of the cabinetdescription
- The description of the cabinetdomain_id
- The oid of the administrative domain for the cabinetcontainer_id
- The oid of the container for the cabinet
Exception
private void safeClose(Statement stmt)
stmt
- The Statement
to closeprivate void safeClose(ResultSet rs)
rs
- The ResultSet
to close
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |