Index
Purpose:
The DKAccessDataDL class is an object-oriented representation of an access
date associating with an access control list. It provides get and set
functions. This class defines the entries in an access control
list.
Class summary:
class DKAccessDataDL
{
public:
DKAccessDataDL(long command,
long patron_type,
const char * patron,
const char * privilege_name);
DKAccessDataDL();
~DKAccessDataDL();
long getCommand();
long getPatronType();
DKString getPatron();
DKString getPrivilegeName();
void setCommand(long command);
void setPatronType(long patron_type);
void setPatron(const char * patron);
void setPrivilegeName(const char * privilege_name);
};
Members:
-
-
- Constructors and destructor
- The first DKAccessDataDL constructor has four parameters:
- command indicates the command for this object.
- patron_type indicates the type of a user.
- patron specifies the name of a user.
- privilege_name indicates the textual name of a privilege
set.
The second constructor sets the command of this access data. The
valid command can be one of the following:
- DK_ACTION_ADD - add the access data in the access control list
- DK_ACTION_MODIFY- update the access data in the access control
list.
- DK_ACTION_DELETE - delete the access data from the access control
list.
A valid patron type can be one of the following:
- DK_PATRON_TYPE_GROUP - group access
- DK_PATRON_TYPE_OWNER - owner access
- DK_PATRON_TYPE_PUBLIC - public access
- DK_PATRON_TYPE_USER - user access
DKAccessDataDL(long command,
long patron_type,
const char * patron,
const char * privilege_name);
DKAccessDataDL();
~DKAccessDataDL();
- Member functions
-
- getCommand
- Returns the command of this access data.
long getCommand();
- getPatronType
- Returns the type of the patron.
long getPatronType();
- getPatron
- Returns the user ID of the patron.
DKString getPatron();
- getPrivilegeName
- Returns the name of the privlege set.
DKString getPrivilegeName();
- setCommand
- Sets the command of this access data. The valid command can be one
of the following:
- DK_ACTION_ADD - add the access data in the access control list
- DK_ACTION_MODIFY - update the access data in the access control list
- DK_ACTION_DELETE - delete the access data from the access control list
void setCommand(long command);
- setPatronType
-
Sets the type of the patron. The valid patron type can be one of the
following:
- DK_PATRON_TYPE_GROUP - group access
- DK_PATRON_TYPE_OWNER - owner access
- DK_PATRON_TYPE_PUBLIC - public access
- DK_PATRON_TYPE_USER - user access
void setPatronType(long patron_type);
- setPatron
- Sets the user ID of the patron.
void setPatron(const char * patron);
- setPrivilegeName
- Sets the name of the privilege set.
void setPrivilegeName(const char * privilege_name);
(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.