|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.security.internal.realm.principal.Role
public class Role
This class define the Role class which define a role with its name and description.
Constructor Summary | |
---|---|
Role()
Constructor |
|
Role(String name)
Constructor with a specific role name |
Method Summary | |
---|---|
String |
getDescription()
Get the description of this role |
String |
getName()
Get the name of this role |
void |
setDescription(String description)
Set the description of this role |
void |
setName(String name)
Set the name of this role |
String |
toString()
Use the XML representation of this object |
String |
toXML()
String representation of the role |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Role()
public Role(String name)
name
- the role name to useMethod Detail |
---|
public void setName(String name)
name
- Name of the rolepublic String getName()
getName
in interface RoleMBean
public void setDescription(String description)
setDescription
in interface RoleMBean
description
- description of the rolepublic String getDescription()
getDescription
in interface RoleMBean
public String toXML()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |