Index

dkPrivilegeSet

Purpose:

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

DKPrivilegeSetICM and so forth. 

Class summary:

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

Members:

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

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 set.
virtual DKString  getName(); 

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

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

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

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

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); 

addPrivilegeGroup
Adds the given privilege group object (memory-only).
virtual void addPrivilegeGroup(dkPrivilegeGroup* privGroupObj); 

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

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