|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.deployment.common.xml.AbsElement org.ow2.jonas.deployment.ear.xml.SecurityRoleMapping
public class SecurityRoleMapping
This class defines the implementation of the element security-role-mapping. It allow to define mapping between roles and principal which use these roles.
Constructor Summary | |
---|---|
SecurityRoleMapping()
Constructor |
Method Summary | |
---|---|
void |
addPrincipalName(String principalName)
Add the given principal to the list of principals |
JLinkedList |
getPrincipalNamesList()
Gets the principal-name list |
String |
getRoleName()
|
void |
setRoleName(String roleName)
Set the role-name element of this object |
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 |
---|
public SecurityRoleMapping()
Method Detail |
---|
public JLinkedList getPrincipalNamesList()
public void setRoleName(String roleName)
roleName
- the name of the rolepublic String getRoleName()
public void addPrincipalName(String principalName)
principalName
- name of the principal to add.public String toXML(int indent)
toXML
in interface Element
toXML
in class AbsElement
indent
- use this indent for prexifing XML representation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |