|
||||||||||
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.Group
public class Group
This class define the Group class which represent a group with its associated roles
Field Summary | |
---|---|
protected static String |
SEPARATOR
Separator of the roles |
Constructor Summary | |
---|---|
Group()
Default Constructor |
|
Group(String name)
Constructor with a given name |
Method Summary | |
---|---|
void |
addRole(String role)
Add a role to this group |
String[] |
getArrayRoles()
Get the roles |
String |
getDescription()
Get the description of this group |
String |
getName()
Get the name of this user |
String |
getRoles()
Get the roles |
void |
removeRole(String role)
Remove a role from this group |
void |
setDescription(String description)
Set the description of this group |
void |
setName(String name)
Set the name of this user |
void |
setRoles(String roles)
Set the roles of the group |
String |
toString()
Use the XML representation of this object |
String |
toXML()
String representation of the group |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String SEPARATOR
Constructor Detail |
---|
public Group()
public Group(String name)
name
- the name of this groupMethod Detail |
---|
public void setName(String name)
name
- Name of the userpublic String getName()
getName
in interface GroupMBean
public void setDescription(String description)
setDescription
in interface GroupMBean
description
- description of the grouppublic String getDescription()
getDescription
in interface GroupMBean
public void setRoles(String roles)
roles
- the list of the roles of the grouppublic void addRole(String role)
addRole
in interface GroupMBean
role
- the given rolepublic void removeRole(String role)
removeRole
in interface GroupMBean
role
- the given rolepublic String getRoles()
public String[] getArrayRoles()
getArrayRoles
in interface GroupMBean
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 |