Liferay 6.1.2-ce-ga3

com.liferay.portal.security.ldap
Class DefaultPortalToLDAPConverter

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

public class DefaultPortalToLDAPConverter
extends Object
implements PortalToLDAPConverter


Constructor Summary
DefaultPortalToLDAPConverter()
           
 
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)
           
 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)
          Deprecated.  
 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
 

Constructor Detail

DefaultPortalToLDAPConverter

public DefaultPortalToLDAPConverter()
Method Detail

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)
                                        throws Exception
Deprecated. 

Specified by:
getLDAPGroupModifications 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)
                                      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)

Liferay 6.1.2-ce-ga3