public class LDAPUtil
extends java.lang.Object
Constructor and Description |
---|
LDAPUtil() |
Modifier and Type | Method and Description |
---|---|
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 boolean |
isValidFilter(java.lang.String filter) |
static java.util.Date |
parseDate(java.lang.String date) |
protected void |
setLDAPFilterValidator(LDAPFilterValidator ldapFilterValidator) |
static void |
validateFilter(java.lang.String filter) |
static void |
validateFilter(java.lang.String filter,
java.lang.String filterPropertyName) |
public static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes, java.util.Properties properties, java.lang.String key) throws javax.naming.NamingException
javax.naming.NamingException
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
javax.naming.NamingException
public static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes, java.lang.String id) throws javax.naming.NamingException
javax.naming.NamingException
public static java.lang.Object getAttributeObject(javax.naming.directory.Attributes attributes, java.lang.String id, java.lang.Object defaultValue) throws javax.naming.NamingException
javax.naming.NamingException
public static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes, java.util.Properties properties, java.lang.String key) throws javax.naming.NamingException
javax.naming.NamingException
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
javax.naming.NamingException
public static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes, java.lang.String id) throws javax.naming.NamingException
javax.naming.NamingException
public static java.lang.String getAttributeString(javax.naming.directory.Attributes attributes, java.lang.String id, java.lang.String defaultValue) throws javax.naming.NamingException
javax.naming.NamingException
public static java.lang.String[] getAttributeStringArray(javax.naming.directory.Attributes attributes, java.util.Properties properties, java.lang.String key) throws javax.naming.NamingException
javax.naming.NamingException
public static java.lang.String[] getAttributeStringArray(javax.naming.directory.Attributes attributes, java.lang.String id) throws javax.naming.NamingException
javax.naming.NamingException
public static java.lang.String getFullProviderURL(java.lang.String baseURL, java.lang.String baseDN)
public static boolean isValidFilter(java.lang.String filter)
public static java.util.Date parseDate(java.lang.String date) throws java.lang.Exception
java.lang.Exception
public static void validateFilter(java.lang.String filter) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void validateFilter(java.lang.String filter, java.lang.String filterPropertyName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void setLDAPFilterValidator(LDAPFilterValidator ldapFilterValidator)