|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.security.realm.principals.Group
public class Group
This class define the Group class which represent a group with its associated roles
Field Summary | |
---|---|
protected static java.lang.String |
SEPARATOR
Separator of the roles |
Constructor Summary | |
---|---|
Group()
Default Constructor |
|
Group(java.lang.String name)
Constructor with a given name |
Method Summary | |
---|---|
void |
addRole(java.lang.String role)
Add a role to this group |
java.lang.String[] |
getArrayRoles()
Get the roles |
java.lang.String |
getDescription()
Get the description of this group |
java.lang.String |
getName()
Get the name of this user |
java.lang.String |
getRoles()
Get the roles |
void |
removeRole(java.lang.String role)
Remove a role from this group |
void |
setDescription(java.lang.String description)
Set the description of this group |
void |
setName(java.lang.String name)
Set the name of this user |
void |
setRoles(java.lang.String roles)
Set the roles of the group |
java.lang.String |
toString()
Use the XML representation of this object |
java.lang.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 java.lang.String SEPARATOR
Constructor Detail |
---|
public Group()
public Group(java.lang.String name)
name
- the name of this groupMethod Detail |
---|
public void setName(java.lang.String name)
name
- Name of the userpublic java.lang.String getName()
getName
in interface GroupMBean
public void setDescription(java.lang.String description)
setDescription
in interface GroupMBean
description
- description of the grouppublic java.lang.String getDescription()
getDescription
in interface GroupMBean
public void setRoles(java.lang.String roles)
roles
- the list of the roles of the grouppublic void addRole(java.lang.String role)
addRole
in interface GroupMBean
role
- the given rolepublic void removeRole(java.lang.String role)
removeRole
in interface GroupMBean
role
- the given rolepublic java.lang.String getRoles()
public java.lang.String[] getArrayRoles()
getArrayRoles
in interface GroupMBean
public java.lang.String toXML()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |