KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > security > authorizer > RolesAuthorizer


1 package org.jbpm.security.authorizer;
2
3 import java.security.Permission JavaDoc;
4
5 import org.jbpm.graph.def.ProcessDefinition;
6 import org.jbpm.graph.exe.Token;
7
8 public class RolesAuthorizer implements Authorizer {
9
10   public void checkPermission(Permission JavaDoc permission, ProcessDefinition processDefinition, Token token) {
11     /*
12     String role = processDefinition.getSecurityDefinition().mapToRole(permission);
13     
14     // check if swimlaneActorId has role.
15     SecurityAssociation.getSubject().getPrincipals(null);
16     */

17   }
18
19 }
20
Popular Tags