Class CasePermissionServiceImpl
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.security.permission.CasePermissionServiceImpl
- All Implemented Interfaces:
CasePermissionService
,PermissionService
,PermissionServiceRegistryAware
,Aware
public class CasePermissionServiceImpl
extends AbstractPlatformSecurityService
implements CasePermissionService
-
Field Summary
Modifier and TypeFieldDescriptionprotected CmmnEngineConfiguration
protected CmmnHistoryService
protected PlatformIdentityService
protected final String
Fields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, EXTERNAL_WORKER_PREFIX, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkPermissionInCaseParent
(String casePermission, SecurityPolicyModel securityPolicyModel) fetchPermissionsForHistoricScope
(String scopeId, boolean checkWritePermissionInParent, String userId, Set<String> groupKeys, String tenantId) fetchPermissionsForHistoricScope
(String scopeId, String userId, Set<String> groupKeys, String tenantId) fetchPermissionsForRuntimeScope
(String scopeId, boolean checkWritePermissionInParent, String userId, Set<String> groupKeys, String tenantId) fetchPermissionsForRuntimeScope
(String scopeId, String userId, Set<String> groupKeys, String tenantId) protected CaseDefinition
findCaseDefinition
(String caseDefinitionId, String caseDefinitionKey, String tenantId) protected CaseDefinition
findCaseDefinitionTenantAware
(String caseDefinitionKey, String tenantId) getCaseInstance
(String caseInstanceId, String tenantId) getHistoricCaseInstance
(String caseInstanceId, String tenantId) getHistoricCasePermissions
(String caseInstanceId, String definitionId, List<? extends IdentityLinkInfo> identityLinks, String tenantId) getRuntimeCasePermissions
(String caseInstanceId, String definitionId, List<? extends IdentityLinkInfo> identityLinks, String tenantId) The scope type that this permissions service supports.protected SecurityPolicyModel
getSecurityModel
(String caseDefinitionId, String tenantId) protected boolean
hasPermission
(String permission, String startUserId, List<? extends IdentityLinkInfo> identityLinks, SecurityPolicyModel securityPolicyModel) protected boolean
hasPermissionForCaseInstance
(String permission, String caseInstanceId, boolean isHistoricInstance, String startUserId, List<? extends IdentityLinkInfo> identityLinks, String caseDefinitionId, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForCaseInstance
(String permission, CaseInstance caseInstance, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForHistoricCaseInstance
(String permission, HistoricCaseInstance caseInstance, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForHistoricScope
(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForRuntimeScope
(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForScope
(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) boolean
hasReadPermissionOnScopeDefinition
(String scopeDefinitionId, String scopeDefinitionKey, String userId, Set<String> groupKeys, String tenantId) boolean
hasReadPermissionOnScopeDefinitionTenantAware
(String scopeDefinitionKey, String userId, Set<String> groupKeys, String tenantId) translateParentPermissions
(List<String> parentPermissions, String scopeType) void
validateParticipantValue
(CaseInstance caseInstance, String participantCandidate) void
validatePermissionForCaseInstance
(String permission, CaseInstance caseInstance, String userId, Set<String> groupKeys, String tenantId) void
validatePermissionForHistoricCaseInstance
(String permission, HistoricCaseInstance caseInstance, String userId, Set<String> groupKeys, String tenantId) Methods inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
currentUserHasAdminRights, currentUserIsSuperAdmin, fetchCasePermissionMappings, fetchCasePermissionMappings, fetchCaseSecurityPolicyModel, fetchPermissions, fetchPermissionsForTask, fetchProcessPermissionMappings, fetchProcessPermissionMappings, fetchProcessSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModelForCaseInstance, fetchSecurityPolicyModelForProcessInstance, fetchSecurityPolicyModelForTask, fetchSecurityPolicyModelForTask, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappingsForCase, fetchTaskPermissionMappingsForProcess, fetchTaskSecurityPolicyModelForCase, fetchTaskSecurityPolicyModelForProcess, filterPermissionsForRole, getCmmnExtensionElementValue, getCurrentGroupKeys, getCurrentSecurityScope, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.platform.security.permission.PermissionService
validatePermissionForHistoricScope, validatePermissionForRuntimeScope, validatePermissionForScope, validatePermissionsForHistoricScope, validatePermissionsForRuntimeScope, validateReadPermissionOnScopeDefinition
-
Field Details
-
cmmnHistoryService
-
cmmnEngineConfiguration
-
identityService
-
participantCandidateGroups
-
-
Constructor Details
-
CasePermissionServiceImpl
-
-
Method Details
-
getScopeType
Description copied from interface:PermissionService
The scope type that this permissions service supports.- Specified by:
getScopeType
in interfacePermissionService
-
hasPermissionForScope
public boolean hasPermissionForScope(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForScope
in interfacePermissionService
-
validatePermissionForCaseInstance
public void validatePermissionForCaseInstance(String permission, CaseInstance caseInstance, String userId, Set<String> groupKeys, String tenantId) - Specified by:
validatePermissionForCaseInstance
in interfaceCasePermissionService
-
hasPermissionForCaseInstance
public boolean hasPermissionForCaseInstance(String permission, CaseInstance caseInstance, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForCaseInstance
in interfaceCasePermissionService
-
validatePermissionForHistoricCaseInstance
public void validatePermissionForHistoricCaseInstance(String permission, HistoricCaseInstance caseInstance, String userId, Set<String> groupKeys, String tenantId) - Specified by:
validatePermissionForHistoricCaseInstance
in interfaceCasePermissionService
-
hasPermissionForHistoricCaseInstance
public boolean hasPermissionForHistoricCaseInstance(String permission, HistoricCaseInstance caseInstance, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForHistoricCaseInstance
in interfaceCasePermissionService
-
hasPermissionForRuntimeScope
public boolean hasPermissionForRuntimeScope(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForRuntimeScope
in interfacePermissionService
-
fetchPermissionsForRuntimeScope
public List<String> fetchPermissionsForRuntimeScope(String scopeId, String userId, Set<String> groupKeys, String tenantId) - Specified by:
fetchPermissionsForRuntimeScope
in interfacePermissionService
-
fetchPermissionsForRuntimeScope
public List<String> fetchPermissionsForRuntimeScope(String scopeId, boolean checkWritePermissionInParent, String userId, Set<String> groupKeys, String tenantId) - Specified by:
fetchPermissionsForRuntimeScope
in interfacePermissionService
-
hasPermissionForHistoricScope
public boolean hasPermissionForHistoricScope(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForHistoricScope
in interfacePermissionService
-
fetchPermissionsForHistoricScope
public List<String> fetchPermissionsForHistoricScope(String scopeId, String userId, Set<String> groupKeys, String tenantId) - Specified by:
fetchPermissionsForHistoricScope
in interfacePermissionService
-
fetchPermissionsForHistoricScope
public List<String> fetchPermissionsForHistoricScope(String scopeId, boolean checkWritePermissionInParent, String userId, Set<String> groupKeys, String tenantId) - Specified by:
fetchPermissionsForHistoricScope
in interfacePermissionService
-
getRuntimeCasePermissions
public List<String> getRuntimeCasePermissions(String caseInstanceId, String definitionId, List<? extends IdentityLinkInfo> identityLinks, String tenantId) - Specified by:
getRuntimeCasePermissions
in interfaceCasePermissionService
-
getHistoricCasePermissions
public List<String> getHistoricCasePermissions(String caseInstanceId, String definitionId, List<? extends IdentityLinkInfo> identityLinks, String tenantId) - Specified by:
getHistoricCasePermissions
in interfaceCasePermissionService
-
hasReadPermissionOnScopeDefinition
public boolean hasReadPermissionOnScopeDefinition(String scopeDefinitionId, String scopeDefinitionKey, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasReadPermissionOnScopeDefinition
in interfacePermissionService
-
hasReadPermissionOnScopeDefinitionTenantAware
public boolean hasReadPermissionOnScopeDefinitionTenantAware(String scopeDefinitionKey, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasReadPermissionOnScopeDefinitionTenantAware
in interfaceCasePermissionService
-
getCaseInstance
- Specified by:
getCaseInstance
in interfaceCasePermissionService
-
getHistoricCaseInstance
- Specified by:
getHistoricCaseInstance
in interfaceCasePermissionService
-
hasPermissionForCaseInstance
-
hasPermission
protected boolean hasPermission(String permission, String startUserId, List<? extends IdentityLinkInfo> identityLinks, SecurityPolicyModel securityPolicyModel) -
getSecurityModel
-
findCaseDefinition
protected CaseDefinition findCaseDefinition(String caseDefinitionId, String caseDefinitionKey, String tenantId) -
findCaseDefinitionTenantAware
-
translateParentPermissions
-
checkPermissionInCaseParent
protected boolean checkPermissionInCaseParent(String casePermission, SecurityPolicyModel securityPolicyModel) -
validateParticipantValue
- Specified by:
validateParticipantValue
in interfaceCasePermissionService
-