Index

DKAccessControlList

Purpose:

The dkAccessControlList class provides a generic interface to access control list functions. It must be subclassed for each datastore implementation, for example here is the Content Manager version:

DKAccessControlListICM

Class summary:

class DKEXPORT dkAccessControlList
{
public
dkAccessControlList();
virtual ~dkAccessControlList();
 
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* listACLData();
virtual DKString* listUsrGrps(long& arraySize);
			virtual DKString* listUsers(long& arraySize);
virtual DKString* listGroups(long& arraySize);
virtual void addACLData(DKACLData* aclData);
virtual void removeACLData(DKACLData* acl_data);
virtual void clearCache();
}; 

Members:

Constructors and destructor
The dkAccessControlList constructor.
dkAccessControlList();
virtual ~dkAccessControlList();

Member functions

listACLdata
Gets the access data of the access control list.
virtual dkCollection* listACLData(); 

listUserGrps
Gets a list of user or groups in this access control list.
virtual DKString* listUserGrps(long& arraySize); 

listUsers
Gets a list of userids in this access control list.
virtual DKString* listUsers(long& arraySize); 

listsGroups
Gets a list of groups in this access control list.
virtual DKString* listGroups(long& arraySize);

addACLData
Adds a new pair of privilege set and user/group to this access control list.
virtual void addACLData(DKACLData* aclData); 

removeACLData
Removes a pair of privilege set and user group from the access control list (memory-only).
virtual void removeACLData(DKACLData* aclData); 

clearCache
Clears access control list cache.
virtual void clearCache(); 

setDatastore
Sets the datastore in the access control list.
void setDatastore(dkDatastore* ds); 

getDatastore
Gets the datastore from the access control list.
dkDatastore* getDatastore(); 

setName
Sets the access control list name.
void setName(const char* name); 

setName
Gets the access control list name.
DKString getName(); 

setDescription
Sets the access control list description.
void setDescription(const char* desc); 

getDescription
Gets the access control list description.
DKString getDescription(); 

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