org.apache.openejb.jee.jba
Class SecurityRole

java.lang.Object
  extended by org.apache.openejb.jee.jba.SecurityRole

public class SecurityRole
extends java.lang.Object


Field Summary
protected  java.util.List<PrincipalName> principalName
           
protected  java.lang.String roleName
           
 
Constructor Summary
SecurityRole()
           
 
Method Summary
 java.util.List<PrincipalName> getPrincipalName()
          Gets the value of the principalName property.
 java.lang.String getRoleName()
          Gets the value of the roleName property.
 void setRoleName(java.lang.String value)
          Sets the value of the roleName property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

roleName

protected java.lang.String roleName

principalName

protected java.util.List<PrincipalName> principalName
Constructor Detail

SecurityRole

public SecurityRole()
Method Detail

getRoleName

public java.lang.String getRoleName()
Gets the value of the roleName property.

Returns:
possible object is String

setRoleName

public void setRoleName(java.lang.String value)
Sets the value of the roleName property.

Parameters:
value - allowed object is String

getPrincipalName

public java.util.List<PrincipalName> getPrincipalName()
Gets the value of the principalName property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the principalName property.

For example, to add a new item, do as follows:

    getPrincipalName().add(newItem);
 

Objects of the following type(s) are allowed in the list PrincipalName



Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.