com.atlassian.crowd.directory.ldap.util
Class DirectoryAttributeRetriever

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.util.DirectoryAttributeRetriever

public class DirectoryAttributeRetriever
extends Object


Constructor Summary
DirectoryAttributeRetriever()
           
 
Method Summary
static String getValueFromAttributes(String directoryAttributeName, Attributes directoryAttributes)
          Retrieves the first value from the collection of attributes for the supplied name directoryAttributeName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryAttributeRetriever

public DirectoryAttributeRetriever()
Method Detail

getValueFromAttributes

public static String getValueFromAttributes(String directoryAttributeName,
                                            Attributes directoryAttributes)
Retrieves the first value from the collection of attributes for the supplied name directoryAttributeName. If no value exists or if the value is not safe for XML marshalling, null is returned.

Parameters:
directoryAttributeName - attribute name key.
directoryAttributes - collection of attributes to examine.
Returns:
first attribute value.


Copyright © 2012 Atlassian. All Rights Reserved.