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 SummaryFields Modifier and Type Field Description protected AppEngineConfigurationappEngineConfigurationprotected CoreAppRepositoryServiceappRepositoryServiceprotected static Comparator<WorkDefinitionRepresentation>WORK_DEFINITION_REPRESENTATION_COMPARATOR- 
Fields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityServiceadditionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
 
- 
 - 
Constructor SummaryConstructors Constructor Description WorkDefinitionService(AppEngineConfiguration appEngineConfiguration, CoreAppRepositoryService appRepositoryService, CmmnRepositoryService cmmnRepositoryService, RepositoryService repositoryService)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringcomparingField(WorkDefinitionRepresentation representation)protected CoreAppModelgetAppModelForDefinitionId(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 voidhandleMultiTenant(String currentUserId, Collection<String> currentGroupKeys, boolean currentUserHasAdminRights, String currentTenantId, List<CaseDefinition> caseDefinitions, List<ProcessDefinition> processDefinitions, Map<String,AppDefinition> cmmnAppDefinitionMap, Map<String,AppDefinition> bpmnAppDefinitionMap)protected voidhandleNonMultiTenant(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.AbstractPlatformSecurityServicecurrentUserHasAdminRights, 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_COMPARATORprotected static final Comparator<WorkDefinitionRepresentation> WORK_DEFINITION_REPRESENTATION_COMPARATOR 
 - 
appRepositoryServiceprotected CoreAppRepositoryService appRepositoryService 
 - 
appEngineConfigurationprotected AppEngineConfiguration appEngineConfiguration 
 
- 
 - 
Constructor Detail- 
WorkDefinitionServicepublic WorkDefinitionService(AppEngineConfiguration appEngineConfiguration, CoreAppRepositoryService appRepositoryService, CmmnRepositoryService cmmnRepositoryService, RepositoryService repositoryService) 
 
- 
 - 
Method Detail- 
getWorkDefinitionspublic List<WorkDefinitionRepresentation> getWorkDefinitions(Boolean includeDefinitionsWithoutApp, boolean includeTranslations) 
 - 
handleNonMultiTenantprotected void handleNonMultiTenant(String currentUserId, Collection<String> currentGroupKeys, boolean currentUserHasAdminRights, List<CaseDefinition> caseDefinitions, List<ProcessDefinition> processDefinitions, Map<String,AppDefinition> cmmnAppDefinitionMap, Map<String,AppDefinition> bpmnAppDefinitionMap) 
 - 
handleMultiTenantprotected 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) 
 - 
transformToWorkDefinitionsprotected 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) 
 - 
getAppModelForDefinitionIdprotected CoreAppModel getAppModelForDefinitionId(String appDefinitionId, Map<String,CoreAppModel> appModelMap) 
 - 
comparingFieldprotected static String comparingField(WorkDefinitionRepresentation representation) 
 - 
getDefinitionNameTranslationsprotected Map<String,Map<String,String>> getDefinitionNameTranslations(CaseDefinition caseDefinition, boolean includeTranslations) 
 
- 
 
-