Class UserDefinitionAuthoritiesProviderImpl
java.lang.Object
com.flowable.core.spring.security.UserDefinitionAuthoritiesProviderImpl
- All Implemented Interfaces:
UserDefinitionAuthoritiesProvider
public class UserDefinitionAuthoritiesProviderImpl extends java.lang.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
Modifier and Type Method Description protected org.springframework.security.core.GrantedAuthority
createAuthority(java.lang.String allowedFeature)
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority>
findGrantedAuthorities(java.lang.String userDefinitionId)
All the authorities for the givenuserDefinitionId
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority>
findGrantedAuthorities(java.lang.String userDefinitionKey, java.lang.String tenantId)
All the authorities for the givenuserDefinitionKey
in the giventenantId
-
Field Details
-
Constructor Details
-
Method Details
-
findGrantedAuthorities
public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> findGrantedAuthorities(java.lang.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 java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> findGrantedAuthorities(java.lang.String userDefinitionKey, java.lang.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 org.springframework.security.core.GrantedAuthority createAuthority(java.lang.String allowedFeature)
-