@Service @Transactional public class PermissionService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.flowable.cmmn.api.CmmnHistoryService |
cmmnHistoryService |
protected HistoryService |
historyService |
protected RepositoryService |
repositoryService |
protected RuntimeService |
runtimeService |
protected TaskService |
taskService |
| Constructor and Description |
|---|
PermissionService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAddRelatedContentToCase(SecurityScope user,
String caseId) |
boolean |
canAddRelatedContentToProcessInstance(SecurityScope user,
String processInstanceId) |
boolean |
canAddRelatedContentToTask(SecurityScope user,
String taskId) |
boolean |
canDeleteProcessInstance(SecurityScope currentUser,
HistoricProcessInstance processInstance) |
boolean |
canDownloadContent(SecurityScope currentUserObject,
ContentItem content) |
boolean |
canStartProcess(SecurityScope user,
ProcessDefinition definition) |
protected List<String> |
getPotentialStarterGroupIds(List<org.flowable.identitylink.api.IdentityLink> identityLinks) |
protected List<String> |
getPotentialStarterUserIds(List<org.flowable.identitylink.api.IdentityLink> identityLinks) |
boolean |
hasReadPermissionOnCase(SecurityScope user,
String caseId)
Check if the given user is allowed to read the Case.
|
boolean |
hasReadPermissionOnCaseInstance(SecurityScope user,
org.flowable.cmmn.api.history.HistoricCaseInstance historicCaseInstance,
String caseInstanceId)
Check if the given user is allowed to read the process instance.
|
boolean |
hasReadPermissionOnProcessInstance(SecurityScope user,
HistoricProcessInstance historicProcessInstance,
String processInstanceId)
Check if the given user is allowed to read the process instance.
|
boolean |
hasReadPermissionOnProcessInstance(SecurityScope user,
String processInstanceId)
Check if the given user is allowed to read the process instance.
|
boolean |
hasWritePermissionOnRelatedContent(SecurityScope user,
ContentItem content) |
boolean |
isInvolved(SecurityScope user,
String taskId) |
boolean |
isTaskOwnerOrAssignee(SecurityScope user,
String taskId) |
boolean |
isTaskOwnerOrAssignee(SecurityScope user,
org.flowable.task.api.Task task) |
boolean |
validateIfUserIsInitiatorAndCanCompleteTask(SecurityScope user,
org.flowable.task.api.Task task) |
org.flowable.task.api.history.HistoricTaskInstance |
validateReadPermissionOnTask(SecurityScope user,
String taskId)
Check if the given user is allowed to read the task.
|
@Autowired protected TaskService taskService
@Autowired protected RuntimeService runtimeService
@Autowired protected RepositoryService repositoryService
@Autowired protected HistoryService historyService
@Autowired protected org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService
public org.flowable.task.api.history.HistoricTaskInstance validateReadPermissionOnTask(SecurityScope user, String taskId)
public boolean isTaskOwnerOrAssignee(SecurityScope user, String taskId)
public boolean isTaskOwnerOrAssignee(SecurityScope user, org.flowable.task.api.Task task)
public boolean validateIfUserIsInitiatorAndCanCompleteTask(SecurityScope user, org.flowable.task.api.Task task)
public boolean isInvolved(SecurityScope user, String taskId)
public boolean hasReadPermissionOnProcessInstance(SecurityScope user, String processInstanceId)
public boolean hasReadPermissionOnCase(SecurityScope user, String caseId)
public boolean hasReadPermissionOnProcessInstance(SecurityScope user, HistoricProcessInstance historicProcessInstance, String processInstanceId)
public boolean hasReadPermissionOnCaseInstance(SecurityScope user, org.flowable.cmmn.api.history.HistoricCaseInstance historicCaseInstance, String caseInstanceId)
public boolean canAddRelatedContentToTask(SecurityScope user, String taskId)
public boolean canAddRelatedContentToProcessInstance(SecurityScope user, String processInstanceId)
public boolean canAddRelatedContentToCase(SecurityScope user, String caseId)
public boolean canDownloadContent(SecurityScope currentUserObject, ContentItem content)
public boolean hasWritePermissionOnRelatedContent(SecurityScope user, ContentItem content)
public boolean canDeleteProcessInstance(SecurityScope currentUser, HistoricProcessInstance processInstance)
public boolean canStartProcess(SecurityScope user, ProcessDefinition definition)
protected List<String> getPotentialStarterGroupIds(List<org.flowable.identitylink.api.IdentityLink> identityLinks)
Copyright © 2021 Flowable. All rights reserved.