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

All Known Implementing Classes:
LDAPUser, User

public interface UserMBean

This interface defines the MBean method for the User

Author:
Florent Benoit

Method Summary
 void addGroup(java.lang.String group)
          Add the specified group to this user
 void addRole(java.lang.String role)
          Add a role to this user
 java.lang.String[] getArrayGroups()
          Get the groups
 java.lang.String[] getArrayRoles()
          Get the roles
 java.lang.String getName()
          Get the name of this user
 java.lang.String getPassword()
          Get the password of this user
 void removeGroup(java.lang.String group)
          Remove a group from this user
 void removeRole(java.lang.String role)
          Remove a role from this user
 void setPassword(java.lang.String password)
          Set the password of this user
 

Method Detail

getArrayRoles

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

Returns:
the array of the roles

getArrayGroups

java.lang.String[] getArrayGroups()
Get the groups

Returns:
the array of the groups

getName

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

Returns:
the name of this user

getPassword

java.lang.String getPassword()
Get the password of this user

Returns:
the password of this user

setPassword

void setPassword(java.lang.String password)
Set the password of this user

Parameters:
password - password of the user

addGroup

void addGroup(java.lang.String group)
Add the specified group to this user

Parameters:
group - the group to add

addRole

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

Parameters:
role - the given role

removeGroup

void removeGroup(java.lang.String group)
Remove a group from this user

Parameters:
group - the given group

removeRole

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

Parameters:
role - the given role