com.liferay.portal.security.ldap
Class PortalLDAPImporterImpl
java.lang.Object
com.liferay.portal.security.ldap.PortalLDAPImporterImpl
- All Implemented Interfaces:
- com.liferay.portal.security.ldap.PortalLDAPImporter
public class PortalLDAPImporterImpl
- extends java.lang.Object
- implements com.liferay.portal.security.ldap.PortalLDAPImporter
View Source
- Author:
- Michael C. Han, Brian Wing Shun Chan
Method Summary |
protected void |
addRole(long companyId,
com.liferay.portal.security.ldap.LDAPGroup ldapGroup,
com.liferay.portal.model.UserGroup userGroup)
|
protected com.liferay.portal.model.User |
addUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
java.lang.String password)
|
protected com.liferay.portal.model.User |
getUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser)
|
protected javax.naming.directory.Attribute |
getUsers(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
javax.naming.directory.Attributes attributes,
com.liferay.portal.model.UserGroup userGroup,
java.util.Properties groupMappings)
|
void |
importFromLDAP()
|
void |
importFromLDAP(long companyId)
|
void |
importFromLDAP(long ldapServerId,
long companyId)
|
protected void |
importFromLDAPByGroup(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings,
java.util.Properties groupMappings)
|
protected void |
importFromLDAPByUser(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings,
java.util.Properties groupMappings)
|
protected void |
importGroups(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
javax.naming.directory.Attributes attributes,
com.liferay.portal.model.User user,
java.util.Properties userMappings,
java.util.Properties groupMappings)
|
com.liferay.portal.model.User |
importLDAPUser(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
javax.naming.directory.Attributes attributes,
java.lang.String password)
|
protected com.liferay.portal.model.User |
importUser(long companyId,
javax.naming.directory.Attributes attributes,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings,
java.lang.String password)
|
protected com.liferay.portal.model.UserGroup |
importUserGroup(long companyId,
javax.naming.directory.Attributes attributes,
java.util.Properties groupMappings)
|
protected void |
importUsers(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings,
long userGroupId,
javax.naming.directory.Attribute attribute)
|
protected void |
populateExpandoAttributes(com.liferay.portlet.expando.model.ExpandoBridge expandoBridge,
java.util.Map<java.lang.String,java.lang.String> expandoAttributes)
|
void |
setLDAPToPortalConverter(com.liferay.portal.security.ldap.LDAPToPortalConverter ldapToPortalConverter)
|
protected void |
updateExpandoAttributes(com.liferay.portal.model.User user,
com.liferay.portal.security.ldap.LDAPUser ldapUser)
|
protected com.liferay.portal.model.User |
updateUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
com.liferay.portal.model.User user,
java.lang.String password,
java.lang.String modifiedDate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortalLDAPImporterImpl
public PortalLDAPImporterImpl()
importFromLDAP
public void importFromLDAP()
throws java.lang.Exception
- Specified by:
importFromLDAP
in interface com.liferay.portal.security.ldap.PortalLDAPImporter
- Throws:
java.lang.Exception
importFromLDAP
public void importFromLDAP(long companyId)
throws java.lang.Exception
- Specified by:
importFromLDAP
in interface com.liferay.portal.security.ldap.PortalLDAPImporter
- Throws:
java.lang.Exception
importFromLDAP
public void importFromLDAP(long ldapServerId,
long companyId)
throws java.lang.Exception
- Specified by:
importFromLDAP
in interface com.liferay.portal.security.ldap.PortalLDAPImporter
- Throws:
java.lang.Exception
importLDAPUser
public com.liferay.portal.model.User importLDAPUser(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
javax.naming.directory.Attributes attributes,
java.lang.String password)
throws java.lang.Exception
- Specified by:
importLDAPUser
in interface com.liferay.portal.security.ldap.PortalLDAPImporter
- Throws:
java.lang.Exception
setLDAPToPortalConverter
public void setLDAPToPortalConverter(com.liferay.portal.security.ldap.LDAPToPortalConverter ldapToPortalConverter)
addRole
protected void addRole(long companyId,
com.liferay.portal.security.ldap.LDAPGroup ldapGroup,
com.liferay.portal.model.UserGroup userGroup)
throws java.lang.Exception
- Throws:
java.lang.Exception
addUser
protected com.liferay.portal.model.User addUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
getUser
protected com.liferay.portal.model.User getUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser)
throws java.lang.Exception
- Throws:
java.lang.Exception
getUsers
protected javax.naming.directory.Attribute getUsers(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
javax.naming.directory.Attributes attributes,
com.liferay.portal.model.UserGroup userGroup,
java.util.Properties groupMappings)
throws java.lang.Exception
- Throws:
java.lang.Exception
importFromLDAPByGroup
protected void importFromLDAPByGroup(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings,
java.util.Properties groupMappings)
throws java.lang.Exception
- Throws:
java.lang.Exception
importFromLDAPByUser
protected void importFromLDAPByUser(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings,
java.util.Properties groupMappings)
throws java.lang.Exception
- Throws:
java.lang.Exception
importGroups
protected void importGroups(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
javax.naming.directory.Attributes attributes,
com.liferay.portal.model.User user,
java.util.Properties userMappings,
java.util.Properties groupMappings)
throws java.lang.Exception
- Throws:
java.lang.Exception
importUser
protected com.liferay.portal.model.User importUser(long companyId,
javax.naming.directory.Attributes attributes,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings,
java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
importUserGroup
protected com.liferay.portal.model.UserGroup importUserGroup(long companyId,
javax.naming.directory.Attributes attributes,
java.util.Properties groupMappings)
throws java.lang.Exception
- Throws:
java.lang.Exception
importUsers
protected void importUsers(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings,
long userGroupId,
javax.naming.directory.Attribute attribute)
throws java.lang.Exception
- Throws:
java.lang.Exception
populateExpandoAttributes
protected void populateExpandoAttributes(com.liferay.portlet.expando.model.ExpandoBridge expandoBridge,
java.util.Map<java.lang.String,java.lang.String> expandoAttributes)
updateExpandoAttributes
protected void updateExpandoAttributes(com.liferay.portal.model.User user,
com.liferay.portal.security.ldap.LDAPUser ldapUser)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateUser
protected com.liferay.portal.model.User updateUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
com.liferay.portal.model.User user,
java.lang.String password,
java.lang.String modifiedDate)
throws java.lang.Exception
- Throws:
java.lang.Exception