Liferay 6.1.2-ce-ga3

com.liferay.portal.security.ldap
Class PortalLDAPImporterImpl

java.lang.Object
  extended by com.liferay.portal.security.ldap.PortalLDAPImporterImpl
All Implemented Interfaces:
PortalLDAPImporter

public class PortalLDAPImporterImpl
extends Object
implements PortalLDAPImporter


Constructor Summary
PortalLDAPImporterImpl()
           
 
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)
           
 void importFromLDAP()
           
 void importFromLDAP(long companyId)
           
 void importFromLDAP(long ldapServerId, long companyId)
           
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)
           
 User importLDAPUser(long ldapServerId, long companyId, LdapContext ldapContext, Attributes attributes, String password)
           
 User importLDAPUser(long ldapServerId, long companyId, String emailAddress, String screenName)
           
 User importLDAPUser(long companyId, String emailAddress, String screenName)
           
 User importLDAPUserByScreenName(long companyId, String screenName)
           
protected  User importUser(long companyId, Attributes attributes, Properties userMappings, Properties userExpandoMappings, Properties contactMappings, Properties contactExpandoMappings, String password)
           
protected  UserGroup importUserGroup(long companyId, Attributes attributes, Properties groupMappings)
           
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

PortalLDAPImporterImpl

public PortalLDAPImporterImpl()
Method Detail

importFromLDAP

public void importFromLDAP()
                    throws Exception
Specified by:
importFromLDAP in interface PortalLDAPImporter
Throws:
Exception

importFromLDAP

public void importFromLDAP(long companyId)
                    throws Exception
Specified by:
importFromLDAP in interface PortalLDAPImporter
Throws:
Exception

importFromLDAP

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

importLDAPUser

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

importLDAPUser

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

importLDAPUser

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

importLDAPUserByScreenName

public User importLDAPUserByScreenName(long companyId,
                                       String screenName)
                                throws Exception
Specified by:
importLDAPUserByScreenName in interface PortalLDAPImporter
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 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,
                              SystemException
Throws:
PortalException
SystemException

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 6.1.2-ce-ga3