Class WorkDefinitionService
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.service.work.WorkDefinitionService
- All Implemented Interfaces:
PermissionServiceRegistryAware
,Aware
-
Field Summary
Modifier and TypeFieldDescriptionprotected AppEngineConfiguration
protected CoreAppRepositoryService
protected static final Comparator<WorkDefinitionRepresentation>
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
ConstructorDescriptionWorkDefinitionService
(AppEngineConfiguration appEngineConfiguration, CoreAppRepositoryService appRepositoryService, CmmnRepositoryService cmmnRepositoryService, RepositoryService repositoryService) -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
comparingField
(WorkDefinitionRepresentation representation) protected CoreAppModel
getAppModelForDefinitionId
(String appDefinitionId, Map<String, CoreAppModel> appModelMap) getDefinitionNameTranslations
(CaseDefinition caseDefinition, boolean includeTranslations) getDefinitionNameTranslations
(ProcessDefinition processDefinition, boolean includeTranslations) getWorkDefinitions
(Boolean includeDefinitionsWithoutApp, boolean includeTranslations) protected void
handleMultiTenant
(String currentUserId, Collection<String> currentGroupKeys, boolean currentUserHasAdminRights, String currentTenantId, List<CaseDefinition> caseDefinitions, List<ProcessDefinition> processDefinitions, Map<String, AppDefinition> cmmnAppDefinitionMap, Map<String, AppDefinition> bpmnAppDefinitionMap) protected void
handleNonMultiTenant
(String currentUserId, Collection<String> currentGroupKeys, boolean currentUserHasAdminRights, List<CaseDefinition> caseDefinitions, List<ProcessDefinition> processDefinitions, Map<String, AppDefinition> cmmnAppDefinitionMap, Map<String, AppDefinition> bpmnAppDefinitionMap) protected List<WorkDefinitionRepresentation>
transformToWorkDefinitions
(Boolean includeDefinitionsWithoutApps, List<CaseDefinition> caseDefinitions, List<ProcessDefinition> processDefinitions, Map<String, AppDefinition> cmmnAppDefinitionMap, Map<String, AppDefinition> bpmnAppDefinitionMap, Map<String, CoreAppModel> appModelMap, boolean includeTranslations) 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
-
Field Details
-
WORK_DEFINITION_REPRESENTATION_COMPARATOR
protected static final Comparator<WorkDefinitionRepresentation> WORK_DEFINITION_REPRESENTATION_COMPARATOR -
appRepositoryService
-
appEngineConfiguration
-
-
Constructor Details
-
WorkDefinitionService
public WorkDefinitionService(AppEngineConfiguration appEngineConfiguration, CoreAppRepositoryService appRepositoryService, CmmnRepositoryService cmmnRepositoryService, RepositoryService repositoryService)
-
-
Method Details
-
getWorkDefinitions
public List<WorkDefinitionRepresentation> getWorkDefinitions(Boolean includeDefinitionsWithoutApp, boolean includeTranslations) -
handleNonMultiTenant
protected void handleNonMultiTenant(String currentUserId, Collection<String> currentGroupKeys, boolean currentUserHasAdminRights, List<CaseDefinition> caseDefinitions, List<ProcessDefinition> processDefinitions, Map<String, AppDefinition> cmmnAppDefinitionMap, Map<String, AppDefinition> bpmnAppDefinitionMap) -
handleMultiTenant
protected void handleMultiTenant(String currentUserId, Collection<String> currentGroupKeys, boolean currentUserHasAdminRights, String currentTenantId, List<CaseDefinition> caseDefinitions, List<ProcessDefinition> processDefinitions, Map<String, AppDefinition> cmmnAppDefinitionMap, Map<String, AppDefinition> bpmnAppDefinitionMap) -
transformToWorkDefinitions
protected List<WorkDefinitionRepresentation> transformToWorkDefinitions(Boolean includeDefinitionsWithoutApps, List<CaseDefinition> caseDefinitions, List<ProcessDefinition> processDefinitions, Map<String, AppDefinition> cmmnAppDefinitionMap, Map<String, AppDefinition> bpmnAppDefinitionMap, Map<String, CoreAppModel> appModelMap, boolean includeTranslations) -
getAppModelForDefinitionId
protected CoreAppModel getAppModelForDefinitionId(String appDefinitionId, Map<String, CoreAppModel> appModelMap) -
comparingField
-
getDefinitionNameTranslations
-
getDefinitionNameTranslations
-