001
014
015 package com.liferay.portal.security.ldap;
016
017 import com.liferay.portal.model.User;
018
019 import javax.naming.directory.Attributes;
020 import javax.naming.ldap.LdapContext;
021
022
025 public interface PortalLDAPImporter {
026
027 public void importFromLDAP() throws Exception;
028
029 public void importFromLDAP(long companyId) throws Exception;
030
031 public void importFromLDAP(long ldapServerId, long companyId)
032 throws Exception;
033
034 public User importLDAPUser(
035 long ldapServerId, long companyId, LdapContext ldapContext,
036 Attributes attributes, String password)
037 throws Exception;
038
039 public User importLDAPUser(
040 long ldapServerId, long companyId, String emailAddress,
041 String screenName)
042 throws Exception;
043
044 public User importLDAPUser(
045 long companyId, String emailAddress, String screenName)
046 throws Exception;
047
048 public User importLDAPUserByScreenName(long companyId, String screenName)
049 throws Exception;
050
051 }