com.liferay.portal.security.ldap
Class DefaultPortalToLDAPConverter
java.lang.Object
com.liferay.portal.security.ldap.DefaultPortalToLDAPConverter
- All Implemented Interfaces:
- PortalToLDAPConverter
public class DefaultPortalToLDAPConverter
- extends Object
- implements PortalToLDAPConverter
Method Summary |
protected void |
addAttributeMapping(String attributeName,
Object attributeValue,
Attributes attributes)
|
protected void |
addAttributeMapping(String attributeName,
String attributeValue,
Attributes attributes)
|
protected void |
addModificationItem(BasicAttribute basicAttribute,
Modifications modifications)
|
protected void |
addModificationItem(String attributeName,
String attributeValue,
Modifications modifications)
|
protected String |
getEncryptedPasswordForLDAP(User user,
Properties userMappings)
|
String |
getGroupDNName(long ldapServerId,
UserGroup userGroup,
Properties groupMappings)
|
Modifications |
getLDAPContactModifications(Contact contact,
Map<String,Serializable> contactExpandoAttributes,
Properties contactMappings,
Properties contactExpandoMappings)
|
Attributes |
getLDAPGroupAttributes(long ldapServerId,
UserGroup userGroup,
User user,
Properties groupMappings,
Properties userMappings)
|
Modifications |
getLDAPGroupModifications(long ldapServerId,
UserGroup userGroup,
User user,
Properties groupMappings,
Properties userMappings,
LDAPOperation ldapOperation)
|
Attributes |
getLDAPUserAttributes(long ldapServerId,
User user,
Properties userMappings)
|
Modifications |
getLDAPUserGroupModifications(long ldapServerId,
List<UserGroup> userGroups,
User user,
Properties userMappings)
|
Modifications |
getLDAPUserModifications(User user,
Map<String,Serializable> userExpandoAttributes,
Properties userMappings,
Properties userExpandoMappings)
|
protected Modifications |
getModifications(Object object,
Properties objectMappings,
Map<String,String> reservedFieldNames)
|
String |
getUserDNName(long ldapServerId,
User user,
Properties userMappings)
|
protected byte[] |
getUserPortrait(User user)
|
protected void |
populateCustomAttributeModifications(Object object,
ExpandoBridge expandoBridge,
Map<String,Serializable> expandoAttributes,
Properties expandoMappings,
Modifications modifications)
|
void |
setContactReservedFieldNames(List<String> reservedContactFieldNames)
|
void |
setUserDNFieldName(String userDNFieldName)
|
void |
setUserReservedFieldNames(List<String> reservedUserFieldNames)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPortalToLDAPConverter
public DefaultPortalToLDAPConverter()
getGroupDNName
public String getGroupDNName(long ldapServerId,
UserGroup userGroup,
Properties groupMappings)
throws Exception
- Specified by:
getGroupDNName
in interface PortalToLDAPConverter
- Throws:
Exception
getLDAPContactModifications
public Modifications getLDAPContactModifications(Contact contact,
Map<String,Serializable> contactExpandoAttributes,
Properties contactMappings,
Properties contactExpandoMappings)
throws Exception
- Specified by:
getLDAPContactModifications
in interface PortalToLDAPConverter
- Throws:
Exception
getLDAPGroupAttributes
public Attributes getLDAPGroupAttributes(long ldapServerId,
UserGroup userGroup,
User user,
Properties groupMappings,
Properties userMappings)
throws Exception
- Specified by:
getLDAPGroupAttributes
in interface PortalToLDAPConverter
- Throws:
Exception
getLDAPGroupModifications
public Modifications getLDAPGroupModifications(long ldapServerId,
UserGroup userGroup,
User user,
Properties groupMappings,
Properties userMappings,
LDAPOperation ldapOperation)
throws Exception
- Specified by:
getLDAPGroupModifications
in interface PortalToLDAPConverter
- Throws:
Exception
getLDAPUserAttributes
public Attributes getLDAPUserAttributes(long ldapServerId,
User user,
Properties userMappings)
throws SystemException
- Specified by:
getLDAPUserAttributes
in interface PortalToLDAPConverter
- Throws:
SystemException
getLDAPUserGroupModifications
public Modifications getLDAPUserGroupModifications(long ldapServerId,
List<UserGroup> userGroups,
User user,
Properties userMappings)
throws Exception
- Specified by:
getLDAPUserGroupModifications
in interface PortalToLDAPConverter
- Throws:
Exception
getLDAPUserModifications
public Modifications getLDAPUserModifications(User user,
Map<String,Serializable> userExpandoAttributes,
Properties userMappings,
Properties userExpandoMappings)
throws Exception
- Specified by:
getLDAPUserModifications
in interface PortalToLDAPConverter
- Throws:
Exception
getUserDNName
public String getUserDNName(long ldapServerId,
User user,
Properties userMappings)
throws Exception
- Specified by:
getUserDNName
in interface PortalToLDAPConverter
- Throws:
Exception
setContactReservedFieldNames
public void setContactReservedFieldNames(List<String> reservedContactFieldNames)
setUserDNFieldName
public void setUserDNFieldName(String userDNFieldName)
setUserReservedFieldNames
public void setUserReservedFieldNames(List<String> reservedUserFieldNames)
addAttributeMapping
protected void addAttributeMapping(String attributeName,
Object attributeValue,
Attributes attributes)
addAttributeMapping
protected void addAttributeMapping(String attributeName,
String attributeValue,
Attributes attributes)
addModificationItem
protected void addModificationItem(BasicAttribute basicAttribute,
Modifications modifications)
addModificationItem
protected void addModificationItem(String attributeName,
String attributeValue,
Modifications modifications)
getEncryptedPasswordForLDAP
protected String getEncryptedPasswordForLDAP(User user,
Properties userMappings)
throws SystemException
- Throws:
SystemException
getModifications
protected Modifications getModifications(Object object,
Properties objectMappings,
Map<String,String> reservedFieldNames)
getUserPortrait
protected byte[] getUserPortrait(User user)
populateCustomAttributeModifications
protected void populateCustomAttributeModifications(Object object,
ExpandoBridge expandoBridge,
Map<String,Serializable> expandoAttributes,
Properties expandoMappings,
Modifications modifications)