Class 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>
     
    • 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

      • getDescriptions

        public Text[] getDescriptions()
      • setDescriptions

        public void setDescriptions​(Text[] text)
      • getDescription

        public String getDescription()
      • getUnchecked

        public boolean getUnchecked()
      • setUnchecked

        public void setUnchecked​(boolean b)
      • getId

        public String getId()
      • setId

        public void setId​(String value)