Class WorkDefinitionService
- java.lang.Object
-
- com.flowable.platform.security.service.AbstractPlatformSecurityService
-
- com.flowable.platform.service.work.WorkDefinitionService
-
- All Implemented Interfaces:
PermissionServiceRegistryAware
,Aware
@Transactional public class WorkDefinitionService extends AbstractPlatformSecurityService
-
-
Field Summary
Fields Modifier and Type Field Description protected AppEngineConfiguration
appEngineConfiguration
protected CoreAppRepositoryService
appRepositoryService
protected static Comparator<WorkDefinitionRepresentation>
WORK_DEFINITION_REPRESENTATION_COMPARATOR
-
Fields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
-
-
Constructor Summary
Constructors Constructor Description WorkDefinitionService(AppEngineConfiguration appEngineConfiguration, CoreAppRepositoryService appRepositoryService, CmmnRepositoryService cmmnRepositoryService, RepositoryService repositoryService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static String
comparingField(WorkDefinitionRepresentation representation)
protected CoreAppModel
getAppModelForDefinitionId(String appDefinitionId, Map<String,CoreAppModel> appModelMap)
protected Map<String,Map<String,String>>
getDefinitionNameTranslations(CaseDefinition caseDefinition, boolean includeTranslations)
protected Map<String,Map<String,String>>
getDefinitionNameTranslations(ProcessDefinition processDefinition, boolean includeTranslations)
List<WorkDefinitionRepresentation>
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 Detail
-
WORK_DEFINITION_REPRESENTATION_COMPARATOR
protected static final Comparator<WorkDefinitionRepresentation> WORK_DEFINITION_REPRESENTATION_COMPARATOR
-
appRepositoryService
protected CoreAppRepositoryService appRepositoryService
-
appEngineConfiguration
protected AppEngineConfiguration appEngineConfiguration
-
-
Constructor Detail
-
WorkDefinitionService
public WorkDefinitionService(AppEngineConfiguration appEngineConfiguration, CoreAppRepositoryService appRepositoryService, CmmnRepositoryService cmmnRepositoryService, RepositoryService repositoryService)
-
-
Method Detail
-
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
protected static String comparingField(WorkDefinitionRepresentation representation)
-
getDefinitionNameTranslations
protected Map<String,Map<String,String>> getDefinitionNameTranslations(CaseDefinition caseDefinition, boolean includeTranslations)
-
-