|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.cfg.auth.DefaultAuthorizationProvider
public class DefaultAuthorizationProvider
Provides the default authorizations for camunda BPM.
| Constructor Summary | |
|---|---|
DefaultAuthorizationProvider()
|
|
| Method Summary | |
|---|---|
protected AuthorizationEntity |
createGrantAuthorization(String userId,
String groupId,
Resource resource,
String resourceId,
Permission... permissions)
|
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. |
protected AuthorizationManager |
getAuthorizationManager()
|
protected AuthorizationEntity |
getGrantAuthorizationByGroupId(String groupId,
Resource resource,
String resourceId)
|
protected AuthorizationEntity |
getGrantAuthorizationByUserId(String userId,
Resource resource,
String resourceId)
|
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 |
protected AuthorizationEntity |
updateAuthorization(AuthorizationEntity authorization,
String userId,
String groupId,
Resource resource,
String resourceId,
Permission... permissions)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAuthorizationProvider()
| Method Detail |
|---|
public AuthorizationEntity[] newUser(User user)
ResourceAuthorizationProviderInvoked whenever a new user is created
newUser in interface ResourceAuthorizationProvideruser - a newly created user
public AuthorizationEntity[] newGroup(Group group)
ResourceAuthorizationProviderInvoked whenever a new group is created
newGroup in interface ResourceAuthorizationProviderUser is created.
public AuthorizationEntity[] groupMembershipCreated(String groupId,
String userId)
ResourceAuthorizationProviderInvoked whenever a user is added to a group
groupMembershipCreated in interface ResourceAuthorizationProvidergroupId - the id of the group to which the user is addeduserId - the id of the user who is added to a group a newly created
User
User is created.public AuthorizationEntity[] newFilter(Filter filter)
ResourceAuthorizationProviderInvoked whenever a new filter is created
newFilter in interface ResourceAuthorizationProviderfilter - the newly created filter
Filter is created.public AuthorizationEntity[] newDeployment(Deployment deployment)
ResourceAuthorizationProviderInvoked whenever a new deployment is created
newDeployment in interface ResourceAuthorizationProviderdeployment - the newly created deployment
Deployment is created.public AuthorizationEntity[] newProcessDefinition(ProcessDefinition processDefinition)
ResourceAuthorizationProviderInvoked whenever a new process definition is created
newProcessDefinition in interface ResourceAuthorizationProviderprocessDefinition - the newly created process definition
ProcessDefinition is created.public AuthorizationEntity[] newProcessInstance(ProcessInstance processInstance)
ResourceAuthorizationProviderInvoked whenever a new process instance is started
newProcessInstance in interface ResourceAuthorizationProviderprocessInstance - the newly started process instance
ProcessInstance is started.public AuthorizationEntity[] newTask(Task task)
ResourceAuthorizationProviderInvoked whenever a new task is created
newTask in interface ResourceAuthorizationProvidertask - the newly created task
Task is created.
public AuthorizationEntity[] newTaskAssignee(Task task,
String oldAssignee,
String newAssignee)
ResourceAuthorizationProviderInvoked whenever an user has been assigned to a task.
newTaskAssignee in interface ResourceAuthorizationProvidertask - the task on which the assignee has been changedoldAssignee - the old assignee of the tasknewAssignee - the new assignee of the task
public AuthorizationEntity[] newTaskOwner(Task task,
String oldOwner,
String newOwner)
ResourceAuthorizationProviderInvoked whenever an user has been set as the owner of a task.
newTaskOwner in interface ResourceAuthorizationProvidertask - the task on which the owner has been changedoldOwner - the old owner of the tasknewOwner - the new owner of the task
public AuthorizationEntity[] newTaskUserIdentityLink(Task task,
String userId,
String type)
ResourceAuthorizationProviderInvoked whenever a new user identity link has been added to a task.
newTaskUserIdentityLink in interface ResourceAuthorizationProvidertask - 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)
public AuthorizationEntity[] newTaskGroupIdentityLink(Task task,
String groupId,
String type)
ResourceAuthorizationProviderInvoked whenever a new group identity link has been added to a task.
newTaskGroupIdentityLink in interface ResourceAuthorizationProvidertask - 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)
public AuthorizationEntity[] deleteTaskUserIdentityLink(Task task,
String userId,
String type)
ResourceAuthorizationProviderInvoked whenever a user identity link of a task has been deleted.
deleteTaskUserIdentityLink in interface ResourceAuthorizationProvidertask - 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)
public AuthorizationEntity[] deleteTaskGroupIdentityLink(Task task,
String groupId,
String type)
ResourceAuthorizationProviderInvoked whenever a group identity link of a task has been deleted.
deleteTaskGroupIdentityLink in interface ResourceAuthorizationProvidertask - 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)
protected AuthorizationManager getAuthorizationManager()
protected AuthorizationEntity getGrantAuthorizationByUserId(String userId,
Resource resource,
String resourceId)
protected AuthorizationEntity getGrantAuthorizationByGroupId(String groupId,
Resource resource,
String resourceId)
protected AuthorizationEntity updateAuthorization(AuthorizationEntity authorization,
String userId,
String groupId,
Resource resource,
String resourceId,
Permission... permissions)
protected AuthorizationEntity createGrantAuthorization(String userId,
String groupId,
Resource resource,
String resourceId,
Permission... permissions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||