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 UserDefinitionServiceuserDefinitionService -
Constructor Summary
Constructors Constructor Description UserDefinitionAuthoritiesProviderImpl(UserDefinitionService userDefinitionService) -
Method Summary
Modifier and Type Method Description protected org.springframework.security.core.GrantedAuthoritycreateAuthority(java.lang.String allowedFeature)java.util.Collection<? extends org.springframework.security.core.GrantedAuthority>findGrantedAuthorities(java.lang.String userDefinitionId)All the authorities for the givenuserDefinitionIdjava.util.Collection<? extends org.springframework.security.core.GrantedAuthority>findGrantedAuthorities(java.lang.String userDefinitionKey, java.lang.String tenantId)All the authorities for the givenuserDefinitionKeyin 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:UserDefinitionAuthoritiesProviderAll the authorities for the givenuserDefinitionId- Specified by:
findGrantedAuthoritiesin 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:UserDefinitionAuthoritiesProviderAll the authorities for the givenuserDefinitionKeyin the giventenantId- Specified by:
findGrantedAuthoritiesin 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)
-