Liferay 7.0-ce-m3

com.liferay.portal.security.ldap
Class LDAPUserImporterImpl

java.lang.Object
  extended by com.liferay.portal.security.ldap.LDAPUserImporterImpl
All Implemented Interfaces:
UserImporter, LDAPUserImporter

public class LDAPUserImporterImpl
extends Object
implements LDAPUserImporter, UserImporter


Constructor Summary
LDAPUserImporterImpl()
           
 
Method Summary
protected  void addRole(long companyId, LDAPGroup ldapGroup, UserGroup userGroup)
           
protected  User addUser(long companyId, LDAPUser ldapUser, String password)
           
protected  void addUserGroupsNotAddedByLDAPImport(long userId, Set<Long> userGroupIds)
           
protected  String escapeValue(String value)
           
protected  User getUser(long companyId, LDAPUser ldapUser)
           
protected  Attribute getUsers(long ldapServerId, long companyId, LdapContext ldapContext, Attributes attributes, UserGroup userGroup, Properties groupMappings)
           
protected  void importFromLDAPByGroup(long ldapServerId, long companyId, LdapContext ldapContext, Properties userMappings, Properties userExpandoMappings, Properties contactMappings, Properties contactExpandoMappings, Properties groupMappings)
           
protected  void importFromLDAPByUser(long ldapServerId, long companyId, LdapContext ldapContext, Properties userMappings, Properties userExpandoMappings, Properties contactMappings, Properties contactExpandoMappings, Properties groupMappings)
           
protected  Set<Long> importGroup(long ldapServerId, long companyId, LdapContext ldapContext, String fullGroupDN, User user, Properties groupMappings, Set<Long> newUserGroupIds)
           
protected  void importGroups(long ldapServerId, long companyId, LdapContext ldapContext, Attributes attributes, User user, Properties userMappings, Properties groupMappings)
           
protected  User importUser(long ldapServerId, long companyId, Attributes attributes, Properties userMappings, Properties userExpandoMappings, Properties contactMappings, Properties contactExpandoMappings, String password)
           
 User importUser(long ldapServerId, long companyId, LdapContext ldapContext, Attributes attributes, String password)
           
 User importUser(long ldapServerId, long companyId, String emailAddress, String screenName)
           
 User importUser(long companyId, String emailAddress, String screenName)
           
 User importUserByScreenName(long companyId, String screenName)
           
protected  UserGroup importUserGroup(long companyId, Attributes attributes, Properties groupMappings)
           
 void importUsers()
           
 void importUsers(long companyId)
           
 void importUsers(long ldapServerId, long companyId)
           
protected  void importUsers(long ldapServerId, long companyId, LdapContext ldapContext, Properties userMappings, Properties userExpandoMappings, Properties contactMappings, Properties contactExpandoMappings, long userGroupId, Attribute attribute)
           
protected  void populateExpandoAttributes(ExpandoBridge expandoBridge, Map<String,String[]> expandoAttributes, Properties expandoMappings)
           
 void setLDAPToPortalConverter(LDAPToPortalConverter ldapToPortalConverter)
           
protected  void setProperty(Object bean1, Object bean2, String propertyName)
           
protected  void updateExpandoAttributes(User user, LDAPUser ldapUser, Properties userExpandoMappings, Properties contactExpandoMappings)
           
protected  void updateLDAPUser(User ldapUser, Contact ldapContact, User user, Properties userMappings, Properties contactMappings)
           
protected  User updateUser(long companyId, LDAPUser ldapUser, User user, Properties userMappings, Properties contactMappings, String password, String modifiedDate, boolean isNew)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPUserImporterImpl

public LDAPUserImporterImpl()
Method Detail

importUser

public User importUser(long ldapServerId,
                       long companyId,
                       LdapContext ldapContext,
                       Attributes attributes,
                       String password)
                throws Exception
Specified by:
importUser in interface LDAPUserImporter
Throws:
Exception

importUser

public User importUser(long ldapServerId,
                       long companyId,
                       String emailAddress,
                       String screenName)
                throws Exception
Specified by:
importUser in interface UserImporter
Throws:
Exception

importUser

public User importUser(long companyId,
                       String emailAddress,
                       String screenName)
                throws Exception
Specified by:
importUser in interface UserImporter
Throws:
Exception

importUserByScreenName

public User importUserByScreenName(long companyId,
                                   String screenName)
                            throws Exception
Specified by:
importUserByScreenName in interface UserImporter
Throws:
Exception

importUsers

public void importUsers()
                 throws Exception
Specified by:
importUsers in interface UserImporter
Throws:
Exception

importUsers

public void importUsers(long companyId)
                 throws Exception
Specified by:
importUsers in interface UserImporter
Throws:
Exception

importUsers

public void importUsers(long ldapServerId,
                        long companyId)
                 throws Exception
Specified by:
importUsers in interface UserImporter
Throws:
Exception

setLDAPToPortalConverter

public void setLDAPToPortalConverter(LDAPToPortalConverter ldapToPortalConverter)

addRole

protected void addRole(long companyId,
                       LDAPGroup ldapGroup,
                       UserGroup userGroup)
                throws Exception
Throws:
Exception

addUser

protected User addUser(long companyId,
                       LDAPUser ldapUser,
                       String password)
                throws Exception
Throws:
Exception

addUserGroupsNotAddedByLDAPImport

protected void addUserGroupsNotAddedByLDAPImport(long userId,
                                                 Set<Long> userGroupIds)
                                          throws Exception
Throws:
Exception

escapeValue

protected String escapeValue(String value)

getUser

protected User getUser(long companyId,
                       LDAPUser ldapUser)
                throws Exception
Throws:
Exception

getUsers

protected Attribute getUsers(long ldapServerId,
                             long companyId,
                             LdapContext ldapContext,
                             Attributes attributes,
                             UserGroup userGroup,
                             Properties groupMappings)
                      throws Exception
Throws:
Exception

importFromLDAPByGroup

protected void importFromLDAPByGroup(long ldapServerId,
                                     long companyId,
                                     LdapContext ldapContext,
                                     Properties userMappings,
                                     Properties userExpandoMappings,
                                     Properties contactMappings,
                                     Properties contactExpandoMappings,
                                     Properties groupMappings)
                              throws Exception
Throws:
Exception

importFromLDAPByUser

protected void importFromLDAPByUser(long ldapServerId,
                                    long companyId,
                                    LdapContext ldapContext,
                                    Properties userMappings,
                                    Properties userExpandoMappings,
                                    Properties contactMappings,
                                    Properties contactExpandoMappings,
                                    Properties groupMappings)
                             throws Exception
Throws:
Exception

importGroup

protected Set<Long> importGroup(long ldapServerId,
                                long companyId,
                                LdapContext ldapContext,
                                String fullGroupDN,
                                User user,
                                Properties groupMappings,
                                Set<Long> newUserGroupIds)
                         throws Exception
Throws:
Exception

importGroups

protected void importGroups(long ldapServerId,
                            long companyId,
                            LdapContext ldapContext,
                            Attributes attributes,
                            User user,
                            Properties userMappings,
                            Properties groupMappings)
                     throws Exception
Throws:
Exception

importUser

protected User importUser(long ldapServerId,
                          long companyId,
                          Attributes attributes,
                          Properties userMappings,
                          Properties userExpandoMappings,
                          Properties contactMappings,
                          Properties contactExpandoMappings,
                          String password)
                   throws Exception
Throws:
Exception

importUserGroup

protected UserGroup importUserGroup(long companyId,
                                    Attributes attributes,
                                    Properties groupMappings)
                             throws Exception
Throws:
Exception

importUsers

protected void importUsers(long ldapServerId,
                           long companyId,
                           LdapContext ldapContext,
                           Properties userMappings,
                           Properties userExpandoMappings,
                           Properties contactMappings,
                           Properties contactExpandoMappings,
                           long userGroupId,
                           Attribute attribute)
                    throws Exception
Throws:
Exception

populateExpandoAttributes

protected void populateExpandoAttributes(ExpandoBridge expandoBridge,
                                         Map<String,String[]> expandoAttributes,
                                         Properties expandoMappings)

setProperty

protected void setProperty(Object bean1,
                           Object bean2,
                           String propertyName)

updateExpandoAttributes

protected void updateExpandoAttributes(User user,
                                       LDAPUser ldapUser,
                                       Properties userExpandoMappings,
                                       Properties contactExpandoMappings)
                                throws Exception
Throws:
Exception

updateLDAPUser

protected void updateLDAPUser(User ldapUser,
                              Contact ldapContact,
                              User user,
                              Properties userMappings,
                              Properties contactMappings)
                       throws PortalException
Throws:
PortalException

updateUser

protected User updateUser(long companyId,
                          LDAPUser ldapUser,
                          User user,
                          Properties userMappings,
                          Properties contactMappings,
                          String password,
                          String modifiedDate,
                          boolean isNew)
                   throws Exception
Throws:
Exception

Liferay 7.0-ce-m3