Index

dkPrivilegeGroup

Purpose:

The dkPrivilegeGroup provides a generic interface to privilege group object functions. It must be subclassed for each datastore implementation, for example:

 DKPrivilegeGroupICM   and so forth.

Class summary:

class DKEXPORT dkPrivilegeGroup
 {
   public:
     dkPrivilegeGroup();
     virtual ~dkPrivilegeGroup();
     virtual dkDatastore* getDatastore();
     virtual void setDatastore(dkDatastore* ds);
     virtual DKString  getName();
     virtual void setName(const char* name);
     virtual DKString  getDescription();
     virtual void setDescription(const char* description);
     virtual dkCollection* listPrivileges();
     virtual DKString* listPrivilegeNames(long& arraySize);
     virtual void addPrivilege(dkPrivilege* privObj);
     virtual void removePrivilege(const char* name);
     virtual void clearCache();
 };

Members:

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

Member functions

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

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

get
Gets the name of this privilege group.
virtual DKString  getName(); 

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

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

setDescription
Sets the description of this privilege group.
virtual void setDescription(const char* description);

listPrivileges
Gets a list of privileges from the persistent datastore .
virtual dkCollection* listPrivileges(); 

Note:
DKUsageError exception thrown if function is not implemented.

listPrivilegeNames
Gets a list of privilege names from the persistent datastore.
virtual DKString* listPrivilegeNames(long& arraySize);

Note:
DKUsageError exception thrown if function is not implemented.

addPrivilege
Adds the given privilege object (memory-only).
virtual void addPrivilege(dkPrivilege* privObj);

removePrivilege
Removes the given privilege object (memory-only) .
virtual void removePrivilege(const char* name);

Note:
DKUsageError exception thrown if function is not implemented.

clearCache
Clear privilege group cache.
virtual void clearCache();

Note:
DKUsageError exception thrown if function is not implemented.

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