Package com.flowable.idm.engine.ldap
Class PlatformUserAttributesMapper
- java.lang.Object
-
- com.flowable.idm.engine.ldap.PlatformUserAttributesMapper
-
- All Implemented Interfaces:
org.springframework.ldap.core.AttributesMapper<PlatformUser>
public class PlatformUserAttributesMapper extends java.lang.Object implements org.springframework.ldap.core.AttributesMapper<PlatformUser>
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected LdapUserTenantIdProvidertenantIdProviderprotected LdapUserDefinitionKeyProvideruserDefinitionKeyProviderprotected LdapUserPropertiesuserProperties
-
Constructor Summary
Constructors Constructor Description PlatformUserAttributesMapper(LdapUserProperties userProperties)PlatformUserAttributesMapper(LdapUserProperties userProperties, LdapUserTenantIdProvider tenantIdProvider, LdapUserDefinitionKeyProvider userDefinitionKeyProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetDisplayName(javax.naming.directory.Attributes attributes)protected java.lang.StringgetTenantId(javax.naming.directory.Attributes attributes)LdapUserTenantIdProvidergetTenantIdProvider()protected java.lang.StringgetUserDefinitionKey(javax.naming.directory.Attributes attributes)LdapUserDefinitionKeyProvidergetUserDefinitionKeyProvider()LdapUserPropertiesgetUserProperties()protected PlatformIdentityInfoinfo(java.lang.String name, java.lang.String value, PlatformUser user)LdapPlatformUsermapFromAttributes(javax.naming.directory.Attributes attributes)voidsetTenantIdProvider(LdapUserTenantIdProvider tenantIdProvider)voidsetUserDefinitionKeyProvider(LdapUserDefinitionKeyProvider userDefinitionKeyProvider)voidsetUserProperties(LdapUserProperties userProperties)
-
-
-
Field Detail
-
userProperties
protected LdapUserProperties userProperties
-
tenantIdProvider
protected LdapUserTenantIdProvider tenantIdProvider
-
userDefinitionKeyProvider
protected LdapUserDefinitionKeyProvider userDefinitionKeyProvider
-
-
Constructor Detail
-
PlatformUserAttributesMapper
public PlatformUserAttributesMapper(LdapUserProperties userProperties)
-
PlatformUserAttributesMapper
public PlatformUserAttributesMapper(LdapUserProperties userProperties, LdapUserTenantIdProvider tenantIdProvider, LdapUserDefinitionKeyProvider userDefinitionKeyProvider)
-
-
Method Detail
-
mapFromAttributes
public LdapPlatformUser mapFromAttributes(javax.naming.directory.Attributes attributes) throws javax.naming.NamingException
- Specified by:
mapFromAttributesin interfaceorg.springframework.ldap.core.AttributesMapper<PlatformUser>- Throws:
javax.naming.NamingException
-
getDisplayName
protected java.lang.String getDisplayName(javax.naming.directory.Attributes attributes)
-
getTenantId
protected java.lang.String getTenantId(javax.naming.directory.Attributes attributes)
-
getUserDefinitionKey
protected java.lang.String getUserDefinitionKey(javax.naming.directory.Attributes attributes)
-
info
protected PlatformIdentityInfo info(java.lang.String name, java.lang.String value, PlatformUser user)
-
getUserProperties
public LdapUserProperties getUserProperties()
-
setUserProperties
public void setUserProperties(LdapUserProperties userProperties)
-
getTenantIdProvider
public LdapUserTenantIdProvider getTenantIdProvider()
-
setTenantIdProvider
public void setTenantIdProvider(LdapUserTenantIdProvider tenantIdProvider)
-
getUserDefinitionKeyProvider
public LdapUserDefinitionKeyProvider getUserDefinitionKeyProvider()
-
setUserDefinitionKeyProvider
public void setUserDefinitionKeyProvider(LdapUserDefinitionKeyProvider userDefinitionKeyProvider)
-
-