|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.admin.CompareSystemAndUserDomainRulesR6ToR7
This MethodServer migrator reports on the differences between
WTPrincipal
-related access and notification rules in the global system
domain and those in the global user domain. This report is provided because
principals themselves are being moved from the system domain to the user domain or
one of its descendent domains during R7 migration. The report is intended to aid
administrators in restoring their previous access and notification configuration.
Access Policy Report
WTPrincipal
, WTGroup
, WTUser
,
Item
, and WTObject
Notification Policy Migration
WTUser
and WTObject
.
WTObject
are merged
with those written against WTUser
.
WTPrincipal
subclasses aren't indexed.
System.out
Nested Class Summary | |
private static class |
CompareSystemAndUserDomainRulesR6ToR7.PolicyInfo
A utility class that maintains all the grant and deny permissions for a given WTPrincipalReference and AccessSelector |
static class |
CompareSystemAndUserDomainRulesR6ToR7.Server
|
Field Summary | |
private static String[] |
ACCESS_TYPES
The types of access rules to query for in the system domain |
private static String[] |
MERGE_TYPES
The parent types of WTPrincipal to merge rules down for. |
private static String[] |
NOTIFICATION_TYPES
The types of notification rules to query for in the system domain |
private static String[] |
PRINCIPAL_TYPES
The principal types to copy rules for |
private static String |
REPORT_NAME
The name of the report file |
private static AdminDomainRef |
systemDomainRef
|
private static AdminDomainRef |
userDomainRef
|
private static int[] |
ZERO
|
Constructor Summary | |
CompareSystemAndUserDomainRulesR6ToR7()
|
Method Summary | |
private static void |
compareAccessRules(Writer log)
Compare access control rules written against WTPrincipal s in the system domain
to those in the user domain. |
private static void |
compareNotificationRules(Writer log)
Compare notification rules written for WTPrincpal s in the system domain
to those in the user domain. |
private static Map |
getRuleInfo(AdminDomainRef domain_ref)
Collect data about principal-related rules in the given domain. |
static void |
main(String[] args)
|
private static void |
mergeRules(Map rule_info,
Writer log)
Merge rules in the given Map that are written against superclasses of
WTPrincipal into the rules written against WTPrincipal itself. |
static boolean |
runMigration()
Run the migration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String REPORT_NAME
private static final String[] PRINCIPAL_TYPES
private static final String[] MERGE_TYPES
private static final String[] ACCESS_TYPES
private static final String[] NOTIFICATION_TYPES
private static final int[] ZERO
private static AdminDomainRef systemDomainRef
private static AdminDomainRef userDomainRef
Constructor Detail |
public CompareSystemAndUserDomainRulesR6ToR7()
Method Detail |
public static boolean runMigration() throws Exception
true
if the migration succeeds
Exception
private static void compareAccessRules(Writer log) throws Exception
WTPrincipal
s in the system domain
to those in the user domain.
Exception
private static void mergeRules(Map rule_info, Writer log) throws Exception
Map
that are written against superclasses of
WTPrincipal
into the rules written against WTPrincipal
itself.
rule_info
- A rule info map generated by getRuleInfo()
Exception
private static Map getRuleInfo(AdminDomainRef domain_ref) throws Exception
domain_ref
- The domain to search for rules in
Map
with String
type ids for keys, where each value
value is a Map
of WTPrincipalReference
s to
PolicyInfo
s.
Exception
private static void compareNotificationRules(Writer log) throws Exception
WTPrincpal
s in the system domain
to those in the user domain.
Exception
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |