|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.container.LoadDefaultOrgContainer
Creates the default org container.
Field Summary | |
private static String |
CREATOR_RESOURCE
|
private DirectiveServices |
ds
|
private WTContainer |
exchange
|
private ObjectIdentifier |
exchangeOid
|
private static String |
ORG_CREATOR_RESOURCE
|
private static String |
PRIVATE_DOMAIN_DESCRIPTION
|
private static String |
RESOURCE
|
private ObjectIdentifier |
rootDomainOid
|
Constructor Summary | |
LoadDefaultOrgContainer()
|
Method Summary | |
private ObjectIdentifier |
createCabinet(String name,
String description,
ObjectIdentifier parent_domain,
ObjectIdentifier parent_container)
Creates a cabinet with the given properties |
private ObjectIdentifier |
createDomain(String name,
String description,
ObjectIdentifier parent_domain,
ObjectIdentifier parent_container)
Creates an AdministrativeDomain named name
with description description that is in domain
parent_id and container container_id . |
private void |
initRootDomainOid()
Finds the oid of the root domain |
private void |
migrateDefaultOrgContainer()
Creates the default org 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. |
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 ORG_CREATOR_RESOURCE
private static final String PRIVATE_DOMAIN_DESCRIPTION
private DirectiveServices ds
private WTContainer exchange
private ObjectIdentifier exchangeOid
private ObjectIdentifier rootDomainOid
Constructor Detail |
public LoadDefaultOrgContainer()
Method Detail |
public boolean runMigration(DirectiveServices directive_services) throws Exception
runMigration
in interface JavaMigrator
directive_services
- Contains migration resources
true
Exception
private void migrateDefaultOrgContainer() throws Exception
Exception
private void initRootDomainOid() throws Exception
WTException
- If the root domain can't be found
Exception
private ObjectIdentifier createDomain(String name, String description, ObjectIdentifier parent_domain, ObjectIdentifier parent_container) throws Exception
AdministrativeDomain
named name
with description description
that is in domain
parent_id
and container container_id
.
name
- The name of the domaindescription
- The description of the domainparent_domain
- The oid of the domain's parent domainparent_container
- The oid of the domain's container
ObjectIdentifier
of the new domain
Exception
private ObjectIdentifier createCabinet(String name, String description, ObjectIdentifier parent_domain, ObjectIdentifier parent_container) throws Exception
name
- The name of the cabinetdescription
- The description of the cabinetparent_domain
- The oid of the administrative domain for the cabinetparent_container
- 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 |