org.jboss.metadata
Class SecurityRoleRefMetaData

java.lang.Object
  extended by org.jboss.metadata.MetaData
      extended by org.jboss.metadata.OldMetaData<SecurityRoleRefMetaData>
          extended by org.jboss.metadata.SecurityRoleRefMetaData
All Implemented Interfaces:
Cloneable, XmlLoadable

public class SecurityRoleRefMetaData
extends OldMetaData<SecurityRoleRefMetaData>

The metadata object for the security-role-ref element. The security-role-ref element contains the declaration of a security role reference in the enterprise bean's code. The declaration con-sists of an optional description, the security role name used in the code, and an optional link to a defined security role. The value of the role-name element must be the String used as the parameter to the EJBContext.isCallerInRole(String roleName) method. The value of the role-link element must be the name of one of the security roles defined in the security-role elements.

Version:
$Revision: 65490 $
Author:
Sebastien Alborini, Scott Stark., Adrian Brock

Field Summary
 
Fields inherited from class org.jboss.metadata.MetaData
log, TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN
 
Constructor Summary
SecurityRoleRefMetaData(SecurityRoleRefMetaData delegate)
          Create a new ResourceRefMetaData.
 
Method Summary
static SecurityRoleRefMetaData create(SecurityRoleRefMetaData delegate)
          Create a new SecurityRoleRefMetaData.
 String getDescription()
          Get the description
 String getLink()
          Get the link
 String getName()
          Get the name
 
Methods inherited from class org.jboss.metadata.OldMetaData
equals, getDelegate, getMetaData, hashCode, importEjbJarXml, importJbossXml, toString
 
Methods inherited from class org.jboss.metadata.MetaData
clone, getChildrenByTagName, getElementAttribute, getElementAttribute, getElementContent, getElementContent, getElementContent, getFirstElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildBooleanContent, getOptionalChildContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityRoleRefMetaData

public SecurityRoleRefMetaData(SecurityRoleRefMetaData delegate)
Create a new ResourceRefMetaData.

Parameters:
delegate - the delegate
Throws:
IllegalArgumentException - for a null delegate
Method Detail

create

public static SecurityRoleRefMetaData create(SecurityRoleRefMetaData delegate)
Create a new SecurityRoleRefMetaData.

Parameters:
delegate - the delegate
Returns:
the metadata
Throws:
IllegalArgumentException - for a null delegate or an unknown delegate

getName

public String getName()
Get the name

Returns:
the name

getLink

public String getLink()
Get the link

Returns:
the link

getDescription

public String getDescription()
Get the description

Returns:
the description


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.