Class FlowableLdapAuthoritiesPopulator
- java.lang.Object
-
- com.flowable.core.spring.security.ldap.FlowableLdapAuthoritiesPopulator
-
- All Implemented Interfaces:
LdapAuthoritiesPopulator
public class FlowableLdapAuthoritiesPopulator extends Object implements LdapAuthoritiesPopulator
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected GrantedAuthority
defaultRole
protected LdapConfigurationApi
ldapConfiguration
protected org.slf4j.Logger
logger
protected UserDefinitionAuthoritiesProvider
userDefinitionAuthoritiesProvider
-
Constructor Summary
Constructors Constructor Description FlowableLdapAuthoritiesPopulator(LdapConfigurationApi ldapConfiguration, UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<GrantedAuthority>
getAdditionalRoles(DirContextOperations user, String username)
GrantedAuthority
getDefaultRole()
Collection<? extends GrantedAuthority>
getGrantedAuthorities(DirContextOperations userData, String username)
protected Set<GrantedAuthority>
getGroupMembershipRoles(DirContextOperations userData, String username)
LdapConfigurationApi
getLdapConfiguration()
UserDefinitionAuthoritiesProvider
getUserDefinitionAuthoritiesProvider()
protected Set<GrantedAuthority>
getUserRoles(DirContextOperations user, String username)
void
setDefaultRole(String defaultRole)
void
setDefaultRole(GrantedAuthority defaultRole)
void
setLdapConfiguration(LdapConfigurationApi ldapConfiguration)
void
setUserDefinitionAuthoritiesProvider(UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider)
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
ldapConfiguration
protected LdapConfigurationApi ldapConfiguration
-
userDefinitionAuthoritiesProvider
protected UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider
-
defaultRole
protected GrantedAuthority defaultRole
-
-
Constructor Detail
-
FlowableLdapAuthoritiesPopulator
public FlowableLdapAuthoritiesPopulator(LdapConfigurationApi ldapConfiguration, UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider)
-
-
Method Detail
-
getGrantedAuthorities
public Collection<? extends GrantedAuthority> getGrantedAuthorities(DirContextOperations userData, String username)
- Specified by:
getGrantedAuthorities
in interfaceLdapAuthoritiesPopulator
-
getGroupMembershipRoles
protected Set<GrantedAuthority> getGroupMembershipRoles(DirContextOperations userData, String username)
-
getUserRoles
protected Set<GrantedAuthority> getUserRoles(DirContextOperations user, String username)
-
getAdditionalRoles
protected Set<GrantedAuthority> getAdditionalRoles(DirContextOperations user, String username)
-
getLdapConfiguration
public LdapConfigurationApi getLdapConfiguration()
-
setLdapConfiguration
public void setLdapConfiguration(LdapConfigurationApi ldapConfiguration)
-
getUserDefinitionAuthoritiesProvider
public UserDefinitionAuthoritiesProvider getUserDefinitionAuthoritiesProvider()
-
setUserDefinitionAuthoritiesProvider
public void setUserDefinitionAuthoritiesProvider(UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider)
-
getDefaultRole
public GrantedAuthority getDefaultRole()
-
setDefaultRole
public void setDefaultRole(GrantedAuthority defaultRole)
-
setDefaultRole
public void setDefaultRole(String defaultRole)
-
-