org.jboss.metadata
Class SecurityRoleMetaData

java.lang.Object
  extended by org.jboss.metadata.MetaData
      extended by org.jboss.metadata.SecurityRoleMetaData
All Implemented Interfaces:
Serializable, Cloneable, XmlLoadable

public class SecurityRoleMetaData
extends MetaData
implements Serializable

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: 63833 $
Author:
Thomas.Diesler@jboss.org
See Also:
Serialized Form

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
SecurityRoleMetaData()
           
SecurityRoleMetaData(String roleName)
           
 
Method Summary
 void addPrincipalName(String principalName)
           
 void addPrincipalNames(Set<String> principalNames)
           
 String getDescription()
           
 Set<String> getPrincipals()
           
 String getRoleName()
           
 void setDescription(String description)
           
 void setRoleName(String roleName)
           
 
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, importEjbJarXml, importJbossXml, importXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityRoleMetaData

public SecurityRoleMetaData()

SecurityRoleMetaData

public SecurityRoleMetaData(String roleName)
Method Detail

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

addPrincipalName

public void addPrincipalName(String principalName)

addPrincipalNames

public void addPrincipalNames(Set<String> principalNames)

getRoleName

public String getRoleName()

setRoleName

public void setRoleName(String roleName)

getPrincipals

public Set<String> getPrincipals()


Copyright © 2009 JBoss Inc.. All Rights Reserved.