Exemplo n.º 1
0
 /*
  * Load the security cache for the given user's roles and permissions.
  *
  * @param JetspeedUser the user to cache all role and permission information for.
  */
 public void load(String username) throws JetspeedSecurityException {
   CachedAcl acl = new CachedAcl(username);
   acl.setRoles(JetspeedSecurity.getRoles(username));
   acls.put(username, acl);
   if (perms.size() == 0) {
     loadRolePermissions();
   }
 }