org.objectweb.jonas_lib.deployment.api
Class SecurityRoleRefDesc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.SecurityRoleRefDesc

public class SecurityRoleRefDesc
extends java.lang.Object

Defines a SecurityRoleRefDesc class for the management of EJBRoleRefPermissions and WebRoleRefPermissions in JACC

Author:
Florent Benoit

Constructor Summary
SecurityRoleRefDesc(java.lang.String componentName, SecurityRoleRef securityRoleRef, boolean isEjb)
          Constructor for SecurityRoleRefDesc
 
Method Summary
 java.security.Permission getEJBRoleRefPermission()
           
 java.lang.String getRoleLink()
          Gets the role-link value
 java.lang.String getRoleName()
          Gets the role-name value
 java.security.Permission getWebRoleRefPermission()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityRoleRefDesc

public SecurityRoleRefDesc(java.lang.String componentName,
                           SecurityRoleRef securityRoleRef,
                           boolean isEjb)
Constructor for SecurityRoleRefDesc

Parameters:
componentName - name of the EJB or Servlet
securityRoleRef - the security role of the assembly descriptor
isEjb - indicate if the is a SecurityRoleRef for an EJB or a Web Component
Method Detail

getRoleName

public java.lang.String getRoleName()
Gets the role-name value

Returns:
role-name

getRoleLink

public java.lang.String getRoleLink()
Gets the role-link value

Returns:
role-link

getEJBRoleRefPermission

public java.security.Permission getEJBRoleRefPermission()
Returns:
Returns the EJBRoleRefPermission

getWebRoleRefPermission

public java.security.Permission getWebRoleRefPermission()
Returns:
Returns the WebRoleRefPermission