com.liferay.portal.security.ldap
Class BasePortalToLDAPConverter
java.lang.Object
com.liferay.portal.security.ldap.BasePortalToLDAPConverter
- All Implemented Interfaces:
- com.liferay.portal.security.ldap.PortalToLDAPConverter
public class BasePortalToLDAPConverter
- extends java.lang.Object
- implements com.liferay.portal.security.ldap.PortalToLDAPConverter
View Source
- Author:
- Michael C. Han, Brian Wing Shun Chan
Method Summary |
protected void |
addAttributeMapping(java.lang.String attributeName,
java.lang.String attributeValue,
javax.naming.directory.Attributes attributes)
|
protected void |
addModificationItem(java.lang.String attributeName,
java.lang.String attributeValue,
com.liferay.portal.security.ldap.Modifications modifications)
|
com.liferay.portal.security.ldap.Modifications |
getLDAPContactModifications(com.liferay.portal.model.Contact contact,
java.util.Map<java.lang.String,java.io.Serializable> contactExpandoAttributes,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings)
|
javax.naming.directory.Attributes |
getLDAPUserAttributes(long ldapServerId,
com.liferay.portal.model.User user,
java.util.Properties userMappings)
|
com.liferay.portal.security.ldap.Modifications |
getLDAPUserModifications(com.liferay.portal.model.User user,
java.util.Map<java.lang.String,java.io.Serializable> userExpandoAttributes,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings)
|
protected com.liferay.portal.security.ldap.Modifications |
getModifications(java.lang.Object object,
java.util.Properties objectMappings,
java.util.Map<java.lang.String,java.lang.String> reservedFieldNames)
|
java.lang.String |
getUserDNName(long ldapServerId,
com.liferay.portal.model.User user,
java.util.Properties userMappings)
|
protected void |
populateCustomAttributeModifications(java.lang.Object object,
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge,
java.util.Map<java.lang.String,java.io.Serializable> expandoAttributes,
java.util.Properties expandoMappings,
com.liferay.portal.security.ldap.Modifications modifications)
|
void |
setContactReservedFieldNames(java.util.List<java.lang.String> reservedContactFieldNames)
|
void |
setUserDNFieldName(java.lang.String userDNFieldName)
|
void |
setUserReservedFieldNames(java.util.List<java.lang.String> reservedUserFieldNames)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasePortalToLDAPConverter
public BasePortalToLDAPConverter()
getLDAPContactModifications
public com.liferay.portal.security.ldap.Modifications getLDAPContactModifications(com.liferay.portal.model.Contact contact,
java.util.Map<java.lang.String,java.io.Serializable> contactExpandoAttributes,
java.util.Properties contactMappings,
java.util.Properties contactExpandoMappings)
throws java.lang.Exception
- Specified by:
getLDAPContactModifications
in interface com.liferay.portal.security.ldap.PortalToLDAPConverter
- Throws:
java.lang.Exception
getLDAPUserAttributes
public javax.naming.directory.Attributes getLDAPUserAttributes(long ldapServerId,
com.liferay.portal.model.User user,
java.util.Properties userMappings)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getLDAPUserAttributes
in interface com.liferay.portal.security.ldap.PortalToLDAPConverter
- Throws:
com.liferay.portal.kernel.exception.SystemException
getLDAPUserModifications
public com.liferay.portal.security.ldap.Modifications getLDAPUserModifications(com.liferay.portal.model.User user,
java.util.Map<java.lang.String,java.io.Serializable> userExpandoAttributes,
java.util.Properties userMappings,
java.util.Properties userExpandoMappings)
throws java.lang.Exception
- Specified by:
getLDAPUserModifications
in interface com.liferay.portal.security.ldap.PortalToLDAPConverter
- Throws:
java.lang.Exception
getUserDNName
public java.lang.String getUserDNName(long ldapServerId,
com.liferay.portal.model.User user,
java.util.Properties userMappings)
throws java.lang.Exception
- Specified by:
getUserDNName
in interface com.liferay.portal.security.ldap.PortalToLDAPConverter
- Throws:
java.lang.Exception
setContactReservedFieldNames
public void setContactReservedFieldNames(java.util.List<java.lang.String> reservedContactFieldNames)
setUserDNFieldName
public void setUserDNFieldName(java.lang.String userDNFieldName)
setUserReservedFieldNames
public void setUserReservedFieldNames(java.util.List<java.lang.String> reservedUserFieldNames)
addAttributeMapping
protected void addAttributeMapping(java.lang.String attributeName,
java.lang.String attributeValue,
javax.naming.directory.Attributes attributes)
addModificationItem
protected void addModificationItem(java.lang.String attributeName,
java.lang.String attributeValue,
com.liferay.portal.security.ldap.Modifications modifications)
getModifications
protected com.liferay.portal.security.ldap.Modifications getModifications(java.lang.Object object,
java.util.Properties objectMappings,
java.util.Map<java.lang.String,java.lang.String> reservedFieldNames)
populateCustomAttributeModifications
protected void populateCustomAttributeModifications(java.lang.Object object,
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge,
java.util.Map<java.lang.String,java.io.Serializable> expandoAttributes,
java.util.Properties expandoMappings,
com.liferay.portal.security.ldap.Modifications modifications)