Liferay 7.0-ce-b4

com.liferay.portal.security.ldap
Interface PortalLDAP


public interface PortalLDAP


Method Summary
 LdapContext getContext(long ldapServerId, long companyId)
           
 LdapContext getContext(long companyId, String providerURL, String principal, String credentials)
           
 Binding getGroup(long ldapServerId, long companyId, String groupName)
           
 Attributes getGroupAttributes(long ldapServerId, long companyId, LdapContext ldapContext, String fullDistinguishedName)
           
 Attributes getGroupAttributes(long ldapServerId, long companyId, LdapContext ldapContext, String fullDistinguishedName, boolean includeReferenceAttributes)
           
 byte[] getGroups(long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, String baseDN, String groupFilter, List<SearchResult> searchResults)
           
 byte[] getGroups(long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, String baseDN, String groupFilter, String[] attributeIds, List<SearchResult> searchResults)
           
 byte[] getGroups(long ldapServerId, long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, List<SearchResult> searchResults)
           
 byte[] getGroups(long ldapServerId, long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, String[] attributeIds, List<SearchResult> searchResults)
           
 String getGroupsDN(long ldapServerId, long companyId)
           
 long getLdapServerId(long companyId, String screenName, String emailAddress)
           
 Attribute getMultivaluedAttribute(long companyId, LdapContext ldapContext, String baseDN, String filter, Attribute attribute)
           
 String getNameInNamespace(long ldapServerId, long companyId, Binding binding)
           
 Binding getUser(long ldapServerId, long companyId, String screenName, String emailAddress)
           
 Binding getUser(long ldapServerId, long companyId, String screenName, String emailAddress, boolean checkOriginalEmail)
           
 Attributes getUserAttributes(long ldapServerId, long companyId, LdapContext ldapContext, String fullDistinguishedName)
           
 byte[] getUsers(long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, String baseDN, String userFilter, List<SearchResult> searchResults)
           
 byte[] getUsers(long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, String baseDN, String userFilter, String[] attributeIds, List<SearchResult> searchResults)
           
 byte[] getUsers(long ldapServerId, long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, List<SearchResult> searchResults)
           
 byte[] getUsers(long ldapServerId, long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, String[] attributeIds, List<SearchResult> searchResults)
           
 String getUsersDN(long ldapServerId, long companyId)
           
 boolean hasUser(long ldapServerId, long companyId, String screenName, String emailAddress)
           
 boolean isGroupMember(long ldapServerId, long companyId, String groupDN, String userDN)
           
 boolean isUserGroupMember(long ldapServerId, long companyId, String groupDN, String userDN)
           
 byte[] searchLDAP(long companyId, LdapContext ldapContext, byte[] cookie, int maxResults, String baseDN, String filter, String[] attributeIds, List<SearchResult> searchResults)
           
 

Method Detail

getContext

LdapContext getContext(long ldapServerId,
                       long companyId)
                       throws Exception
Throws:
Exception

getContext

LdapContext getContext(long companyId,
                       String providerURL,
                       String principal,
                       String credentials)
                       throws Exception
Throws:
Exception

getGroup

Binding getGroup(long ldapServerId,
                 long companyId,
                 String groupName)
                 throws Exception
Throws:
Exception

getGroupAttributes

Attributes getGroupAttributes(long ldapServerId,
                              long companyId,
                              LdapContext ldapContext,
                              String fullDistinguishedName)
                              throws Exception
Throws:
Exception

getGroupAttributes

Attributes getGroupAttributes(long ldapServerId,
                              long companyId,
                              LdapContext ldapContext,
                              String fullDistinguishedName,
                              boolean includeReferenceAttributes)
                              throws Exception
Throws:
Exception

getGroups

byte[] getGroups(long companyId,
                 LdapContext ldapContext,
                 byte[] cookie,
                 int maxResults,
                 String baseDN,
                 String groupFilter,
                 List<SearchResult> searchResults)
                 throws Exception
Throws:
Exception

getGroups

byte[] getGroups(long companyId,
                 LdapContext ldapContext,
                 byte[] cookie,
                 int maxResults,
                 String baseDN,
                 String groupFilter,
                 String[] attributeIds,
                 List<SearchResult> searchResults)
                 throws Exception
Throws:
Exception

getGroups

byte[] getGroups(long ldapServerId,
                 long companyId,
                 LdapContext ldapContext,
                 byte[] cookie,
                 int maxResults,
                 List<SearchResult> searchResults)
                 throws Exception
Throws:
Exception

getGroups

byte[] getGroups(long ldapServerId,
                 long companyId,
                 LdapContext ldapContext,
                 byte[] cookie,
                 int maxResults,
                 String[] attributeIds,
                 List<SearchResult> searchResults)
                 throws Exception
Throws:
Exception

getGroupsDN

String getGroupsDN(long ldapServerId,
                   long companyId)
                   throws Exception
Throws:
Exception

getLdapServerId

long getLdapServerId(long companyId,
                     String screenName,
                     String emailAddress)
                     throws Exception
Throws:
Exception

getMultivaluedAttribute

Attribute getMultivaluedAttribute(long companyId,
                                  LdapContext ldapContext,
                                  String baseDN,
                                  String filter,
                                  Attribute attribute)
                                  throws Exception
Throws:
Exception

getNameInNamespace

String getNameInNamespace(long ldapServerId,
                          long companyId,
                          Binding binding)
                          throws Exception
Throws:
Exception

getUser

Binding getUser(long ldapServerId,
                long companyId,
                String screenName,
                String emailAddress)
                throws Exception
Throws:
Exception

getUser

Binding getUser(long ldapServerId,
                long companyId,
                String screenName,
                String emailAddress,
                boolean checkOriginalEmail)
                throws Exception
Throws:
Exception

getUserAttributes

Attributes getUserAttributes(long ldapServerId,
                             long companyId,
                             LdapContext ldapContext,
                             String fullDistinguishedName)
                             throws Exception
Throws:
Exception

getUsers

byte[] getUsers(long companyId,
                LdapContext ldapContext,
                byte[] cookie,
                int maxResults,
                String baseDN,
                String userFilter,
                List<SearchResult> searchResults)
                throws Exception
Throws:
Exception

getUsers

byte[] getUsers(long companyId,
                LdapContext ldapContext,
                byte[] cookie,
                int maxResults,
                String baseDN,
                String userFilter,
                String[] attributeIds,
                List<SearchResult> searchResults)
                throws Exception
Throws:
Exception

getUsers

byte[] getUsers(long ldapServerId,
                long companyId,
                LdapContext ldapContext,
                byte[] cookie,
                int maxResults,
                List<SearchResult> searchResults)
                throws Exception
Throws:
Exception

getUsers

byte[] getUsers(long ldapServerId,
                long companyId,
                LdapContext ldapContext,
                byte[] cookie,
                int maxResults,
                String[] attributeIds,
                List<SearchResult> searchResults)
                throws Exception
Throws:
Exception

getUsersDN

String getUsersDN(long ldapServerId,
                  long companyId)
                  throws Exception
Throws:
Exception

hasUser

boolean hasUser(long ldapServerId,
                long companyId,
                String screenName,
                String emailAddress)
                throws Exception
Throws:
Exception

isGroupMember

boolean isGroupMember(long ldapServerId,
                      long companyId,
                      String groupDN,
                      String userDN)
                      throws Exception
Throws:
Exception

isUserGroupMember

boolean isUserGroupMember(long ldapServerId,
                          long companyId,
                          String groupDN,
                          String userDN)
                          throws Exception
Throws:
Exception

searchLDAP

byte[] searchLDAP(long companyId,
                  LdapContext ldapContext,
                  byte[] cookie,
                  int maxResults,
                  String baseDN,
                  String filter,
                  String[] attributeIds,
                  List<SearchResult> searchResults)
                  throws Exception
Throws:
Exception

Liferay 7.0-ce-b4