org.apache.openejb.jee
Class MethodPermission

java.lang.Object
  extended by org.apache.openejb.jee.MethodPermission

public class MethodPermission
extends java.lang.Object

The method-permissionType specifies that one or more security roles are allowed to invoke one or more enterprise bean methods. The method-permissionType consists of an optional description, a list of security role names or an indicator to state that the method is unchecked for authorization, and a list of method elements.

The security roles used in the method-permissionType must be defined in the security-role elements of the deployment descriptor, and the methods must be methods defined in the enterprise bean's business, home, component and/or web service endpoint interfaces.


Field Summary
protected  TextMap description
           
protected  java.lang.String id
           
protected  java.util.List<Method> method
           
protected  java.util.List<java.lang.String> roleName
           
protected  EmptyType unchecked
           
 
Constructor Summary
MethodPermission()
           
MethodPermission(Method method, java.lang.String... roles)
           
MethodPermission(java.lang.String ejbName, java.lang.reflect.Method method, java.lang.String... roles)
           
MethodPermission(java.lang.String className, java.lang.String ejbName, java.lang.String methodName, java.lang.String... roles)
           
 
Method Summary
 java.lang.String getDescription()
           
 Text[] getDescriptions()
           
 java.lang.String getId()
           
 java.util.List<Method> getMethod()
           
 java.util.List<java.lang.String> getRoleName()
           
 boolean getUnchecked()
           
 void setDescriptions(Text[] text)
           
 void setId(java.lang.String value)
           
 MethodPermission setUnchecked()
           
 void setUnchecked(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

roleName

protected java.util.List<java.lang.String> roleName

unchecked

protected EmptyType unchecked

method

protected java.util.List<Method> method

id

protected java.lang.String id

description

protected TextMap description
Constructor Detail

MethodPermission

public MethodPermission()

MethodPermission

public MethodPermission(java.lang.String className,
                        java.lang.String ejbName,
                        java.lang.String methodName,
                        java.lang.String... roles)

MethodPermission

public MethodPermission(java.lang.String ejbName,
                        java.lang.reflect.Method method,
                        java.lang.String... roles)

MethodPermission

public MethodPermission(Method method,
                        java.lang.String... roles)
Method Detail

setUnchecked

public MethodPermission setUnchecked()

getDescriptions

public Text[] getDescriptions()

setDescriptions

public void setDescriptions(Text[] text)

getDescription

public java.lang.String getDescription()

getRoleName

public java.util.List<java.lang.String> getRoleName()

getUnchecked

public boolean getUnchecked()

setUnchecked

public void setUnchecked(boolean b)

getMethod

public java.util.List<Method> getMethod()

getId

public java.lang.String getId()

setId

public void setId(java.lang.String value)


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