Source code: org/jbpm/workflow/delegation/AuthorizationHandler.java
1 package org.jbpm.workflow.delegation;
2
3 import java.util.*;
4 import org.jbpm.workflow.execution.*;
5
6 /**
7 * verifies if an authenticated user has enough privileges. An AuthorizationHandler
8 * can be specified on the level of a process definition. All method-calls to
9 * the admin and execution component that are related to that process definition
10 * will call the AuthorizationHandler to validate authorization.
11 */
12 public interface AuthorizationHandler {
13 void checkRemoveProcessInstance( String authenticatedActorId, Long processInstanceId ) throws AuthorizationException;
14 void checkRemoveProcessDefinition( String authenticatedActorId, Long processDefinitionId ) throws AuthorizationException;
15 void checkStartProcessInstance( String authenticatedActorId, Long processDefinitionId, Map attributeValues, String transitionName ) throws AuthorizationException;
16 void checkGetStartForm( String authenticatedActorId, Long processDefinitionId ) throws AuthorizationException;
17 void checkGetActivityForm( String authenticatedActorId, Long flowId ) throws AuthorizationException;
18 void checkPerformActivity( String authenticatedActorId, Long flowId, Map attributeValues, String transitionName ) throws AuthorizationException;
19 void checkDelegateActivity( String authenticatedActorId, Long flowId, String delegateActorId ) throws AuthorizationException;
20 void checkCancelProcessInstance( String authenticatedActorId, Long processInstanceId ) throws AuthorizationException;
21 void checkCancelFlow( String authenticatedActorId, Long flowId ) throws AuthorizationException;
22 void checkGetFlow( String authenticatedActorId, Long flowId ) throws AuthorizationException;
23 }