|
||||||||||
| 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(CoreSession session)
Creates a static group cache. |
|
| Method Summary | |
|---|---|
java.util.Set<org.apache.directory.shared.ldap.name.DN> |
getGroups(java.lang.String member)
Gets the set of groups a user is a member of. |
void |
groupAdded(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
Adds a groups members to the cache. |
void |
groupDeleted(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
Deletes a group's members from the cache. |
void |
groupModified(org.apache.directory.shared.ldap.name.DN name,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods,
org.apache.directory.shared.ldap.entry.ServerEntry entry,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Modifies the cache to reflect changes via modify operations to the group entries. |
void |
groupModified(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp,
org.apache.directory.shared.ldap.entry.ServerEntry mods)
Modifies the cache to reflect changes via modify operations to the group entries. |
boolean |
groupRenamed(org.apache.directory.shared.ldap.name.DN oldName,
org.apache.directory.shared.ldap.name.DN newName)
|
boolean |
isPrincipalAnAdministrator(org.apache.directory.shared.ldap.name.DN 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(CoreSession session)
throws java.lang.Exception
directoryService - the directory service core
org.apache.directory.shared.ldap.exception.LdapException - if there are failures on initialization
java.lang.Exception| Method Detail |
|---|
public void groupAdded(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
throws org.apache.directory.shared.ldap.exception.LdapException
name - the user provided name for the group entryentry - the group entry's attributes
org.apache.directory.shared.ldap.exception.LdapException - if there are problems accessing the attr values
public void groupDeleted(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
throws org.apache.directory.shared.ldap.exception.LdapException
name - the normalized DN of the group entryentry - the attributes of entry being deleted
org.apache.directory.shared.ldap.exception.LdapException
public void groupModified(org.apache.directory.shared.ldap.name.DN name,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods,
org.apache.directory.shared.ldap.entry.ServerEntry entry,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
throws org.apache.directory.shared.ldap.exception.LdapException
name - the normalized name of the group entry modifiedmods - the modification operations being performedentry - the group entry being modified
org.apache.directory.shared.ldap.exception.LdapException - if there are problems accessing attribute values
public void groupModified(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp,
org.apache.directory.shared.ldap.entry.ServerEntry mods)
throws org.apache.directory.shared.ldap.exception.LdapException
name - the normalized name of the group entry modifiedmodOp - the modify operation being performedmods - the modifications being performed
org.apache.directory.shared.ldap.exception.LdapException - if there are problems accessing attribute valuespublic final boolean isPrincipalAnAdministrator(org.apache.directory.shared.ldap.name.DN principalDn)
principalDn - the normalized DN of the user to check if they are an admin
public java.util.Set<org.apache.directory.shared.ldap.name.DN> getGroups(java.lang.String member)
throws org.apache.directory.shared.ldap.exception.LdapException
member - the member (user) to get the groups for
org.apache.directory.shared.ldap.exception.LdapException - if there are problems accessing attribute values
public boolean groupRenamed(org.apache.directory.shared.ldap.name.DN oldName,
org.apache.directory.shared.ldap.name.DN newName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||