@Transactional public class WorkDefinitionService extends AbstractPlatformSecurityService
Modifier and Type | Field and Description |
---|---|
protected AppEngineConfiguration |
appEngineConfiguration |
protected CoreAppRepositoryService |
appRepositoryService |
protected static Comparator<WorkDefinitionRepresentation> |
WORK_DEFINITION_REPRESENTATION_COMPARATOR |
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
Constructor and Description |
---|
WorkDefinitionService(AppEngineConfiguration appEngineConfiguration,
CoreAppRepositoryService appRepositoryService,
CmmnRepositoryService cmmnRepositoryService,
RepositoryService repositoryService) |
Modifier and Type | Method and 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) |
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, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
protected static final Comparator<WorkDefinitionRepresentation> WORK_DEFINITION_REPRESENTATION_COMPARATOR
protected CoreAppRepositoryService appRepositoryService
protected AppEngineConfiguration appEngineConfiguration
public WorkDefinitionService(AppEngineConfiguration appEngineConfiguration, CoreAppRepositoryService appRepositoryService, CmmnRepositoryService cmmnRepositoryService, RepositoryService repositoryService)
public List<WorkDefinitionRepresentation> getWorkDefinitions(Boolean includeDefinitionsWithoutApp, boolean includeTranslations)
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 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 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)
protected CoreAppModel getAppModelForDefinitionId(String appDefinitionId, Map<String,CoreAppModel> appModelMap)
protected static String comparingField(WorkDefinitionRepresentation representation)
protected Map<String,Map<String,String>> getDefinitionNameTranslations(CaseDefinition caseDefinition, boolean includeTranslations)