|
||||||||||
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.
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,
org.apache.directory.shared.ldap.message.ModificationItemImpl[] 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(org.apache.directory.shared.ldap.name.LdapDN principalDn)
An optimization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 valuespublic void groupDeleted(javax.naming.Name name, javax.naming.directory.Attributes entry)
name
- the normalized DN of the group entryentry
- the attributes of entry being deletedpublic void groupModified(javax.naming.Name name, org.apache.directory.shared.ldap.message.ModificationItemImpl[] 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 valuespublic 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(org.apache.directory.shared.ldap.name.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 valuespublic 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 |