com.atlassian.crowd.integration.directory.connector.mapper.fetcher
Class DNFetcher

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.connector.mapper.fetcher.DNFetcher
All Implemented Interfaces:
MemberFetcher

public class DNFetcher
extends java.lang.Object
implements MemberFetcher

Fetches the DNs (Distinguished Names) of the direct members of a directory container. This includes both container and principal members and everything else in between! We can't do any filtering at this stage because we don't have the attributes of the members at hand (that will involve another lookup). Note: this only works for RFC-4519 members.


Field Summary
protected  boolean isRfc4519
           
protected  LDAPPropertiesMapper ldapPropertiesMapper
           
 
Constructor Summary
DNFetcher(LDAPPropertiesMapper ldapPropertiesMapper, boolean isRfc4519)
           
 
Method Summary
 void addMembers(org.springframework.ldap.core.DirContextAdapter parentContainer, DirectoryContainer container)
          Given a DirContextAdapter representing an LDAP object, fetches all the members and sets them as the members of container.
 java.util.Collection<java.lang.String> fetchDirectMemberDNs(org.springframework.ldap.core.DirContextAdapter container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ldapPropertiesMapper

protected final LDAPPropertiesMapper ldapPropertiesMapper

isRfc4519

protected final boolean isRfc4519
Constructor Detail

DNFetcher

public DNFetcher(LDAPPropertiesMapper ldapPropertiesMapper,
                 boolean isRfc4519)
Method Detail

addMembers

public void addMembers(org.springframework.ldap.core.DirContextAdapter parentContainer,
                       DirectoryContainer container)
Description copied from interface: MemberFetcher
Given a DirContextAdapter representing an LDAP object, fetches all the members and sets them as the members of container.

Specified by:
addMembers in interface MemberFetcher

fetchDirectMemberDNs

public java.util.Collection<java.lang.String> fetchDirectMemberDNs(org.springframework.ldap.core.DirContextAdapter container)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.