org.ow2.jonas.deployment.ejb.xml
Class JonasRunAsMapping

java.lang.Object
  extended by org.ow2.jonas.deployment.common.xml.AbsElement
      extended by org.ow2.jonas.deployment.ejb.xml.JonasRunAsMapping
All Implemented Interfaces:
Serializable, Element

public class JonasRunAsMapping
extends AbsElement

This class defines the implementation of the element jonas-run-as-mapping It defines mapping between principal and list of roles

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
JonasRunAsMapping()
          Constructor
 
Method Summary
 void addRoleName(String roleName)
          Add a new role-name element to this object
 String getPrincipalName()
           
 JLinkedList getRoleNamesList()
          Gets the role-name
 void setPrincipalName(String principalName)
          Sets the principal name
 String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.ow2.jonas.deployment.common.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

JonasRunAsMapping

public JonasRunAsMapping()
Constructor

Method Detail

getRoleNamesList

public JLinkedList getRoleNamesList()
Gets the role-name

Returns:
the role-name

addRoleName

public void addRoleName(String roleName)
Add a new role-name element to this object

Parameters:
roleName - the name of the role

getPrincipalName

public String getPrincipalName()
Returns:
the principal Name.

setPrincipalName

public void setPrincipalName(String principalName)
Sets the principal name

Parameters:
principalName - name of the principal to set.

toXML

public 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.


Copyright © 2010 OW2 Consortium. All Rights Reserved.