net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee
Class MethodPermissionType

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.MethodPermissionType
All Implemented Interfaces:
Serializable, Cloneable

public class MethodPermissionType
extends Object
implements Serializable, Cloneable

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.

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>
 

See Also:
Serialized Form

Field Summary
protected  DescriptionType[] description
           
protected  String id
           
protected  MethodType[] method
           
protected  RoleNameType[] roleName
           
protected  EmptyType unchecked
           
 
Constructor Summary
MethodPermissionType()
          Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.MethodPermissionType instance.
MethodPermissionType(MethodPermissionType o)
          Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.MethodPermissionType instance by copying a given instance.
 
Method Summary
 MethodPermissionType clone()
          Creates and returns a copy of this object.
 void copyDescription(DescriptionType[] source)
          Copies all values of property Description.
 void copyMethod(MethodType[] source)
          Copies all values of property Method.
 void copyRoleName(RoleNameType[] source)
          Copies all values of property RoleName.
 DescriptionType[] getDescription()
           
 DescriptionType getDescription(int idx)
           
 int getDescriptionLength()
           
 String getId()
          Gets the value of the id property.
 MethodType[] getMethod()
           
 MethodType getMethod(int idx)
           
 int getMethodLength()
           
 RoleNameType[] getRoleName()
           
 RoleNameType getRoleName(int idx)
           
 int getRoleNameLength()
           
 EmptyType getUnchecked()
          Gets the value of the unchecked property.
 void setDescription(DescriptionType[] values)
           
 DescriptionType setDescription(int idx, DescriptionType value)
           
 void setId(String value)
          Sets the value of the id property.
 MethodType setMethod(int idx, MethodType value)
           
 void setMethod(MethodType[] values)
           
 RoleNameType setRoleName(int idx, RoleNameType value)
           
 void setRoleName(RoleNameType[] values)
           
 void setUnchecked(EmptyType value)
          Sets the value of the unchecked property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected DescriptionType[] description

roleName

protected RoleNameType[] roleName

unchecked

protected EmptyType unchecked

method

protected MethodType[] method

id

protected String id
Constructor Detail

MethodPermissionType

public MethodPermissionType()
Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.MethodPermissionType instance.


MethodPermissionType

public MethodPermissionType(MethodPermissionType o)
Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.MethodPermissionType instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getDescription

public DescriptionType[] getDescription()
Returns:
array of DescriptionType

getDescription

public DescriptionType getDescription(int idx)
Returns:
one of DescriptionType

getDescriptionLength

public int getDescriptionLength()

setDescription

public void setDescription(DescriptionType[] values)
Parameters:
values - allowed objects are DescriptionType

setDescription

public DescriptionType setDescription(int idx,
                                      DescriptionType value)
Parameters:
value - allowed object is DescriptionType

getRoleName

public RoleNameType[] getRoleName()
Returns:
array of RoleNameType

getRoleName

public RoleNameType getRoleName(int idx)
Returns:
one of RoleNameType

getRoleNameLength

public int getRoleNameLength()

setRoleName

public void setRoleName(RoleNameType[] values)
Parameters:
values - allowed objects are RoleNameType

setRoleName

public RoleNameType setRoleName(int idx,
                                RoleNameType value)
Parameters:
value - allowed object is RoleNameType

getUnchecked

public EmptyType getUnchecked()
Gets the value of the unchecked property.

Returns:
possible object is EmptyType

setUnchecked

public void setUnchecked(EmptyType value)
Sets the value of the unchecked property.

Parameters:
value - allowed object is EmptyType

getMethod

public MethodType[] getMethod()
Returns:
array of MethodType

getMethod

public MethodType getMethod(int idx)
Returns:
one of MethodType

getMethodLength

public int getMethodLength()

setMethod

public void setMethod(MethodType[] values)
Parameters:
values - allowed objects are MethodType

setMethod

public MethodType setMethod(int idx,
                            MethodType value)
Parameters:
value - allowed object is MethodType

getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

copyDescription

public void copyDescription(DescriptionType[] source)
Copies all values of property Description.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyRoleName

public void copyRoleName(RoleNameType[] source)
Copies all values of property RoleName.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyMethod

public void copyMethod(MethodType[] source)
Copies all values of property Method.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

clone

public MethodPermissionType clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.