class xqlUser

holds the XQL-users. More...

Definition#include <xql/xqluser.h>
InheritsxqlObject [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Private Methods

Private Members


Detailed Description

holds the XQL-users. Provides functions for the management of XQL users.

 xqlUser (xqlOdbc * pConnection)

xqlUser

 ~xqlUser ()

~xqlUser

char *  className ()

className

[const]

returns the classname of this type

Reimplemented from xqlObject.

void  chPasswd (const char * pPasswd)

chPasswd

changes the password of the user. The user object has to be authorized to perform this procedure.

void  authByPasswd (const char * pPasswd)

authByPasswd

tries to authorize a user by password. If the user is authorized, the user object becomes valid

void  setUsername (const char * pName)

setUsername

sets the username. Attention! it is possible to change the username for a given user id!.

void  authBySuperUser (const xqlUser * pUser)

authBySuperUser

xqlUserId  getIdByName (const char * pName)

getIdByName

get the User id for a given name, returns XQL_NO_USER if not found.

bool  isAuthorized ()

isAuthorized

returns the authorization status of this user object.

bool  loadInstance (const int pInstId)

loadInstance

Loads the user given by Userid as pInstId into the current user object.

Reimplemented from xqlObject.

bool  createInstance ()

createInstance

Reimplemented from xqlObject.

bool  saveInstance ()

saveInstance

saves the current user, i. e. name and password.

Reimplemented from xqlObject.

void  createUser (const char * pName, const char * pPasswd)

createUser

creates a new user using name and password

xqlUserId  getUserId ()

getUserId

returns the userid of this User.

void  setAuthorized (bool pAuthValue)

setAuthorized

[private]

char *  xqlPwCrypt (const char *)

xqlPwCrypt

[private]

char * mName

mName

[private]

char * mPasswd

mPasswd

[private]

bool mIsAuthorized

mIsAuthorized

[private]