Class ExternalWorkerJobPermissionService
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.security.permission.ExternalWorkerJobPermissionService
- All Implemented Interfaces:
PermissionService
,PermissionServiceRegistryAware
,Aware
public class ExternalWorkerJobPermissionService
extends AbstractPlatformSecurityService
implements PermissionService
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected CmmnEngineConfiguration
protected CmmnManagementService
protected ManagementService
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 ExternalWorkerJobQuery
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 Collection<? extends IdentityLinkInfo>
The scope type that this permissions service supports.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) void
setCmmnEngineConfiguration
(CmmnEngineConfiguration cmmnEngineConfiguration) void
setCmmnManagementService
(CmmnManagementService cmmnManagementService) void
setManagementService
(ManagementService managementService) 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
-
managementService
-
cmmnManagementService
-
cmmnEngineConfiguration
-
-
Constructor Details
-
ExternalWorkerJobPermissionService
public ExternalWorkerJobPermissionService()
-
-
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
-
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
-
hasReadPermissionOnScopeDefinition
public boolean hasReadPermissionOnScopeDefinition(String scopeDefinitionId, String scopeDefinitionKey, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasReadPermissionOnScopeDefinition
in interfacePermissionService
-
createExternalWorkerJobQuery
-
findJobIdentityLinks
-
setManagementService
-
setCmmnManagementService
@Autowired(required=false) public void setCmmnManagementService(CmmnManagementService cmmnManagementService) -
setCmmnEngineConfiguration
@Autowired(required=false) public void setCmmnEngineConfiguration(CmmnEngineConfiguration cmmnEngineConfiguration)
-