|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.server.core.authz.GroupCache
public class GroupCache
A cache for tracking static group membership.
| Field Summary | |
|---|---|
(package private) LdapDN |
administratorsGroupDn
the normalized dn of the administrators group |
| Constructor Summary | |
|---|---|
GroupCache(DirectoryServiceConfiguration factoryCfg)
Creates a static group cache. |
|
| Method Summary | |
|---|---|
java.util.Set |
getGroups(java.lang.String member)
Gets the set of groups a user is a member of. |
void |
groupAdded(java.lang.String upName,
javax.naming.Name normName,
javax.naming.directory.Attributes entry)
Adds a groups members to the cache. |
void |
groupDeleted(javax.naming.Name name,
javax.naming.directory.Attributes entry)
Deletes a group's members from the cache. |
void |
groupModified(javax.naming.Name name,
int modOp,
javax.naming.directory.Attributes mods,
javax.naming.directory.Attributes entry)
Modifies the cache to reflect changes via modify operations to the group entries. |
void |
groupModified(javax.naming.Name name,
javax.naming.directory.ModificationItem[] mods,
javax.naming.directory.Attributes entry)
Modifies the cache to reflect changes via modify operations to the group entries. |
boolean |
groupRenamed(javax.naming.Name oldName,
javax.naming.Name newName)
|
boolean |
isPrincipalAnAdministrator(LdapDN principalDn)
An optimization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
LdapDN administratorsGroupDn
| Constructor Detail |
|---|
public GroupCache(DirectoryServiceConfiguration factoryCfg)
throws javax.naming.NamingException
factoryCfg - the context factory configuration for the server
javax.naming.NamingException| Method Detail |
|---|
public void groupAdded(java.lang.String upName,
javax.naming.Name normName,
javax.naming.directory.Attributes entry)
throws javax.naming.NamingException
upName - the user provided name for the group entrynormName - the normalized name for the group entryentry - the group entry's attributes
javax.naming.NamingException - if there are problems accessing the attr values
public void groupDeleted(javax.naming.Name name,
javax.naming.directory.Attributes entry)
name - the normalized DN of the group entryentry - the attributes of entry being deleted
public void groupModified(javax.naming.Name name,
javax.naming.directory.ModificationItem[] mods,
javax.naming.directory.Attributes entry)
throws javax.naming.NamingException
name - the normalized name of the group entry modifiedmods - the modification operations being performedentry - the group entry being modified
javax.naming.NamingException - if there are problems accessing attribute values
public void groupModified(javax.naming.Name name,
int modOp,
javax.naming.directory.Attributes mods,
javax.naming.directory.Attributes entry)
throws javax.naming.NamingException
name - the normalized name of the group entry modifiedmodOp - the modify operation being performedmods - the modifications being performedentry - the entry being modified
javax.naming.NamingException - if there are problems accessing attribute valuespublic final boolean isPrincipalAnAdministrator(LdapDN principalDn)
principalDn - the normalized DN of the user to check if they are an admin
public java.util.Set getGroups(java.lang.String member)
throws javax.naming.NamingException
member - the member (user) to get the groups for
javax.naming.NamingException - if there are problems accessing attribute values
public boolean groupRenamed(javax.naming.Name oldName,
javax.naming.Name newName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||