com.liferay.portal.kernel.ldap
Class LDAPUtil

java.lang.Object
  extended by com.liferay.portal.kernel.ldap.LDAPUtil

public class LDAPUtil
extends java.lang.Object

Author:
Toma Bedolla, Michael Young, Brian Wing Shun Chan

Constructor Summary
LDAPUtil()
           
 
Method Summary
static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes, java.util.Properties properties, java.lang.String key)
           
static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes, java.util.Properties properties, java.lang.String key, java.lang.Object defaultValue)
           
static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes, java.lang.String id)
           
static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes, java.lang.String id, java.lang.Object defaultValue)
           
static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes, java.util.Properties properties, java.lang.String key)
           
static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes, java.util.Properties properties, java.lang.String key, java.lang.String defaultValue)
           
static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes, java.lang.String id)
           
static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes, java.lang.String id, java.lang.String defaultValue)
           
static java.lang.String[] getAttributeStringArray(javax.naming.directory.Attributes attributes, java.util.Properties properties, java.lang.String key)
           
static java.lang.String[] getAttributeStringArray(javax.naming.directory.Attributes attributes, java.lang.String id)
           
static java.lang.String getFullProviderURL(java.lang.String baseURL, java.lang.String baseDN)
           
static java.util.Date parseDate(java.lang.String date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPUtil

public LDAPUtil()
Method Detail

getAttributeObject

public static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes,
                                                  java.util.Properties properties,
                                                  java.lang.String key)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeObject

public static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes,
                                                  java.util.Properties properties,
                                                  java.lang.String key,
                                                  java.lang.Object defaultValue)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeObject

public static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes,
                                                  java.lang.String id)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeObject

public static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes,
                                                  java.lang.String id,
                                                  java.lang.Object defaultValue)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeString

public static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes,
                                                  java.util.Properties properties,
                                                  java.lang.String key)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeString

public static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes,
                                                  java.util.Properties properties,
                                                  java.lang.String key,
                                                  java.lang.String defaultValue)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeString

public static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes,
                                                  java.lang.String id)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeString

public static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes,
                                                  java.lang.String id,
                                                  java.lang.String defaultValue)
                                           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeStringArray

public static java.lang.String[] getAttributeStringArray(javax.naming.directory.Attributes attributes,
                                                         java.util.Properties properties,
                                                         java.lang.String key)
                                                  throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeStringArray

public static java.lang.String[] getAttributeStringArray(javax.naming.directory.Attributes attributes,
                                                         java.lang.String id)
                                                  throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getFullProviderURL

public static java.lang.String getFullProviderURL(java.lang.String baseURL,
                                                  java.lang.String baseDN)

parseDate

public static java.util.Date parseDate(java.lang.String date)
                                throws java.lang.Exception
Throws:
java.lang.Exception