org.objectweb.jonas_ear.deployment.xml
Class SecurityRoleMapping

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.xml.AbsElement
      extended by org.objectweb.jonas_ear.deployment.xml.SecurityRoleMapping
All Implemented Interfaces:
java.io.Serializable, Element

public class SecurityRoleMapping
extends AbsElement

This class defines the implementation of the element security-role-mapping. It allow to define mapping between roles and principal which use these roles.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
SecurityRoleMapping()
          Constructor
 
Method Summary
 void addPrincipalName(java.lang.String principalName)
          Add the given principal to the list of principals
 JLinkedList getPrincipalNamesList()
          Gets the principal-name list
 java.lang.String getRoleName()
           
 void setRoleName(java.lang.String roleName)
          Set the role-name element of this object
 java.lang.String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityRoleMapping

public SecurityRoleMapping()
Constructor

Method Detail

getPrincipalNamesList

public JLinkedList getPrincipalNamesList()
Gets the principal-name list

Returns:
the principal-name list

setRoleName

public void setRoleName(java.lang.String roleName)
Set the role-name element of this object

Parameters:
roleName - the name of the role

getRoleName

public java.lang.String getRoleName()
Returns:
the role Name.

addPrincipalName

public void addPrincipalName(java.lang.String principalName)
Add the given principal to the list of principals

Parameters:
principalName - name of the principal to add.

toXML

public java.lang.String toXML(int indent)
Represents this element by it's XML description.

Specified by:
toXML in interface Element
Specified by:
toXML in class AbsElement
Parameters:
indent - use this indent for prexifing XML representation.
Returns:
the XML description of this object.