org.eclipse.jst.j2ee.ejb
Interface MethodPermission

All Superinterfaces:
J2EEEObject

public interface MethodPermission
extends J2EEEObject

The method-permission element specifies that one or more security roles are allowed to invoke one or more enterprise bean methods. The method-permission element consists of an optional description, a list of security role names, and a list of method elements. The security roles used in the method-permission element must be defined in the security-role element of the deployment descriptor, and the methods must be methods defined in the enterprise bean's remote and//or home interfaces.

Since:
1.0

Method Summary
 AssemblyDescriptor getAssemblyDescriptor()
           
 java.lang.String getDescription()
           
 EList getDescriptions()
          Returns the value of the 'Descriptions' containment reference list.
 EList getMethodElements()
           
 java.util.List getMethodElements(EnterpriseBean anEJB)
          Return a List of MethodElements that point to
 EList getRoles()
           
 SecurityRole getSecurityRole(java.lang.String aRoleName)
          Return the SecurityRole named @aRoleName.
 boolean hasSecurityRole(SecurityRole aSecurityRole)
          Return true if this permission contains @aSecurityRole
 boolean hasSecurityRole(java.lang.String aRoleName)
          Return true if this permission contains a SecurityRole named @aRoleName.
 boolean isEquivalent(MethodPermission anotherMethodPermission)
          Return true if this MethodPermission and @anotherMethodPermission have the same roles.
 boolean isSetUnchecked()
          Returns whether the value of the 'Unchecked' attribute is set
 boolean isUnchecked()
           
 void setAssemblyDescriptor(AssemblyDescriptor value)
           
 void setDescription(java.lang.String value)
           
 void setUnchecked(boolean value)
           
 void unsetUnchecked()
          Unsets the value of the 'Unchecked' attribute
 

Method Detail

getMethodElements

public java.util.List getMethodElements(EnterpriseBean anEJB)
Return a List of MethodElements that point to


getSecurityRole

public SecurityRole getSecurityRole(java.lang.String aRoleName)
Return the SecurityRole named @aRoleName.


hasSecurityRole

public boolean hasSecurityRole(SecurityRole aSecurityRole)
Return true if this permission contains @aSecurityRole


hasSecurityRole

public boolean hasSecurityRole(java.lang.String aRoleName)
Return true if this permission contains a SecurityRole named @aRoleName.


isEquivalent

public boolean isEquivalent(MethodPermission anotherMethodPermission)
Return true if this MethodPermission and @anotherMethodPermission have the same roles.


getDescription

public java.lang.String getDescription()
Returns:
The value of the Description attribute The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.

setDescription

public void setDescription(java.lang.String value)
Parameters:
value - The new value of the Description attribute

isUnchecked

public boolean isUnchecked()
Returns:
The value of the Unchecked attribute

setUnchecked

public void setUnchecked(boolean value)
Parameters:
value - The new value of the Unchecked attribute

unsetUnchecked

public void unsetUnchecked()
Unsets the value of the 'Unchecked' attribute.

See Also:
isSetUnchecked(), isUnchecked(), setUnchecked(boolean)

isSetUnchecked

public boolean isSetUnchecked()
Returns whether the value of the 'Unchecked' attribute is set.

Returns:
whether the value of the 'Unchecked' attribute is set.
See Also:
unsetUnchecked(), isUnchecked(), setUnchecked(boolean)

getAssemblyDescriptor

public AssemblyDescriptor getAssemblyDescriptor()
Returns:
The AssemblyDescriptor reference

setAssemblyDescriptor

public void setAssemblyDescriptor(AssemblyDescriptor value)

getRoles

public EList getRoles()
Returns:
The list of Roles references

getMethodElements

public EList getMethodElements()
Returns:
The list of MethodElements references

getDescriptions

public EList getDescriptions()
Returns the value of the 'Descriptions' containment reference list. The list contents are of type Description.

If the meaning of the 'Descriptions' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Descriptions' containment reference list.
See Also:
EjbPackage.getMethodPermission_Descriptions()