Liferay 6.0.4

com.liferay.portal.security.ldap
Class BasePortalToLDAPConverter

java.lang.Object
  extended by com.liferay.portal.security.ldap.BasePortalToLDAPConverter
All Implemented Interfaces:
PortalToLDAPConverter

public class BasePortalToLDAPConverter
extends Object
implements PortalToLDAPConverter


Constructor Summary
BasePortalToLDAPConverter()
           
 
Method Summary
protected  void addAttributeMapping(String attributeName, String attributeValue, Attributes attributes)
           
protected  void addModificationItem(String attributeName, String attributeValue, Modifications modifications)
           
 Modifications getLDAPContactModifications(Contact contact, Map<String,Serializable> contactExpandoAttributes, Properties contactMappings, Properties contactExpandoMappings)
           
 Attributes getLDAPUserAttributes(long ldapServerId, 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  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
 

Constructor Detail

BasePortalToLDAPConverter

public BasePortalToLDAPConverter()
Method Detail

getLDAPContactModifications

public Modifications getLDAPContactModifications(Contact contact,
                                                 Map<String,Serializable> contactExpandoAttributes,
                                                 Properties contactMappings,
                                                 Properties contactExpandoMappings)
                                          throws Exception
Specified by:
getLDAPContactModifications 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

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,
                                   String attributeValue,
                                   Attributes attributes)

addModificationItem

protected void addModificationItem(String attributeName,
                                   String attributeValue,
                                   Modifications modifications)

getModifications

protected Modifications getModifications(Object object,
                                         Properties objectMappings,
                                         Map<String,String> reservedFieldNames)

populateCustomAttributeModifications

protected void populateCustomAttributeModifications(Object object,
                                                    ExpandoBridge expandoBridge,
                                                    Map<String,Serializable> expandoAttributes,
                                                    Properties expandoMappings,
                                                    Modifications modifications)

Liferay 6.0.4