Package com.flowable.idm.engine.ldap
Class PlatformUserAttributesMapper
- java.lang.Object
-
- com.flowable.idm.engine.ldap.PlatformUserAttributesMapper
-
- All Implemented Interfaces:
AttributesMapper<PlatformUser>
public class PlatformUserAttributesMapper extends Object implements AttributesMapper<PlatformUser>
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
protected LdapUserTenantIdProvider
tenantIdProvider
protected LdapUserDefinitionKeyProvider
userDefinitionKeyProvider
protected LdapUserProperties
userProperties
-
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 String
getDisplayName(Attributes attributes)
protected String
getTenantId(Attributes attributes)
LdapUserTenantIdProvider
getTenantIdProvider()
protected String
getUserDefinitionKey(Attributes attributes)
LdapUserDefinitionKeyProvider
getUserDefinitionKeyProvider()
LdapUserProperties
getUserProperties()
protected PlatformIdentityInfo
info(String name, String value, PlatformUser user)
LdapPlatformUser
mapFromAttributes(Attributes attributes)
void
setTenantIdProvider(LdapUserTenantIdProvider tenantIdProvider)
void
setUserDefinitionKeyProvider(LdapUserDefinitionKeyProvider userDefinitionKeyProvider)
void
setUserProperties(LdapUserProperties userProperties)
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
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(Attributes attributes) throws NamingException
- Specified by:
mapFromAttributes
in interfaceAttributesMapper<PlatformUser>
- Throws:
NamingException
-
getDisplayName
protected String getDisplayName(Attributes attributes)
-
getTenantId
protected String getTenantId(Attributes attributes)
-
getUserDefinitionKey
protected String getUserDefinitionKey(Attributes attributes)
-
info
protected PlatformIdentityInfo info(String name, 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)
-
-