Purpose:
The dkAuthorizationMgmt class provides a generic interface to authorization management functions. It must be subclassed for each datastore implementation, as in the following example:
DKAuthorizationMgmtICM and so forth.
Class summary:
class DKEXPORT dkAuthorizationMgmt { public: dkAuthorizationMgmt(); virtual ~dkAuthorizationMgmt(); virtual dkDatastore* getDatastore(); virtual void setDatastore(dkDatastore* ds); virtual dkCollection* listPrivilegeSets(); virtual DKString* listPrivilegeSetNames(long& arraySize); virtual dkPrivilegeSet* createPrivilegeSet(); virtual void add(dkPrivilegeSet* privSetObj); virtual void del(dkPrivilegeSet* privSetObj); virtual void deletePrivilegeSet(const char* privSetName); virtual void update(dkPrivilegeSet* privSetObj); virtual dkPrivilegeSet* retrievePrivilegeSet(const char* privSetName); virtual dkCollection* listPrivileges(); virtual DKString* listPrivilegeNames(long& arraySize); virtual dkPrivilege* createPrivilege(); virtual void add(dkPrivilege* privObj); virtual void del(dkPrivilege* privObj); virtual void deletePrivilege(const char* privName); virtual void update(dkPrivilege* privObj); virtual dkPrivilege* retrievePrivilege(const char* privName); virtual dkCollection* listPrivilegeGroups(); virtual DKString* listPrivilegeGroupNames(long& arraySize); virtual dkPrivilegeGroup* createPrivilegeGroup(); virtual void add(dkPrivilegeGroup* privGroupObj); virtual void del(dkPrivilegeGroup* privGroupObj); virtual void deletePrivilegeGroup(const char* privGroupName); virtual void update(dkPrivilegeGroup* privGroupObj); virtual dkPrivilegeGroup* retrievePrivilegeGroup(const char* privGroupName); virtual dkCollection* listAccessControlLists(); virtual DKString* listAccessControlListNames(long& arraySize); virtual dkAccessControlList* createAccessControlList(); virtual void add(dkAccessControlList* aclObj); virtual void del(dkAccessControlList* aclObj); virtual void deleteAccessControlList(const char* aclName); virtual void update(dkAccessControlList* aclObj); virtual dkAccessControlList* retrieveAccessControlList(const char* aclName); virtual void clearCache(); };
Members:
dkAuthorizationMgmt(); virtual ~dkAuthorizationMgmt();
virtual void setDatastore (dkDatastore* ds);
virtual dkDatastore* getDatastore();
virtual dkCollection* listPrivilegeSets();
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual DKString* listPrivilegeSetNames(long& arraySize);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual:
virtual dkCollection* listPrivilegeSets() = 0;
It should not throw a DKUsageError exception indicating that the method is
unimplemented.
virtual dkPrivilegeSet* createPrivilegeSet();
virtual void add(dkPrivilegeSet* privSetObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void del(dkPrivilegeSet* privSetObj);
virtual void deletePrivilegeSet(const char* privSetName);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void update(dkPrivilegeSet* privSetObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkPrivilegeSet* retrievePrivilegeSet(const char* privSetName);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkPrivilegeSet* retrieveUserPrivilegeSet(const char* userName);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkPrivilegeSet* retrieveUserGroupPrivilegeSet(const char* userGroup);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkCollection* listPrivileges();
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual DKString* listPrivilegeNames(long& arraySize);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkPrivilege* createPrivilege();
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void add(dkPrivilege* privObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void del(dkPrivilegeSet* privSetObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void deletePrivilege(const char* privName);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void update(dkPrivilege* privObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkPrivilege*
virtual dkCollection* listPrivilegeGroups();
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual DKString* listPrivilegeGroupNames(long& arraySize);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkPrivilegeGroup* createPrivilegeGroup();
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void add(dkPrivilegeGroup* privGroupObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void del(dkPrivilegeGroup* privGroupObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void deletePrivilegeGroup(const char* privGroupName);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkPrivilegeGroup* retrievePrivilegeGroup(const char* privGroupName);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkCollection* listAccessControlLists();
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual DKString* listAccessControlListNames(long& arraySize);
virtual dkAccessControlList* createAccessControlList();
virtual void add(dkAccessControlList* aclObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void del(dkAccessControlList* aclObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void deleteAccessControlList(const char* aclName);
virtual void update(dkAccessControlList* aclObj);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual dkAccessControlList* retrieveAccessControlList(const char* aclName);
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
virtual void clearCache();
If listPrivilegeSets() cannot be implemented in this (base) class, then it
should be defined as pure virtual i.e. virtual dkCollection*
listPrivilegeSets() = 0; It should not throw a DKUsageError exception
indicating that the method is unimplemented.
(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.