org.apache.openejb.assembler.classic
Class JaccPermissionsBuilder

java.lang.Object
  extended by org.apache.openejb.assembler.classic.JaccPermissionsBuilder

public class JaccPermissionsBuilder
extends Object

Version:
$Rev: 941800 $ $Date: 2010-05-06 18:45:02 +0200 (Do, 06. Mai 2010) $

Constructor Summary
JaccPermissionsBuilder()
           
 
Method Summary
 void addPossibleEjbMethodPermissions(Permissions permissions, String ejbName, String methodInterface, Class clazz)
          Generate all the possible permissions for a bean's interface.
 PolicyContext build(EjbJarInfo ejbJar, HashMap<String,DeploymentInfo> deployments)
           
 void install(PolicyContext policyContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaccPermissionsBuilder

public JaccPermissionsBuilder()
Method Detail

install

public void install(PolicyContext policyContext)
             throws OpenEJBException
Throws:
OpenEJBException

build

public PolicyContext build(EjbJarInfo ejbJar,
                           HashMap<String,DeploymentInfo> deployments)
                    throws OpenEJBException
Throws:
OpenEJBException

addPossibleEjbMethodPermissions

public void addPossibleEjbMethodPermissions(Permissions permissions,
                                            String ejbName,
                                            String methodInterface,
                                            Class clazz)
                                     throws OpenEJBException
Generate all the possible permissions for a bean's interface.

Method permissions are defined in the deployment descriptor as a binary relation from the set of security roles to the set of methods of the home, component, and/or web service endpoint interfaces of session and entity beans, including all their superinterfaces (including the methods of the EJBHome and EJBObject interfaces and/or EJBLocalHome and EJBLocalObject interfaces).

Parameters:
permissions - the permission set to be extended
ejbName - the name of the EJB
methodInterface - the EJB method interface
Throws:
OpenEJBException - in case a class could not be found


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.