|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.container.MigrateGroupDomainsR6ToR7
Assigns all groups in the system domain to the unaffiliated domain, with the exception of the site administrators group
This migrator assumes that container-specific groups are being migrated by some other means.
Field Summary | |
private DirectiveServices |
ds
|
private ObjectIdentifier |
exchange
|
private static int |
PAGE_SIZE
Number of users per page. |
private ObjectIdentifier |
siteAdministratorsGroup
|
private ObjectIdentifier |
systemDomain
|
private ObjectIdentifier |
unaffiliatedDomain
|
private static boolean |
VERBOSE
|
Constructor Summary | |
MigrateGroupDomainsR6ToR7()
|
Method Summary | |
private ObjectIdentifier |
getDomain(String name,
long parent_id,
long container_id)
Get the AdministrativeDomain named name
that is in domain parent_id and container
container_id . |
private ObjectIdentifier |
getRootDomain()
Finds the oid of the root domain |
private void |
initContainers()
Finds the exchange container |
private void |
initDomains()
Finds the special domains. |
private void |
initSiteAdministratorsGroup()
Finds the site administrators group |
private void |
migrateGroupDomains()
Assigns all groups in the system domain to the unaffiliated domain, with the exception of the site administrators group |
boolean |
runMigration(DirectiveServices directive_services)
Implemented from the JavaMigrator interface |
private static 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 boolean VERBOSE
private static final int PAGE_SIZE
private DirectiveServices ds
private ObjectIdentifier exchange
private ObjectIdentifier systemDomain
private ObjectIdentifier unaffiliatedDomain
private ObjectIdentifier siteAdministratorsGroup
Constructor Detail |
public MigrateGroupDomainsR6ToR7()
Method Detail |
public boolean runMigration(DirectiveServices directive_services) throws Throwable
runMigration
in interface JavaMigrator
directive_services
- Contains migration resources
true
Throwable
- declared so that migrators can let exceptions contibuting to failure pass out of the method. The migrator runner will handle these by logging them.private void migrateGroupDomains() throws Exception
Exception
private void initContainers() throws Exception
Exception
private void initDomains() throws Exception
Exception
private void initSiteAdministratorsGroup() 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 getDomain(String name, long parent_id, long container_id) throws Exception
AdministrativeDomain
named name
that is in domain parent_id
and container
container_id
.
name
- The name of the domainparent_id
- The oid of the domain's parent domaincontainer_id
- The oid of the domain's container
ObjectIdentifier
of the domain
WTException
- If domain couldn't be found, or more than one domain
was found
Exception
private void safeClose(Statement stmt)
stmt
- The Statement
to closeprivate static 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 |