public interface ResourceAuthorizationProvider
Manages (create/update/delete) default authorization when an entity is changed
Implementations should throw an exception when a specific resource's id is *, as
* represents access to all resources/by all users.
| Modifier and Type | Method and Description |
|---|---|
AuthorizationEntity[] |
deleteTaskGroupIdentityLink(Task task,
String groupId,
String type)
Invoked whenever a group identity link of a task has been deleted.
|
AuthorizationEntity[] |
deleteTaskUserIdentityLink(Task task,
String userId,
String type)
Invoked whenever a user identity link of a task has been deleted.
|
AuthorizationEntity[] |
groupMembershipCreated(String groupId,
String userId)
Invoked whenever a user is added to a group
|
AuthorizationEntity[] |
newDecisionDefinition(DecisionDefinition decisionDefinition)
Invoked whenever a new decision definition is created.
|
AuthorizationEntity[] |
newDecisionRequirementsDefinition(DecisionRequirementsDefinition decisionRequirementsDefinition)
Invoked whenever a new decision requirements definition is created.
|
AuthorizationEntity[] |
newDeployment(Deployment deployment)
Invoked whenever a new deployment is created
|
AuthorizationEntity[] |
newFilter(Filter filter)
Invoked whenever a new filter is created
|
AuthorizationEntity[] |
newGroup(Group group)
Invoked whenever a new group is created
|
AuthorizationEntity[] |
newProcessDefinition(ProcessDefinition processDefinition)
Invoked whenever a new process definition is created
|
AuthorizationEntity[] |
newProcessInstance(ProcessInstance processInstance)
Invoked whenever a new process instance is started
|
AuthorizationEntity[] |
newTask(Task task)
Invoked whenever a new task is created
|
AuthorizationEntity[] |
newTaskAssignee(Task task,
String oldAssignee,
String newAssignee)
Invoked whenever an user has been assigned to a task.
|
AuthorizationEntity[] |
newTaskGroupIdentityLink(Task task,
String groupId,
String type)
Invoked whenever a new group identity link has been added to a task.
|
AuthorizationEntity[] |
newTaskOwner(Task task,
String oldOwner,
String newOwner)
Invoked whenever an user has been set as the owner of a task.
|
AuthorizationEntity[] |
newTaskUserIdentityLink(Task task,
String userId,
String type)
Invoked whenever a new user identity link has been added to a task.
|
AuthorizationEntity[] |
newTenant(Tenant tenant)
Invoked whenever a new tenant is created
|
AuthorizationEntity[] |
newUser(User user)
Invoked whenever a new user is created
|
AuthorizationEntity[] |
tenantMembershipCreated(Tenant tenant,
Group group)
Invoked whenever a group is added to a tenant.
|
AuthorizationEntity[] |
tenantMembershipCreated(Tenant tenant,
User user)
Invoked whenever an user is added to a tenant.
|
AuthorizationEntity[] newUser(User user)
Invoked whenever a new user is created
user - a newly created userAuthorizationEntity[] newGroup(Group group)
Invoked whenever a new group is created
AuthorizationEntity[] newTenant(Tenant tenant)
Invoked whenever a new tenant is created
AuthorizationEntity[] groupMembershipCreated(String groupId, String userId)
Invoked whenever a user is added to a group
AuthorizationEntity[] tenantMembershipCreated(Tenant tenant, User user)
Invoked whenever an user is added to a tenant.
tenant - the id of the tenantuserId - the id of the userAuthorizationEntity[] tenantMembershipCreated(Tenant tenant, Group group)
Invoked whenever a group is added to a tenant.
tenant - the id of the tenantgroupId - the id of the groupAuthorizationEntity[] newFilter(Filter filter)
Invoked whenever a new filter is created
filter - the newly created filterFilter is created.AuthorizationEntity[] newDeployment(Deployment deployment)
Invoked whenever a new deployment is created
deployment - the newly created deploymentDeployment is created.AuthorizationEntity[] newProcessDefinition(ProcessDefinition processDefinition)
Invoked whenever a new process definition is created
processDefinition - the newly created process definitionProcessDefinition is created.AuthorizationEntity[] newProcessInstance(ProcessInstance processInstance)
Invoked whenever a new process instance is started
processInstance - the newly started process instanceProcessInstance is started.AuthorizationEntity[] newTask(Task task)
Invoked whenever a new task is created
task - the newly created taskTask is created.AuthorizationEntity[] newTaskAssignee(Task task, String oldAssignee, String newAssignee)
Invoked whenever an user has been assigned to a task.
task - the task on which the assignee has been changedoldAssignee - the old assignee of the tasknewAssignee - the new assignee of the taskAuthorizationEntity[] newTaskOwner(Task task, String oldOwner, String newOwner)
Invoked whenever an user has been set as the owner of a task.
task - the task on which the owner has been changedoldOwner - the old owner of the tasknewOwner - the new owner of the taskAuthorizationEntity[] newTaskUserIdentityLink(Task task, String userId, String type)
Invoked whenever a new user identity link has been added to a task.
task - the task on which a new identity link has been addeduserId - the user for which the identity link has been createdtype - the type of the identity link (e.g. IdentityLinkType.CANDIDATE)AuthorizationEntity[] newTaskGroupIdentityLink(Task task, String groupId, String type)
Invoked whenever a new group identity link has been added to a task.
task - the task on which a new identity link has been addedgroupId - the group for which the identity link has been createdtype - the type of the identity link (e.g. IdentityLinkType.CANDIDATE)AuthorizationEntity[] deleteTaskUserIdentityLink(Task task, String userId, String type)
Invoked whenever a user identity link of a task has been deleted.
task - the task on which the identity link has been deleteduserId - the user for which the identity link has been deletedtype - the type of the identity link (e.g. IdentityLinkType.CANDIDATE)AuthorizationEntity[] deleteTaskGroupIdentityLink(Task task, String groupId, String type)
Invoked whenever a group identity link of a task has been deleted.
task - the task on which the identity link has been deletedgroupId - the group for which the identity link has been deletedtype - the type of the identity link (e.g. IdentityLinkType.CANDIDATE)AuthorizationEntity[] newDecisionDefinition(DecisionDefinition decisionDefinition)
Invoked whenever a new decision definition is created.
decisionDefinition - the newly created decision definitionDecisionDefinition is created.AuthorizationEntity[] newDecisionRequirementsDefinition(DecisionRequirementsDefinition decisionRequirementsDefinition)
Invoked whenever a new decision requirements definition is created.
decisionRequirementsDefinition - the newly created decision requirements definitionDecisionRequirementsDefinition is created.Copyright © 2021. All rights reserved.