com.atlassian.crowd.integration.directory.connector.spring
Class GenericAttributesMapper

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.connector.spring.GenericAttributesMapper
Direct Known Subclasses:
RemoteGroupAttributesMapper, RemotePrincipalAttributesMapper, RemoteRoleAttributesMapper

public abstract class GenericAttributesMapper
extends Object


Constructor Summary
protected GenericAttributesMapper()
           
  GenericAttributesMapper(LdapTemplate ldapTemplate, LDAPPropertiesMapper ldapPropertiesMapper)
           
 
Method Summary
protected  List populateAttribute(Attribute ldapAttribute)
          Translates LDAP attributes into a list of Strings.
protected  Map populateAttributes(Attributes ldapAttributes)
          Translates LDAP attributes into a map of values.
protected  Set processMembers(Attribute memberDNs)
          Processes the members of an LDAP container object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericAttributesMapper

protected GenericAttributesMapper()

GenericAttributesMapper

public GenericAttributesMapper(LdapTemplate ldapTemplate,
                               LDAPPropertiesMapper ldapPropertiesMapper)
Method Detail

populateAttributes

protected Map populateAttributes(Attributes ldapAttributes)
                          throws NamingException
Translates LDAP attributes into a map of values.

Parameters:
ldapAttributes - LDAP attributes.
Returns:
values.
Throws:
NamingException - An LDAP name exception occured.

populateAttribute

protected List populateAttribute(Attribute ldapAttribute)
                          throws NamingException
Translates LDAP attributes into a list of Strings. Any attributes with invalid XML characters are filtered out. [CWD-109]

Parameters:
ldapAttribute - LDAP attribute.
Returns:
List of Strings.
Throws:
NamingException - An LDAP name exception occured.

processMembers

protected Set processMembers(Attribute memberDNs)
                      throws NamingException
Processes the members of an LDAP container object.

Parameters:
memberDNs - Container object member DNs.
Returns:
The populates principals.
Throws:
NamingException - An LDAP name exception occured.


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.