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
-
Constructor Summary
ConstructorDescriptionUserDefinitionAuthoritiesProviderImpl
(UserDefinitionService userDefinitionService) UserDefinitionAuthoritiesProviderImpl
(UserDefinitionService userDefinitionService, boolean includeUserDefinitionMemberGroups) -
Method Summary
Modifier and TypeMethodDescriptionprotected GrantedAuthority
createAuthority
(String allowedFeature) protected Collection<? extends GrantedAuthority>
extractGrantedAuthorities
(UserDefinitionModel userDefinitionModel) protected Collection<? extends GrantedAuthority>
extractGrantedAuthorities
(Collection<String> values, Function<String, GrantedAuthority> authorityMapper) 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 Details
-
userDefinitionService
-
includeUserDefinitionMemberGroups
protected final boolean includeUserDefinitionMemberGroups
-
-
Constructor Details
-
UserDefinitionAuthoritiesProviderImpl
-
UserDefinitionAuthoritiesProviderImpl
public UserDefinitionAuthoritiesProviderImpl(UserDefinitionService userDefinitionService, boolean includeUserDefinitionMemberGroups)
-
-
Method Details
-
findGrantedAuthorities
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
-
extractGrantedAuthorities
protected Collection<? extends GrantedAuthority> extractGrantedAuthorities(UserDefinitionModel userDefinitionModel) -
extractGrantedAuthorities
protected Collection<? extends GrantedAuthority> extractGrantedAuthorities(Collection<String> values, Function<String, GrantedAuthority> authorityMapper) -
createAuthority
-