public class PlatformUserAttributesMapper extends Object implements AttributesMapper<PlatformUser>
Modifier and Type | Field and Description |
---|---|
protected LdapUserTenantIdProvider |
tenantIdProvider |
protected LdapUserDefinitionKeyProvider |
userDefinitionKeyProvider |
protected LdapUserProperties |
userProperties |
Constructor and Description |
---|
PlatformUserAttributesMapper(LdapUserProperties userProperties) |
PlatformUserAttributesMapper(LdapUserProperties userProperties,
LdapUserTenantIdProvider tenantIdProvider,
LdapUserDefinitionKeyProvider userDefinitionKeyProvider) |
Modifier and Type | Method and 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) |
protected LdapUserProperties userProperties
protected LdapUserTenantIdProvider tenantIdProvider
protected LdapUserDefinitionKeyProvider userDefinitionKeyProvider
public PlatformUserAttributesMapper(LdapUserProperties userProperties)
public PlatformUserAttributesMapper(LdapUserProperties userProperties, LdapUserTenantIdProvider tenantIdProvider, LdapUserDefinitionKeyProvider userDefinitionKeyProvider)
public LdapPlatformUser mapFromAttributes(Attributes attributes) throws NamingException
mapFromAttributes
in interface AttributesMapper<PlatformUser>
NamingException
protected String getDisplayName(Attributes attributes)
protected String getTenantId(Attributes attributes)
protected String getUserDefinitionKey(Attributes attributes)
protected PlatformIdentityInfo info(String name, String value, PlatformUser user)
public LdapUserProperties getUserProperties()
public void setUserProperties(LdapUserProperties userProperties)
public LdapUserTenantIdProvider getTenantIdProvider()
public void setTenantIdProvider(LdapUserTenantIdProvider tenantIdProvider)
public LdapUserDefinitionKeyProvider getUserDefinitionKeyProvider()
public void setUserDefinitionKeyProvider(LdapUserDefinitionKeyProvider userDefinitionKeyProvider)