org.mobicents.slee.enabler.userprofile.jpa.jmx
Class UserProfileControlManagement

java.lang.Object
  extended by org.mobicents.slee.enabler.userprofile.jpa.jmx.UserProfileControlManagement
All Implemented Interfaces:
UserProfileControlManagementMBean

public class UserProfileControlManagement
extends java.lang.Object
implements UserProfileControlManagementMBean

Management interface for user profiles stored on JPA.

Author:
martins

Field Summary
 
Fields inherited from interface org.mobicents.slee.enabler.userprofile.jpa.jmx.UserProfileControlManagementMBean
MBEAN_NAME
 
Method Summary
 void addUser(java.lang.String username, java.lang.String password)
          Adds a new user with the specified username and password.
static UserProfileControlManagement getInstance()
           
 UserProfile getUser(java.lang.String username)
          Retrieves the user profile for the specified username.
 java.lang.String[] listUsers()
          Retrieves all users.
 java.lang.String listUsersAsString()
          Retrieves all users, separated by commas, in a single string.
 boolean removeUser(java.lang.String username)
          Removes the user with specified username.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UserProfileControlManagement getInstance()

start

public void start()
Throws:
java.lang.Exception

stop

public void stop()

addUser

public void addUser(java.lang.String username,
                    java.lang.String password)
             throws java.lang.NullPointerException,
                    java.lang.IllegalStateException
Description copied from interface: UserProfileControlManagementMBean
Adds a new user with the specified username and password.

Specified by:
addUser in interface UserProfileControlManagementMBean
Throws:
java.lang.NullPointerException - if the username is null
java.lang.IllegalStateException - if the user already exists

listUsers

public java.lang.String[] listUsers()
Description copied from interface: UserProfileControlManagementMBean
Retrieves all users.

Specified by:
listUsers in interface UserProfileControlManagementMBean
Returns:

listUsersAsString

public java.lang.String listUsersAsString()
Description copied from interface: UserProfileControlManagementMBean
Retrieves all users, separated by commas, in a single string.

Specified by:
listUsersAsString in interface UserProfileControlManagementMBean
Returns:

removeUser

public boolean removeUser(java.lang.String username)
                   throws java.lang.NullPointerException
Description copied from interface: UserProfileControlManagementMBean
Removes the user with specified username.

Specified by:
removeUser in interface UserProfileControlManagementMBean
Returns:
true if the user existed and was removed, false otherwise
Throws:
java.lang.NullPointerException - if the username is null

getUser

public UserProfile getUser(java.lang.String username)
                    throws java.lang.NullPointerException
Retrieves the user profile for the specified username.

Parameters:
username -
Returns:
Throws:
java.lang.NullPointerException


Copyright © 2010. All Rights Reserved.