Class UserDefinitionAuthoritiesProviderImpl
- java.lang.Object
-
- com.flowable.core.spring.security.UserDefinitionAuthoritiesProviderImpl
-
- All Implemented Interfaces:
UserDefinitionAuthoritiesProvider
public class UserDefinitionAuthoritiesProviderImpl extends Object implements UserDefinitionAuthoritiesProvider
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected UserDefinitionService
userDefinitionService
-
Constructor Summary
Constructors Constructor Description UserDefinitionAuthoritiesProviderImpl(UserDefinitionService userDefinitionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GrantedAuthority
createAuthority(String allowedFeature)
Collection<? extends GrantedAuthority>
findGrantedAuthorities(String userDefinitionId)
All the authorities for the givenuserDefinitionId
Collection<? extends GrantedAuthority>
findGrantedAuthorities(String userDefinitionKey, String tenantId)
All the authorities for the givenuserDefinitionKey
in the giventenantId
-
-
-
Field Detail
-
userDefinitionService
protected final UserDefinitionService userDefinitionService
-
-
Constructor Detail
-
UserDefinitionAuthoritiesProviderImpl
public UserDefinitionAuthoritiesProviderImpl(UserDefinitionService userDefinitionService)
-
-
Method Detail
-
findGrantedAuthorities
public Collection<? extends GrantedAuthority> findGrantedAuthorities(String userDefinitionId)
Description copied from interface:UserDefinitionAuthoritiesProvider
All the authorities for the givenuserDefinitionId
- Specified by:
findGrantedAuthorities
in interfaceUserDefinitionAuthoritiesProvider
- Parameters:
userDefinitionId
- the id of the user definition for which we need to fetch authorities- Returns:
- the granted authorities for the given
userDefinitionId
-
findGrantedAuthorities
public Collection<? extends GrantedAuthority> findGrantedAuthorities(String userDefinitionKey, String tenantId)
Description copied from interface:UserDefinitionAuthoritiesProvider
All the authorities for the givenuserDefinitionKey
in the giventenantId
- Specified by:
findGrantedAuthorities
in interfaceUserDefinitionAuthoritiesProvider
- Parameters:
userDefinitionKey
- the id of the user definition for which we need to fetch authoritiestenantId
- the tenant id in which the user definition should be located- Returns:
- the granted authorities for the given
userDefinitionKey
-
createAuthority
protected GrantedAuthority createAuthority(String allowedFeature)
-
-