|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.directory.connector.mapper.fetcher.SubGroupFetcher
public class SubGroupFetcher
Obtains the direct members of a container. Does not recurse through subgroups - will instead return a mix of users and groups/roles.
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
SubGroupFetcher(org.springframework.ldap.core.LdapTemplate ldapTemplate,
LDAPPropertiesMapper ldapPropertiesMapper,
MemberAttributeParser memberParser,
ContainerContextMapper containerMapper)
|
Method Summary | |
---|---|
void |
addMembers(org.springframework.ldap.core.DirContextAdapter parentContainer,
DirectoryContainer container)
Obtains a list of principal and container members and adds them to the specified DirectoryContainer. |
protected RemotePrincipal |
getPrincipal(org.springframework.ldap.core.DirContextAdapter member)
Turns a suitable DirContextAdapter into a RemotePrincipal object. |
protected boolean |
isContainer(org.springframework.ldap.core.DirContextAdapter member)
Returns true if the object represents a container that contains users (eg group, role) |
protected boolean |
isOfObjectClass(org.springframework.ldap.core.DirContextAdapter member,
java.lang.String objectClassToMatch)
Returns true if member is of the LDAP objectclass objectClassToMatch . |
protected boolean |
isPrincipal(org.springframework.ldap.core.DirContextAdapter member)
Returns true if the object represents a user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger logger
Constructor Detail |
---|
public SubGroupFetcher(org.springframework.ldap.core.LdapTemplate ldapTemplate, LDAPPropertiesMapper ldapPropertiesMapper, MemberAttributeParser memberParser, ContainerContextMapper containerMapper)
Method Detail |
---|
public void addMembers(org.springframework.ldap.core.DirContextAdapter parentContainer, DirectoryContainer container)
addMembers
in interface MemberFetcher
parentContainer
- protected boolean isPrincipal(org.springframework.ldap.core.DirContextAdapter member)
member
-
protected boolean isContainer(org.springframework.ldap.core.DirContextAdapter member)
member
-
protected boolean isOfObjectClass(org.springframework.ldap.core.DirContextAdapter member, java.lang.String objectClassToMatch)
member
is of the LDAP objectclass objectClassToMatch
. Will match on
superclasses as well, so matching on top
would/should match every object.
member
- objectClassToMatch
-
protected RemotePrincipal getPrincipal(org.springframework.ldap.core.DirContextAdapter member)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |