org.eclipse.jst.j2ee.ejb
Interface MethodPermission

All Superinterfaces:
org.eclipse.emf.ecore.EObject, J2EEEObject, org.eclipse.emf.common.notify.Notifier

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()
           
 org.eclipse.emf.common.util.EList getDescriptions()
          Returns the value of the 'Descriptions' containment reference list.
 org.eclipse.emf.common.util.EList getMethodElements()
           
 java.util.List getMethodElements(EnterpriseBean anEJB)
          Return a List of MethodElements that point to
 org.eclipse.emf.common.util.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
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getMethodElements

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


getSecurityRole

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


hasSecurityRole

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


hasSecurityRole

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


isEquivalent

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


getDescription

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

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

isUnchecked

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

setUnchecked

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

unsetUnchecked

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

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

isSetUnchecked

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

AssemblyDescriptor getAssemblyDescriptor()
Returns:
The AssemblyDescriptor reference

setAssemblyDescriptor

void setAssemblyDescriptor(AssemblyDescriptor value)
Parameters:
l - The new value of the AssemblyDescriptor reference

getRoles

org.eclipse.emf.common.util.EList getRoles()
Returns:
The list of Roles references

getMethodElements

org.eclipse.emf.common.util.EList getMethodElements()
Returns:
The list of MethodElements references

getDescriptions

org.eclipse.emf.common.util.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()