com.liferay.portal.security.ldap
Class PortalLDAPImporterImpl
java.lang.Object
com.liferay.portal.security.ldap.PortalLDAPImporterImpl
- All Implemented Interfaces:
- PortalLDAPImporter
public class PortalLDAPImporterImpl
- extends Object
- implements PortalLDAPImporter
Method Summary |
protected void |
addRole(long companyId,
LDAPGroup ldapGroup,
UserGroup userGroup)
|
protected User |
addUser(long companyId,
LDAPUser ldapUser,
String password)
|
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 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 |
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)
|
void |
setLDAPToPortalConverter(LDAPToPortalConverter ldapToPortalConverter)
|
protected void |
updateExpandoAttributes(User user,
LDAPUser ldapUser)
|
protected User |
updateUser(long companyId,
LDAPUser ldapUser,
User user,
String password,
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 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
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
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
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)
updateExpandoAttributes
protected void updateExpandoAttributes(User user,
LDAPUser ldapUser)
throws Exception
- Throws:
Exception
updateUser
protected User updateUser(long companyId,
LDAPUser ldapUser,
User user,
String password,
String modifiedDate)
throws Exception
- Throws:
Exception