|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.james.user.ldap.ReadOnlyLDAPGroupRestriction
public class ReadOnlyLDAPGroupRestriction
Encapsulates the information required to restrict users to LDAP groups or roles.
Instances of this type are populated from the contents of the <users-store>
configuration child-element <restriction>.
ReadOnlyUsersLDAPRepository,
ReadOnlyLDAPUser| Constructor Summary | |
|---|---|
ReadOnlyLDAPGroupRestriction(org.apache.commons.configuration.HierarchicalConfiguration configuration)
Initialises an instance from the contents of a <restriction> |
|
| Method Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getGroupMembershipLists(SimpleLDAPConnection connection)
Returns the distinguished-names (DNs) of all the members of the groups specified in the restriction list. |
protected boolean |
isActivated()
Indicates if group/role-based restriction is enabled for the the user-store, based on the information encapsulated in the instance. |
java.lang.String |
toString()
Converts an instance of this type to a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReadOnlyLDAPGroupRestriction(org.apache.commons.configuration.HierarchicalConfiguration configuration)
Initialises an instance from the contents of
a <restriction> configuration XML
element.
configuration - The avalon configuration instance that
encapsulates the contents of the <restriction>
XML element.
- Throws:
ConfigurationException - If an error occurs extracting
values from the configuration element.| Method Detail |
|---|
protected boolean isActivated()
Indicates if group/role-based restriction is enabled for the the user-store, based on the information encapsulated in the instance.
True If there list of group/role distinguished
names is not empty, and false otherwise.public java.lang.String toString()
Converts an instance of this type to a string.
toString in class java.lang.Object
protected java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getGroupMembershipLists(SimpleLDAPConnection connection)
throws javax.naming.NamingException
Returns the distinguished-names (DNs) of all the members of the groups
specified in the restriction list. The information is organised as a list
of "<groupDN>=<
[userDN1,userDN2,...,userDNn]>". Put differently, each
groupDN is associated to a list of userDNs.
connection - The connection to the LDAP directory server.
javax.naming.NamingException - Propagated from underlying LDAP communication layer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||