Index

DKAccessControlListOD

Purpose:

The DKAccessControlListOD class is an object-oriented representation of an access control list in OnDemand. It provides get and set functions. It also provides add, update, del, and retrieve functions.

Class summary:

class DKEXPORT DKAccessControlListOD
 
{
  public:
   DKAccessControlListOD(DKAccessControlOD * ac, const char * name);
      DKAccessControlListOD(DKAccessControlOD * ac);
      ~DKAccessControlListOD();
 
      void setName(const char * name);
      void setDescription(const char * description);
      void setAccessData(dkCollection * access_data);
 
      DKString getName();
      DKString getDescription();
      dkCollection * getAccessData();
 
      void retrieve();
      void add();
      void update();
      void del();
};

Members:

Constructors and destructor
The first constructor with one parameter is used to retrieve an existng access control list in the memory. The second constructor without a parameter is used to create a new access control list in the memory.
DKAccessControlListOD(const char * name);
DKAccessControlListOD();
~DKAccessControlListOD();
 
 

Member functions

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

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

setAccessData
Sets the access data for the access control list. access_data is a collection of DKAccessDataOD objects.
   void setAccessData(dkCollection * access_data);

getName
Returns the name of the access control list.
   DKString getName();

getDescription
Returns the description of the access control list.
   DKString getDescription();

getAccessData
Returns a collection of DKAccessDataOD objects containing the access data of the access control list.
   dkCollection * getAccessData();

retrieve
Retrieves the access control list from the persistent storage to main memory. Make sure that the name of the access control list is valid.
   void retrieve();

add
Adds the access control list into the persistent storage.
   void add();

update
Updates the access control list in the persistent storage. Make sure that retrieve() has been called.
   void update();

del
Deletes the access control list from the persistent storage. Make sure that retrieve() has been called.
   void del();

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