org.objectweb.jonas.security.realm.principals
Interface GroupMBean

All Known Implementing Classes:
Group

public interface GroupMBean

This interface define the MBeans methods

Author:
Florent Benoit

Method Summary
 void addRole(java.lang.String role)
          Add a role to this user
 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
 void removeRole(java.lang.String role)
          Remove a role from this user
 void setDescription(java.lang.String description)
          Set the description of this group
 

Method Detail

getName

java.lang.String getName()
Get the name of this user

Returns:
the name of this user

setDescription

void setDescription(java.lang.String description)
Set the description of this group

Parameters:
description - description of the group

getDescription

java.lang.String getDescription()
Get the description of this group

Returns:
the description of this group

addRole

void addRole(java.lang.String role)
Add a role to this user

Parameters:
role - the given role

removeRole

void removeRole(java.lang.String role)
Remove a role from this user

Parameters:
role - the given role

getArrayRoles

java.lang.String[] getArrayRoles()
Get the roles

Returns:
the array of the roles