com.liferay.portal.security.ldap
Class BasePortalToLDAPConverter

java.lang.Object
  extended by 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

Author:
Michael C. Han, Brian Wing Shun Chan, Marcellus Tavares, Wesley Gong

Constructor Summary
BasePortalToLDAPConverter()
           
 
Method Summary
protected  void addAttributeMapping(java.lang.String attributeName, java.lang.Object attributeValue, javax.naming.directory.Attributes attributes)
           
protected  void addAttributeMapping(java.lang.String attributeName, java.lang.String attributeValue, javax.naming.directory.Attributes attributes)
           
protected  void addModificationItem(javax.naming.directory.BasicAttribute basicAttribute, com.liferay.portal.security.ldap.Modifications modifications)
           
protected  void addModificationItem(java.lang.String attributeName, java.lang.String attributeValue, com.liferay.portal.security.ldap.Modifications modifications)
           
 java.lang.String getGroupDNName(long ldapServerId, com.liferay.portal.model.UserGroup userGroup, java.util.Properties groupMappings)
           
 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 getLDAPGroupAttributes(long ldapServerId, com.liferay.portal.model.UserGroup userGroup, com.liferay.portal.model.User user, java.util.Properties groupMappings, java.util.Properties userMappings)
           
 com.liferay.portal.security.ldap.Modifications getLDAPGroupModifications(long ldapServerId, com.liferay.portal.model.UserGroup userGroup, com.liferay.portal.model.User user, java.util.Properties groupMappings, java.util.Properties userMappings)
           
 javax.naming.directory.Attributes getLDAPUserAttributes(long ldapServerId, com.liferay.portal.model.User user, java.util.Properties userMappings)
           
 com.liferay.portal.security.ldap.Modifications getLDAPUserGroupModifications(long ldapServerId, java.util.List<com.liferay.portal.model.UserGroup> userGroups, 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  byte[] getUserPortrait(com.liferay.portal.model.User user)
           
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
 

Constructor Detail

BasePortalToLDAPConverter

public BasePortalToLDAPConverter()
Method Detail

getGroupDNName

public java.lang.String getGroupDNName(long ldapServerId,
                                       com.liferay.portal.model.UserGroup userGroup,
                                       java.util.Properties groupMappings)
                                throws java.lang.Exception
Specified by:
getGroupDNName in interface com.liferay.portal.security.ldap.PortalToLDAPConverter
Throws:
java.lang.Exception

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

getLDAPGroupAttributes

public javax.naming.directory.Attributes getLDAPGroupAttributes(long ldapServerId,
                                                                com.liferay.portal.model.UserGroup userGroup,
                                                                com.liferay.portal.model.User user,
                                                                java.util.Properties groupMappings,
                                                                java.util.Properties userMappings)
                                                         throws java.lang.Exception
Specified by:
getLDAPGroupAttributes in interface com.liferay.portal.security.ldap.PortalToLDAPConverter
Throws:
java.lang.Exception

getLDAPGroupModifications

public com.liferay.portal.security.ldap.Modifications getLDAPGroupModifications(long ldapServerId,
                                                                                com.liferay.portal.model.UserGroup userGroup,
                                                                                com.liferay.portal.model.User user,
                                                                                java.util.Properties groupMappings,
                                                                                java.util.Properties userMappings)
                                                                         throws java.lang.Exception
Specified by:
getLDAPGroupModifications 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

getLDAPUserGroupModifications

public com.liferay.portal.security.ldap.Modifications getLDAPUserGroupModifications(long ldapServerId,
                                                                                    java.util.List<com.liferay.portal.model.UserGroup> userGroups,
                                                                                    com.liferay.portal.model.User user,
                                                                                    java.util.Properties userMappings)
                                                                             throws java.lang.Exception
Specified by:
getLDAPUserGroupModifications in interface com.liferay.portal.security.ldap.PortalToLDAPConverter
Throws:
java.lang.Exception

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.Object attributeValue,
                                   javax.naming.directory.Attributes attributes)

addAttributeMapping

protected void addAttributeMapping(java.lang.String attributeName,
                                   java.lang.String attributeValue,
                                   javax.naming.directory.Attributes attributes)

addModificationItem

protected void addModificationItem(javax.naming.directory.BasicAttribute basicAttribute,
                                   com.liferay.portal.security.ldap.Modifications modifications)

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)

getUserPortrait

protected byte[] getUserPortrait(com.liferay.portal.model.User user)

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)