org.openejb.security
Class PermissionManager

java.lang.Object
  extended byorg.openejb.security.PermissionManager
All Implemented Interfaces:
Serializable

public final class PermissionManager
extends Object
implements Serializable

Create a sparse matrix of pre-created EJB permissions.

TODO: This matrix isn't sparse enough for the likes of certain cheeseheads.

Version:
$Revision: 445228 $ $Date: 2005-02-27 05:38:41 +0100 (Sun, 27 Feb 2005) $
See Also:
Serialized Form

Constructor Summary
PermissionManager(String ejbName, InterfaceMethodSignature[] signatures)
           
 
Method Summary
 Permission getPermission(EJBInterfaceType invocationType, int operationIndex)
          Return the permission for that invocation type and operation index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionManager

public PermissionManager(String ejbName,
                         InterfaceMethodSignature[] signatures)
Method Detail

getPermission

public Permission getPermission(EJBInterfaceType invocationType,
                                int operationIndex)
Return the permission for that invocation type and operation index. Note that the permissions matrix is sparse and it may return null.

Parameters:
invocationType - the invocation type
operationIndex - the operation index
Returns:


Copyright © 1999-2006 OpenEJB. All Rights Reserved.