public class PortalLDAPImporterImpl
extends java.lang.Object
implements com.liferay.portal.security.ldap.PortalLDAPImporter
| Constructor and Description |
|---|
PortalLDAPImporterImpl() |
| Modifier and Type | Method and Description |
|---|---|
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 void |
addUserGroupsNotAddedByLDAPImport(long userId,
java.util.Set<java.lang.Long> userGroupIds) |
protected java.lang.String |
escapeValue(java.lang.String value) |
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 java.util.Set<java.lang.Long> |
importGroup(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.lang.String fullGroupDN,
com.liferay.portal.model.User user,
java.util.Properties groupMappings,
java.util.Set<java.lang.Long> newUserGroupIds) |
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) |
com.liferay.portal.model.User |
importLDAPUser(long ldapServerId,
long companyId,
java.lang.String emailAddress,
java.lang.String screenName) |
com.liferay.portal.model.User |
importLDAPUser(long companyId,
java.lang.String emailAddress,
java.lang.String screenName) |
com.liferay.portal.model.User |
importLDAPUserByScreenName(long companyId,
java.lang.String screenName) |
protected com.liferay.portal.model.User |
importUser(long ldapServerId,
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,
java.util.Properties expandoMappings) |
void |
setLDAPToPortalConverter(com.liferay.portal.security.ldap.LDAPToPortalConverter ldapToPortalConverter) |
protected void |
setProperty(java.lang.Object bean1,
java.lang.Object bean2,
java.lang.String propertyName) |
protected void |
updateExpandoAttributes(com.liferay.portal.model.User user,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
java.util.Properties userExpandoMappings,
java.util.Properties contactExpandoMappings) |
protected void |
updateLDAPUser(com.liferay.portal.model.User ldapUser,
com.liferay.portal.model.Contact ldapContact,
com.liferay.portal.model.User user,
java.util.Properties userMappings,
java.util.Properties contactMappings) |
protected com.liferay.portal.model.User |
updateUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
com.liferay.portal.model.User user,
java.util.Properties userMappings,
java.util.Properties contactMappings,
java.lang.String password,
java.lang.String modifyTimestamp,
boolean isNew) |
public void importFromLDAP()
throws java.lang.Exception
importFromLDAP in interface com.liferay.portal.security.ldap.PortalLDAPImporterjava.lang.Exceptionpublic void importFromLDAP(long companyId)
throws java.lang.Exception
importFromLDAP in interface com.liferay.portal.security.ldap.PortalLDAPImporterjava.lang.Exceptionpublic void importFromLDAP(long ldapServerId,
long companyId)
throws java.lang.Exception
importFromLDAP in interface com.liferay.portal.security.ldap.PortalLDAPImporterjava.lang.Exceptionpublic 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
importLDAPUser in interface com.liferay.portal.security.ldap.PortalLDAPImporterjava.lang.Exceptionpublic com.liferay.portal.model.User importLDAPUser(long ldapServerId,
long companyId,
java.lang.String emailAddress,
java.lang.String screenName)
throws java.lang.Exception
importLDAPUser in interface com.liferay.portal.security.ldap.PortalLDAPImporterjava.lang.Exceptionpublic com.liferay.portal.model.User importLDAPUser(long companyId,
java.lang.String emailAddress,
java.lang.String screenName)
throws java.lang.Exception
importLDAPUser in interface com.liferay.portal.security.ldap.PortalLDAPImporterjava.lang.Exceptionpublic com.liferay.portal.model.User importLDAPUserByScreenName(long companyId,
java.lang.String screenName)
throws java.lang.Exception
importLDAPUserByScreenName in interface com.liferay.portal.security.ldap.PortalLDAPImporterjava.lang.Exceptionpublic void setLDAPToPortalConverter(com.liferay.portal.security.ldap.LDAPToPortalConverter ldapToPortalConverter)
protected void addRole(long companyId,
com.liferay.portal.security.ldap.LDAPGroup ldapGroup,
com.liferay.portal.model.UserGroup userGroup)
throws java.lang.Exception
java.lang.Exceptionprotected com.liferay.portal.model.User addUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
java.lang.String password)
throws java.lang.Exception
java.lang.Exceptionprotected void addUserGroupsNotAddedByLDAPImport(long userId,
java.util.Set<java.lang.Long> userGroupIds)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String escapeValue(java.lang.String value)
protected com.liferay.portal.model.User getUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser)
throws java.lang.Exception
java.lang.Exceptionprotected 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
java.lang.Exceptionprotected 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
java.lang.Exceptionprotected 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
java.lang.Exceptionprotected java.util.Set<java.lang.Long> importGroup(long ldapServerId,
long companyId,
javax.naming.ldap.LdapContext ldapContext,
java.lang.String fullGroupDN,
com.liferay.portal.model.User user,
java.util.Properties groupMappings,
java.util.Set<java.lang.Long> newUserGroupIds)
throws java.lang.Exception
java.lang.Exceptionprotected 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
java.lang.Exceptionprotected com.liferay.portal.model.User importUser(long ldapServerId,
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
java.lang.Exceptionprotected com.liferay.portal.model.UserGroup importUserGroup(long companyId,
javax.naming.directory.Attributes attributes,
java.util.Properties groupMappings)
throws java.lang.Exception
java.lang.Exceptionprotected 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
java.lang.Exceptionprotected void populateExpandoAttributes(com.liferay.portlet.expando.model.ExpandoBridge expandoBridge,
java.util.Map<java.lang.String,java.lang.String[]> expandoAttributes,
java.util.Properties expandoMappings)
protected void setProperty(java.lang.Object bean1,
java.lang.Object bean2,
java.lang.String propertyName)
protected void updateExpandoAttributes(com.liferay.portal.model.User user,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
java.util.Properties userExpandoMappings,
java.util.Properties contactExpandoMappings)
throws java.lang.Exception
java.lang.Exceptionprotected void updateLDAPUser(com.liferay.portal.model.User ldapUser,
com.liferay.portal.model.Contact ldapContact,
com.liferay.portal.model.User user,
java.util.Properties userMappings,
java.util.Properties contactMappings)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected com.liferay.portal.model.User updateUser(long companyId,
com.liferay.portal.security.ldap.LDAPUser ldapUser,
com.liferay.portal.model.User user,
java.util.Properties userMappings,
java.util.Properties contactMappings,
java.lang.String password,
java.lang.String modifyTimestamp,
boolean isNew)
throws java.lang.Exception
java.lang.Exception