org.apache.openejb.jee
Class MethodPermission

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

public class MethodPermission
extends 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  String id
           
protected  List<Method> method
           
protected  List<String> roleName
           
protected  EmptyType unchecked
           
 
Constructor Summary
MethodPermission()
           
MethodPermission(Method method, String... roles)
           
MethodPermission(String ejbName, Method method, String... roles)
           
MethodPermission(String className, String ejbName, String methodName, String... roles)
           
 
Method Summary
 String getDescription()
           
 Text[] getDescriptions()
           
 String getId()
           
 List<Method> getMethod()
           
 List<String> getRoleName()
           
 boolean getUnchecked()
           
 void setDescriptions(Text[] text)
           
 void setId(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 List<String> roleName

unchecked

protected EmptyType unchecked

method

protected List<Method> method

id

protected String id

description

protected TextMap description
Constructor Detail

MethodPermission

public MethodPermission()

MethodPermission

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

MethodPermission

public MethodPermission(String ejbName,
                        Method method,
                        String... roles)

MethodPermission

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

setUnchecked

public MethodPermission setUnchecked()

getDescriptions

public Text[] getDescriptions()

setDescriptions

public void setDescriptions(Text[] text)

getDescription

public String getDescription()

getRoleName

public List<String> getRoleName()

getUnchecked

public boolean getUnchecked()

setUnchecked

public void setUnchecked(boolean b)

getMethod

public List<Method> getMethod()

getId

public String getId()

setId

public void setId(String value)


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