public class PortalLDAPUtil
extends java.lang.Object
Constructor and Description |
---|
PortalLDAPUtil() |
Modifier and Type | Method and Description |
---|---|
static javax.naming.ldap.LdapContext |
getContext(long ldapServerId,
long companyId) |
static javax.naming.ldap.LdapContext |
getContext(long companyId,
java.lang.String providerURL,
java.lang.String principal,
java.lang.String credentials) |
static javax.naming.Binding |
getGroup(long ldapServerId,
long companyId,
java.lang.String groupName) |
static javax.naming.directory.Attributes |
getGroupAttributes(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.lang.String fullDistinguishedName) |
static javax.naming.directory.Attributes |
getGroupAttributes(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.lang.String fullDistinguishedName,
boolean includeReferenceAttributes) |
static byte[] |
getGroups(long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.lang.String baseDN,
java.lang.String groupFilter,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
static byte[] |
getGroups(long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.lang.String baseDN,
java.lang.String groupFilter,
java.lang.String[] attributeIds,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
static byte[] |
getGroups(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
static byte[] |
getGroups(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.lang.String[] attributeIds,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
static java.lang.String |
getGroupsDN(long ldapServerId,
long companyId) |
protected static PortalLDAP |
getInstance() |
static long |
getLdapServerId(long companyId,
java.lang.String screenName,
java.lang.String emailAddress) |
static javax.naming.directory.Attribute |
getMultivaluedAttribute(long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.lang.String baseDN,
java.lang.String filter,
javax.naming.directory.Attribute attribute) |
static java.lang.String |
getNameInNamespace(long ldapServerId,
long companyId,
javax.naming.Binding binding) |
static javax.naming.Binding |
getUser(long ldapServerId,
long companyId,
java.lang.String screenName,
java.lang.String emailAddress) |
static javax.naming.Binding |
getUser(long ldapServerId,
long companyId,
java.lang.String screenName,
java.lang.String emailAddress,
boolean checkOriginalEmail) |
static javax.naming.directory.Attributes |
getUserAttributes(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.lang.String fullDistinguishedName) |
static byte[] |
getUsers(long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.lang.String baseDN,
java.lang.String userFilter,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
static byte[] |
getUsers(long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.lang.String baseDN,
java.lang.String userFilter,
java.lang.String[] attributeIds,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
static byte[] |
getUsers(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
static byte[] |
getUsers(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.lang.String[] attributeIds,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
static java.lang.String |
getUsersDN(long ldapServerId,
long companyId) |
static boolean |
hasUser(long ldapServerId,
long companyId,
java.lang.String screenName,
java.lang.String emailAddress) |
static boolean |
isGroupMember(long ldapServerId,
long companyId,
java.lang.String groupDN,
java.lang.String userDN) |
static boolean |
isUserGroupMember(long ldapServerId,
long companyId,
java.lang.String groupDN,
java.lang.String userDN) |
static byte[] |
searchLDAP(long companyId,
javax.naming.ldap.LdapContext ldapContext,
byte[] cookie,
int maxResults,
java.lang.String baseDN,
java.lang.String filter,
java.lang.String[] attributeIds,
java.util.List<javax.naming.directory.SearchResult> searchResults) |
protected void |
setPortalLDAP(PortalLDAP portalLDAP) |
public static javax.naming.ldap.LdapContext getContext(long ldapServerId, long companyId) throws java.lang.Exception
java.lang.Exception
public static javax.naming.ldap.LdapContext getContext(long companyId, java.lang.String providerURL, java.lang.String principal, java.lang.String credentials) throws java.lang.Exception
java.lang.Exception
public static javax.naming.Binding getGroup(long ldapServerId, long companyId, java.lang.String groupName) throws java.lang.Exception
java.lang.Exception
public static javax.naming.directory.Attributes getGroupAttributes(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, java.lang.String fullDistinguishedName) throws java.lang.Exception
java.lang.Exception
public static javax.naming.directory.Attributes getGroupAttributes(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, java.lang.String fullDistinguishedName, boolean includeReferenceAttributes) throws java.lang.Exception
java.lang.Exception
public static byte[] getGroups(long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.lang.String baseDN, java.lang.String groupFilter, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
public static byte[] getGroups(long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.lang.String baseDN, java.lang.String groupFilter, java.lang.String[] attributeIds, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
public static byte[] getGroups(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
public static byte[] getGroups(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.lang.String[] attributeIds, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getGroupsDN(long ldapServerId, long companyId) throws java.lang.Exception
java.lang.Exception
public static long getLdapServerId(long companyId, java.lang.String screenName, java.lang.String emailAddress) throws java.lang.Exception
java.lang.Exception
public static javax.naming.directory.Attribute getMultivaluedAttribute(long companyId, javax.naming.ldap.LdapContext ldapContext, java.lang.String baseDN, java.lang.String filter, javax.naming.directory.Attribute attribute) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getNameInNamespace(long ldapServerId, long companyId, javax.naming.Binding binding) throws java.lang.Exception
java.lang.Exception
public static javax.naming.Binding getUser(long ldapServerId, long companyId, java.lang.String screenName, java.lang.String emailAddress) throws java.lang.Exception
java.lang.Exception
public static javax.naming.Binding getUser(long ldapServerId, long companyId, java.lang.String screenName, java.lang.String emailAddress, boolean checkOriginalEmail) throws java.lang.Exception
java.lang.Exception
public static javax.naming.directory.Attributes getUserAttributes(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, java.lang.String fullDistinguishedName) throws java.lang.Exception
java.lang.Exception
public static byte[] getUsers(long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.lang.String baseDN, java.lang.String userFilter, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
public static byte[] getUsers(long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.lang.String baseDN, java.lang.String userFilter, java.lang.String[] attributeIds, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
public static byte[] getUsers(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
public static byte[] getUsers(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.lang.String[] attributeIds, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getUsersDN(long ldapServerId, long companyId) throws java.lang.Exception
java.lang.Exception
public static boolean hasUser(long ldapServerId, long companyId, java.lang.String screenName, java.lang.String emailAddress) throws java.lang.Exception
java.lang.Exception
public static boolean isGroupMember(long ldapServerId, long companyId, java.lang.String groupDN, java.lang.String userDN) throws java.lang.Exception
java.lang.Exception
public static boolean isUserGroupMember(long ldapServerId, long companyId, java.lang.String groupDN, java.lang.String userDN) throws java.lang.Exception
java.lang.Exception
public static byte[] searchLDAP(long companyId, javax.naming.ldap.LdapContext ldapContext, byte[] cookie, int maxResults, java.lang.String baseDN, java.lang.String filter, java.lang.String[] attributeIds, java.util.List<javax.naming.directory.SearchResult> searchResults) throws java.lang.Exception
java.lang.Exception
protected static PortalLDAP getInstance()
protected void setPortalLDAP(PortalLDAP portalLDAP)