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)
UserDefinitionAuthoritiesProvideruserDefinitionIdfindGrantedAuthorities in interface UserDefinitionAuthoritiesProvideruserDefinitionId - the id of the user definition for which we need to fetch authoritiesuserDefinitionIdpublic Collection<? extends GrantedAuthority> findGrantedAuthorities(String userDefinitionKey, String tenantId)
UserDefinitionAuthoritiesProvideruserDefinitionKey in the given tenantIdfindGrantedAuthorities in interface UserDefinitionAuthoritiesProvideruserDefinitionKey - the id of the user definition for which we need to fetch authoritiestenantId - the tenant id in which the user definition should be locateduserDefinitionKeyprotected GrantedAuthority createAuthority(String allowedFeature)