public class UserDefinitionAuthoritiesProviderImpl extends Object implements UserDefinitionAuthoritiesProvider
Modifier and Type | Field and Description |
---|---|
protected UserDefinitionService |
userDefinitionService |
Constructor and Description |
---|
UserDefinitionAuthoritiesProviderImpl(UserDefinitionService userDefinitionService) |
Modifier and Type | Method and Description |
---|---|
protected GrantedAuthority |
createAuthority(String allowedFeature) |
Collection<? extends GrantedAuthority> |
findGrantedAuthorities(String userDefinitionId)
All the authorities for the given
userDefinitionId |
Collection<? extends GrantedAuthority> |
findGrantedAuthorities(String userDefinitionKey,
String tenantId)
All the authorities for the given
userDefinitionKey in the given tenantId |
protected final UserDefinitionService userDefinitionService
public UserDefinitionAuthoritiesProviderImpl(UserDefinitionService userDefinitionService)
public Collection<? extends GrantedAuthority> findGrantedAuthorities(String userDefinitionId)
UserDefinitionAuthoritiesProvider
userDefinitionId
findGrantedAuthorities
in interface UserDefinitionAuthoritiesProvider
userDefinitionId
- the id of the user definition for which we need to fetch authoritiesuserDefinitionId
public Collection<? extends GrantedAuthority> findGrantedAuthorities(String userDefinitionKey, String tenantId)
UserDefinitionAuthoritiesProvider
userDefinitionKey
in the given tenantId
findGrantedAuthorities
in interface UserDefinitionAuthoritiesProvider
userDefinitionKey
- the id of the user definition for which we need to fetch authoritiestenantId
- the tenant id in which the user definition should be locateduserDefinitionKey
protected GrantedAuthority createAuthority(String allowedFeature)