org.camunda.bpm.engine.impl.cfg.auth
Interface ResourceAuthorizationProvider

All Known Implementing Classes:
DefaultAuthorizationProvider

public interface ResourceAuthorizationProvider

Author:
Daniel Meyer

Method Summary
 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[] 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[] newUser(User user)
          Invoked whenever a new user is created
 

Method Detail

newUser

AuthorizationEntity[] newUser(User user)

Invoked whenever a new user is created

Parameters:
user - a newly created user
Returns:
a list of authorizations to be automatically added when a new user is created.

newGroup

AuthorizationEntity[] newGroup(Group group)

Invoked whenever a new group is created

Parameters:
user - a newly created User
Returns:
a list of authorizations to be automatically added when a new User is created.

groupMembershipCreated

AuthorizationEntity[] groupMembershipCreated(String groupId,
                                             String userId)

Invoked whenever a user is added to a group

Parameters:
userId - the id of the user who is added to a group a newly created User
groupId - the id of the group to which the user is added
Returns:
a list of authorizations to be automatically added when a new User is created.

newFilter

AuthorizationEntity[] newFilter(Filter filter)

Invoked whenever a new filter is created

Parameters:
filter - the newly created filter
Returns:
a list of authorizations to be automatically added when a new Filter is created.

newDeployment

AuthorizationEntity[] newDeployment(Deployment deployment)

Invoked whenever a new deployment is created

Parameters:
deployment - the newly created deployment
Returns:
a list of authorizations to be automatically added when a new Deployment is created.

newProcessDefinition

AuthorizationEntity[] newProcessDefinition(ProcessDefinition processDefinition)

Invoked whenever a new process definition is created

Parameters:
processDefinition - the newly created process definition
Returns:
a list of authorizations to be automatically added when a new ProcessDefinition is created.

newProcessInstance

AuthorizationEntity[] newProcessInstance(ProcessInstance processInstance)

Invoked whenever a new process instance is started

Parameters:
processInstance - the newly started process instance
Returns:
a list of authorizations to be automatically added when a new ProcessInstance is started.

newTask

AuthorizationEntity[] newTask(Task task)

Invoked whenever a new task is created

Parameters:
task - the newly created task
Returns:
a list of authorizations to be automatically added when a new Task is created.

newTaskAssignee

AuthorizationEntity[] newTaskAssignee(Task task,
                                      String oldAssignee,
                                      String newAssignee)

Invoked whenever an user has been assigned to a task.

Parameters:
task - the task on which the assignee has been changed
oldAssignee - the old assignee of the task
newAssignee - the new assignee of the task
Returns:
a list of authorizations to be automatically added when an assignee of a task changes.

newTaskOwner

AuthorizationEntity[] newTaskOwner(Task task,
                                   String oldOwner,
                                   String newOwner)

Invoked whenever an user has been set as the owner of a task.

Parameters:
task - the task on which the owner has been changed
oldOwner - the old owner of the task
newOwner - the new owner of the task
Returns:
a list of authorizations to be automatically added when the owner of a task changes.

newTaskUserIdentityLink

AuthorizationEntity[] newTaskUserIdentityLink(Task task,
                                              String userId,
                                              String type)

Invoked whenever a new user identity link has been added to a task.

Parameters:
task - the task on which a new identity link has been added
userId - the user for which the identity link has been created
type - the type of the identity link (e.g. IdentityLinkType.CANDIDATE)
Returns:
a list of authorizations to be automatically added when a new user identity link has been added.

newTaskGroupIdentityLink

AuthorizationEntity[] newTaskGroupIdentityLink(Task task,
                                               String groupId,
                                               String type)

Invoked whenever a new group identity link has been added to a task.

Parameters:
task - the task on which a new identity link has been added
groupId - the group for which the identity link has been created
type - the type of the identity link (e.g. IdentityLinkType.CANDIDATE)
Returns:
a list of authorizations to be automatically added when a new group identity link has been added.

deleteTaskUserIdentityLink

AuthorizationEntity[] deleteTaskUserIdentityLink(Task task,
                                                 String userId,
                                                 String type)

Invoked whenever a user identity link of a task has been deleted.

Parameters:
task - the task on which the identity link has been deleted
userId - the user for which the identity link has been deleted
type - the type of the identity link (e.g. IdentityLinkType.CANDIDATE)
Returns:
a list of authorizations to be automatically deleted when a user identity link has been deleted.

deleteTaskGroupIdentityLink

AuthorizationEntity[] deleteTaskGroupIdentityLink(Task task,
                                                  String groupId,
                                                  String type)

Invoked whenever a group identity link of a task has been deleted.

Parameters:
task - the task on which the identity link has been deleted
groupId - the group for which the identity link has been deleted
type - the type of the identity link (e.g. IdentityLinkType.CANDIDATE)
Returns:
a list of authorizations to be automatically deleted when a group identity link has been deleted.


Copyright © 2015 camunda services GmbH. All rights reserved.