UserManager Class Reference

Interface for user management operations. More...

#include <UserManager.h>

Inheritance diagram for UserManager:

Inheritance graph
[legend]

Public Member Functions

virtual int createUser (const char *name, const char *passwd)=0
 creates new User in the system.
virtual int deleteUser (const char *name)=0
 deleted user from the system
Only default dba user is allowed to call this method.
virtual int changePassword (const char *newPasswd)=0
 changes password for self.
virtual int changePassword (const char *userName, const char *newPasswd)=0
 changes the password for specified user.
virtual ~UserManager ()

Detailed Description

Interface for user management operations.

This manages all the users in the system. Only default dba user
can create and delete users in the system.
If user wants to change his password, he should first get the connection and then call
appropriate method in this object to change his password.

Functionality:
1.Add and Delete Users
2.Change Password

Author:
Prabakaran Thirumalai

Definition at line 34 of file UserManager.h.


Constructor & Destructor Documentation

virtual UserManager::~UserManager (  )  [inline, virtual]

Definition at line 66 of file UserManager.h.

00066 {};


Member Function Documentation

virtual int UserManager::changePassword ( const char *  userName,
const char *  newPasswd 
) [pure virtual]

changes the password for specified user.

Only default dba user is allowed to call this method.

Parameters:
username username for authentication
password password for authentication
Returns:
int return code

Implemented in UserManagerImpl.

virtual int UserManager::changePassword ( const char *  newPasswd  )  [pure virtual]

changes password for self.

Logged in user password is set to
specified password.

Parameters:
newPasswd new password to be set.
Returns:
int return code

Implemented in UserManagerImpl.

virtual int UserManager::createUser ( const char *  name,
const char *  passwd 
) [pure virtual]

creates new User in the system.


Only default dba user is allowed to call this method.

Parameters:
name username to be created
passwd password for the schema created
Returns:
int return code

Implemented in UserManagerImpl.

virtual int UserManager::deleteUser ( const char *  name  )  [pure virtual]

deleted user from the system
Only default dba user is allowed to call this method.

Parameters:
name username to be deleted
Returns:
int return code

Implemented in UserManagerImpl.


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 22:55:26 2008 for csql by  doxygen 1.4.7