Index

dkUserDef

Purpose:

The dkUserDef provides a generic interface to user definition object functions. It must be subclassed for each datastore implementation, for example:

DKUserDefICM and so forth. 

Class summary:

 class DKEXPORT dkUserDef
 {
   public:
    dkUserDef();
    virtual ~dkUserDef(); 
    virtual void setDatastore(dkDatastore* ds);
    virtual dkDatastore* getDatastore();
    virtual void setName(const char* name);
    virtual DKString getName();
    virtual DKString datastoreType();
    virtual void setDescription(const char* desc);
    virtual DKString getDescription();
    virtual void setFullName(const char* fullName);
    virtual DKString getFullName();
    virtual void setPassword(const char* authentication);
    virtual void changePassword(const char* oldPwd, const char* newPwd);
 };

Members:

Constructors and destructor
dkUserDef();                            virtual ~dkUserDef();
 

Member functions

setDatastore
Sets the datastore.
virtual void setDatastore(dkDatastore* ds);

getDatastore
Gets the datastore.
virtual dkDatastore* getDatastore(); 

datastoreType
Gets the datastore type.
virtual DKString datastoreType();

getName
Gets the name of this user.
virtual DKString  getName();

setName
Sets the name for this user.
virtual void setName(const char* name);

getDescription
Gets the description of this user.
virtual DKString  getDescription();

setDescription
Sets the description of this user.
void setDescription(const char* description);

getFullName
Gets the user full name.
virtual DKString getFullName();

setFullName
Sets the user full name.
virtual void setFullName(const char* fullName);

setPassword
Sets user password.
virtual void setPassword(const char* authentication);

changePassword
Changes the password of a given user.
virtual void changePassword(const char* oldPwd, const char* newPwd);

Note:
DKUsageError exception thrown if function is not implemented.

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.