com.liferay.portal.security.ldap
Class BasePortalToLDAPConverter
java.lang.Object
com.liferay.portal.security.ldap.BasePortalToLDAPConverter
- All Implemented Interfaces:
- PortalToLDAPConverter
public class BasePortalToLDAPConverter
- extends Object
- implements PortalToLDAPConverter
Method Summary |
protected void |
addAttributeMapping(String attributeName,
String attributeValue,
Attributes attributes)
|
protected void |
addModificationItem(String attributeName,
String attributeValue,
Modifications modifications)
|
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)
|
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 |
BasePortalToLDAPConverter
public BasePortalToLDAPConverter()
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
- 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
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)