org.jboss.security
Class SecurityRoleMetaData

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

Deprecated.

@Deprecated
public class SecurityRoleMetaData
extends OldMetaData<SecurityRoleMetaData>

The meta data object for the security-role-mapping element. The security-role-mapping element maps the user principal to a different principal on the server. It can for example be used to map a run-as-principal to more than one role.

Version:
$Revision: 40750 $
Author:
Thomas.Diesler@jboss.org, 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
protected SecurityRoleMetaData(org.jboss.metadata.spi.MetaData metaData)
          Deprecated. Create a new SecurityMetaData.
  SecurityRoleMetaData(SecurityRoleMetaData delegate)
          Deprecated. Create a new SecurityRoleMetaData.
 
Method Summary
 void addPrincipalName(String principalName)
          Deprecated. Add a principal name
 void addPrincipalNames(Set principalNames)
          Deprecated. Add some principal names
 Set<String> getPrincipals()
          Deprecated. Get the principals
 String getRoleName()
          Deprecated. Get the role 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

SecurityRoleMetaData

public SecurityRoleMetaData(SecurityRoleMetaData delegate)
Deprecated. 
Create a new SecurityRoleMetaData.

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

SecurityRoleMetaData

protected SecurityRoleMetaData(org.jboss.metadata.spi.MetaData metaData)
Deprecated. 
Create a new SecurityMetaData.

Parameters:
metaData - the delegate metadata
Throws:
IllegalArgumentException - for a null metaData
IllegalStateException - if the metadata doesn't have an SecurityRolesMetaData
Method Detail

getRoleName

public String getRoleName()
Deprecated. 
Get the role name

Returns:
the role name

getPrincipals

public Set<String> getPrincipals()
Deprecated. 
Get the principals

Returns:
the principals

addPrincipalName

public void addPrincipalName(String principalName)
Deprecated. 
Add a principal name

Parameters:
principalName - the principal name
Throws:
UnsupportedOperationException - always

addPrincipalNames

public void addPrincipalNames(Set principalNames)
Deprecated. 
Add some principal names

Parameters:
principalNames - the principal names
Throws:
UnsupportedOperationException - always


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