com.liferay.portal.security.ldap
Class PortalLDAPImporter

java.lang.Object
  extended by com.liferay.portal.security.ldap.PortalLDAPImporter

public class PortalLDAPImporter
extends java.lang.Object

View Source

Author:
Edward Han, Michael C. Han, Brian Wing Shun Chan

Field Summary
static java.lang.String IMPORT_BY_GROUP
           
static java.lang.String IMPORT_BY_USER
           
 
Constructor Summary
PortalLDAPImporter()
           
 
Method Summary
static void importFromLDAP()
           
static void importFromLDAP(long companyId)
           
static void importFromLDAP(long ldapServerId, long companyId)
           
static com.liferay.portal.model.UserGroup importLDAPGroup(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, javax.naming.directory.Attributes attributes, boolean importGroupMembership)
           
static com.liferay.portal.model.User importLDAPUser(long ldapServerId, long companyId, javax.naming.ldap.LdapContext ldapContext, javax.naming.directory.Attributes attributes, java.lang.String password, boolean importGroupMembership)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPORT_BY_GROUP

public static final java.lang.String IMPORT_BY_GROUP
See Also:
Constant Field Values

IMPORT_BY_USER

public static final java.lang.String IMPORT_BY_USER
See Also:
Constant Field Values
Constructor Detail

PortalLDAPImporter

public PortalLDAPImporter()
Method Detail

importFromLDAP

public static void importFromLDAP()
                           throws java.lang.Exception
Throws:
java.lang.Exception

importFromLDAP

public static void importFromLDAP(long companyId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

importFromLDAP

public static void importFromLDAP(long ldapServerId,
                                  long companyId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

importLDAPGroup

public static com.liferay.portal.model.UserGroup importLDAPGroup(long ldapServerId,
                                                                 long companyId,
                                                                 javax.naming.ldap.LdapContext ldapContext,
                                                                 javax.naming.directory.Attributes attributes,
                                                                 boolean importGroupMembership)
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

importLDAPUser

public static com.liferay.portal.model.User importLDAPUser(long ldapServerId,
                                                           long companyId,
                                                           javax.naming.ldap.LdapContext ldapContext,
                                                           javax.naming.directory.Attributes attributes,
                                                           java.lang.String password,
                                                           boolean importGroupMembership)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception