org.ow2.jonas.security.internal.realm.principal
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(String group)
          Add the specified group to this user
 void addRole(String role)
          Add a role to this user
 String[] getArrayGroups()
          Get the groups
 String[] getArrayRoles()
          Get the roles
 String getName()
          Get the name of this user
 String getPassword()
          Get the password of this user
 void removeGroup(String group)
          Remove a group from this user
 void removeRole(String role)
          Remove a role from this user
 void setPassword(String password)
          Set the password of this user
 

Method Detail

getArrayRoles

String[] getArrayRoles()
Get the roles

Returns:
the array of the roles

getArrayGroups

String[] getArrayGroups()
Get the groups

Returns:
the array of the groups

getName

String getName()
Get the name of this user

Returns:
the name of this user

getPassword

String getPassword()
Get the password of this user

Returns:
the password of this user

setPassword

void setPassword(String password)
Set the password of this user

Parameters:
password - password of the user

addGroup

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

Parameters:
group - the group to add

addRole

void addRole(String role)
Add a role to this user

Parameters:
role - the given role

removeGroup

void removeGroup(String group)
Remove a group from this user

Parameters:
group - the given group

removeRole

void removeRole(String role)
Remove a role from this user

Parameters:
role - the given role


Copyright © 2010 OW2 Consortium. All Rights Reserved.