org.apache.openejb.jee
Class MethodPermission
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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.