Class FlowablePrincipalSecurityScope
- java.lang.Object
-
- com.flowable.core.spring.security.FlowablePrincipalSecurityScope
-
- All Implemented Interfaces:
SecurityScope
public class FlowablePrincipalSecurityScope extends Object implements SecurityScope
- Author:
- Filip Hrisafov
-
-
Constructor Summary
Constructors Constructor Description FlowablePrincipalSecurityScope(Principal principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getGroupKeys()The group keys for which the security scope is meant forStringgetTenantId()The tenant id for which the security scope is meant forStringgetUserDefinitionKey()The user definition key for which the security scope is meant forStringgetUserId()The id of the user for which the security scope is meant forbooleanhasAuthority(String authority)Check if the security scope has the given authority.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.flowable.core.common.api.security.SecurityScope
getImpersonationScope
-
-
-
-
Field Detail
-
principal
protected final Principal principal
-
-
Constructor Detail
-
FlowablePrincipalSecurityScope
public FlowablePrincipalSecurityScope(Principal principal)
-
-
Method Detail
-
getUserId
public String getUserId()
Description copied from interface:SecurityScopeThe id of the user for which the security scope is meant for- Specified by:
getUserIdin interfaceSecurityScope- Returns:
- the user id
-
getGroupKeys
public Set<String> getGroupKeys()
Description copied from interface:SecurityScopeThe group keys for which the security scope is meant for- Specified by:
getGroupKeysin interfaceSecurityScope- Returns:
- the group keys
-
getTenantId
public String getTenantId()
Description copied from interface:SecurityScopeThe tenant id for which the security scope is meant for- Specified by:
getTenantIdin interfaceSecurityScope- Returns:
- the tenant id
-
getUserDefinitionKey
public String getUserDefinitionKey()
Description copied from interface:SecurityScopeThe user definition key for which the security scope is meant for- Specified by:
getUserDefinitionKeyin interfaceSecurityScope- Returns:
- the user definition key
-
hasAuthority
public boolean hasAuthority(String authority)
Description copied from interface:SecurityScopeCheck if the security scope has the given authority.- Specified by:
hasAuthorityin interfaceSecurityScope- Parameters:
authority- the authority to be checked- Returns:
trueif the security scope has the given authority,falseotherwise
-
-