Authorization auth = systemRoles.getAuthorization((User) userAdmin.getRole(role));
sysRoles.addAll(Arrays.asList(auth.getRoles()));
}
+ addAbstractSystemRoles(rawAuthorization, sysRoles);
Authorization authorization = new AggregatingAuthorization(rawAuthorization.getName(),
rawAuthorization.toString(), sysRoles, rawAuthorization.getRoles());
return authorization;
}
+ /**
+ * Enrich with application-specific roles which are strictly programmatic, such
+ * as anonymous/user semantics.
+ */
+ protected void addAbstractSystemRoles(Authorization rawAuthorization, Set<String> sysRoles) {
+
+ }
+
//
// USER ADMIN AGGREGATOR
//
}
/**
- * Called before each user directory is destroyed, so that additional
- * actions can be performed.
+ * Called before each user directory is destroyed, so that additional actions
+ * can be performed.
*/
protected void preDestroy(AbstractUserDirectory userDirectory) {
}