org.apache.openejb.jee
Class MethodPermission

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

public class MethodPermission
extends Object

ejb-jar_3_1.xsd

Java class for method-permissionType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="method-permissionType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
         <choice>
           <element name="role-name" type="{http://java.sun.com/xml/ns/javaee}role-nameType" maxOccurs="unbounded"/>
           <element name="unchecked" type="{http://java.sun.com/xml/ns/javaee}emptyType"/>
         </choice>
         <element name="method" type="{http://java.sun.com/xml/ns/javaee}methodType" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  TextMap description
           
protected  String id
           
protected  List<Method> method
           
protected  List<String> roleName
           
protected  Empty 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

description

protected TextMap description

roleName

protected List<String> roleName

unchecked

protected Empty unchecked

method

protected List<Method> method

id

protected String id
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-2012 The Apache Software Foundation. All Rights Reserved.