Class ProcessPermissionServiceImpl
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.security.permission.ProcessPermissionServiceImpl
- All Implemented Interfaces:
PermissionService
,PermissionServiceRegistryAware
,ProcessPermissionService
,Aware
public class ProcessPermissionServiceImpl
extends AbstractPlatformSecurityService
implements ProcessPermissionService
-
Field Summary
Modifier and TypeFieldDescriptionprotected HistoryService
protected PlatformIdentityService
protected final String
protected ProcessEngineConfiguration
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
checkPermissionInProcessParent
(String processPermission, 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 ProcessDefinition
findProcessDefinition
(String processDefinitionId, String processDefinitionKey, String tenantId) protected ProcessDefinition
findProcessDefinitionTenantAware
(String processDefinitionKey, String tenantId) getHistoricProcessInstance
(String processInstanceId, String tenantId) getHistoricProcessPermissions
(String processInstanceId, String definitionId, List<? extends IdentityLinkInfo> identityLinks, String tenantId) getProcessInstance
(String processInstanceId, String tenantId) getRuntimeProcessPermissions
(String processInstanceId, String definitionId, List<? extends IdentityLinkInfo> identityLinks, String tenantId) The scope type that this permissions service supports.protected SecurityPolicyModel
getSecurityModel
(String processDefinitionId, String tenantId) protected boolean
hasPermission
(String permission, String startUserId, List<? extends IdentityLinkInfo> identityLinks, SecurityPolicyModel securityPolicyModel) boolean
hasPermissionForHistoricProcessInstance
(String permission, HistoricProcessInstance processInstance, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForHistoricScope
(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) protected boolean
hasPermissionForProcessInstance
(String permission, String processInstanceId, boolean isHistoricInstance, String startUserId, List<? extends IdentityLinkInfo> identityLinks, String processDefinitionId, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForProcessInstance
(String permission, ProcessInstance processInstance, 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
(ProcessInstance processInstance, String participantCandidate) void
validatePermissionForHistoricProcessInstance
(String permission, HistoricProcessInstance processInstance, String userId, Set<String> groupKeys, String tenantId) void
validatePermissionForProcessInstance
(String permission, ProcessInstance processInstance, 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
-
historyService
-
processEngineConfiguration
-
identityService
-
participantCandidateGroups
-
-
Constructor Details
-
ProcessPermissionServiceImpl
-
-
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
-
validatePermissionForProcessInstance
public void validatePermissionForProcessInstance(String permission, ProcessInstance processInstance, String userId, Set<String> groupKeys, String tenantId) - Specified by:
validatePermissionForProcessInstance
in interfaceProcessPermissionService
-
hasPermissionForProcessInstance
public boolean hasPermissionForProcessInstance(String permission, ProcessInstance processInstance, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForProcessInstance
in interfaceProcessPermissionService
-
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
-
validatePermissionForHistoricProcessInstance
public void validatePermissionForHistoricProcessInstance(String permission, HistoricProcessInstance processInstance, String userId, Set<String> groupKeys, String tenantId) - Specified by:
validatePermissionForHistoricProcessInstance
in interfaceProcessPermissionService
-
hasPermissionForHistoricProcessInstance
public boolean hasPermissionForHistoricProcessInstance(String permission, HistoricProcessInstance processInstance, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForHistoricProcessInstance
in interfaceProcessPermissionService
-
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
-
hasPermissionForRuntimeScope
public boolean hasPermissionForRuntimeScope(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForRuntimeScope
in interfacePermissionService
-
hasPermissionForHistoricScope
public boolean hasPermissionForHistoricScope(String permission, String scopeId, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForHistoricScope
in interfacePermissionService
-
getRuntimeProcessPermissions
public List<String> getRuntimeProcessPermissions(String processInstanceId, String definitionId, List<? extends IdentityLinkInfo> identityLinks, String tenantId) - Specified by:
getRuntimeProcessPermissions
in interfaceProcessPermissionService
-
getHistoricProcessPermissions
public List<String> getHistoricProcessPermissions(String processInstanceId, String definitionId, List<? extends IdentityLinkInfo> identityLinks, String tenantId) - Specified by:
getHistoricProcessPermissions
in interfaceProcessPermissionService
-
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 interfaceProcessPermissionService
-
getProcessInstance
- Specified by:
getProcessInstance
in interfaceProcessPermissionService
-
getHistoricProcessInstance
public HistoricProcessInstance getHistoricProcessInstance(String processInstanceId, String tenantId) - Specified by:
getHistoricProcessInstance
in interfaceProcessPermissionService
-
hasPermissionForProcessInstance
-
validateParticipantValue
- Specified by:
validateParticipantValue
in interfaceProcessPermissionService
-
hasPermission
protected boolean hasPermission(String permission, String startUserId, List<? extends IdentityLinkInfo> identityLinks, SecurityPolicyModel securityPolicyModel) -
getSecurityModel
-
findProcessDefinition
protected ProcessDefinition findProcessDefinition(String processDefinitionId, String processDefinitionKey, String tenantId) -
findProcessDefinitionTenantAware
protected ProcessDefinition findProcessDefinitionTenantAware(String processDefinitionKey, String tenantId) -
translateParentPermissions
-
checkPermissionInProcessParent
protected boolean checkPermissionInProcessParent(String processPermission, SecurityPolicyModel securityPolicyModel)
-