Liferay 6.2-ce-ga5

com.liferay.portal.kernel.ldap
Class LDAPUtil

java.lang.Object
  extended by com.liferay.portal.kernel.ldap.LDAPUtil
Direct Known Subclasses:
LDAPUtil

public class LDAPUtil
extends Object


Constructor Summary
LDAPUtil()
           
 
Method Summary
static Object getAttributeObject(Attributes attributes, Properties properties, String key)
           
static Object getAttributeObject(Attributes attributes, Properties properties, String key, Object defaultValue)
           
static Object getAttributeObject(Attributes attributes, String id)
           
static Object getAttributeObject(Attributes attributes, String id, Object defaultValue)
           
static String getAttributeString(Attributes attributes, Properties properties, String key)
           
static String getAttributeString(Attributes attributes, Properties properties, String key, String defaultValue)
           
static String getAttributeString(Attributes attributes, String id)
           
static String getAttributeString(Attributes attributes, String id, String defaultValue)
           
static String[] getAttributeStringArray(Attributes attributes, Properties properties, String key)
           
static String[] getAttributeStringArray(Attributes attributes, String id)
           
static String getFullProviderURL(String baseURL, String baseDN)
           
static boolean isValidFilter(String filter)
           
static Date parseDate(String date)
           
static void validateFilter(String filter)
           
 
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 Object getAttributeObject(Attributes attributes,
                                        Properties properties,
                                        String key)
                                 throws NamingException
Throws:
NamingException

getAttributeObject

public static Object getAttributeObject(Attributes attributes,
                                        Properties properties,
                                        String key,
                                        Object defaultValue)
                                 throws NamingException
Throws:
NamingException

getAttributeObject

public static Object getAttributeObject(Attributes attributes,
                                        String id)
                                 throws NamingException
Throws:
NamingException

getAttributeObject

public static Object getAttributeObject(Attributes attributes,
                                        String id,
                                        Object defaultValue)
                                 throws NamingException
Throws:
NamingException

getAttributeString

public static String getAttributeString(Attributes attributes,
                                        Properties properties,
                                        String key)
                                 throws NamingException
Throws:
NamingException

getAttributeString

public static String getAttributeString(Attributes attributes,
                                        Properties properties,
                                        String key,
                                        String defaultValue)
                                 throws NamingException
Throws:
NamingException

getAttributeString

public static String getAttributeString(Attributes attributes,
                                        String id)
                                 throws NamingException
Throws:
NamingException

getAttributeString

public static String getAttributeString(Attributes attributes,
                                        String id,
                                        String defaultValue)
                                 throws NamingException
Throws:
NamingException

getAttributeStringArray

public static String[] getAttributeStringArray(Attributes attributes,
                                               Properties properties,
                                               String key)
                                        throws NamingException
Throws:
NamingException

getAttributeStringArray

public static String[] getAttributeStringArray(Attributes attributes,
                                               String id)
                                        throws NamingException
Throws:
NamingException

getFullProviderURL

public static String getFullProviderURL(String baseURL,
                                        String baseDN)

isValidFilter

public static boolean isValidFilter(String filter)

parseDate

public static Date parseDate(String date)
                      throws Exception
Throws:
Exception

validateFilter

public static void validateFilter(String filter)
                           throws PortalException
Throws:
PortalException

Liferay 6.2-ce-ga5