Index

DXAccessDataDL

Purpose:

The DXAccessDataDL class is an object-oriented representation of an access date associating with an access control list.

Methods:

init
init(long command, 
         long patron_type, 
         LPCTSTR patron,       
         LPCTSTR privilege_name);

Must be called following the creation of a DXAccessDataDL object to associate with: command indicating the command for this object, patron_type indicating the type of a user. patron indicating the name of a user, and privilege_name indicating the textual name of a privilege set.

A valid command can be one of the following:

DX_DL_ACTION_ADD
add the access data in the access control list

DX_DL_ACTION_MODIFY
update the access data in the access control list

DX_DL_ACTION_DELETE
delete the access data from the access control list

A valid patron type can be one of the following:

DX_DL_PATRON_TYPE_GROUP
group access

DX_DL_PATRON_TYPE_OWNER
owner access

DX_DL_PATRON_TYPE_PUBLIC
public access

DX_DL_PATRON_TYPE_USER
user access

getCommand
long getCommand();

Returns the command of this access data.

getPatronType
 long getPatronType();

Returns the type of the patron.

getPatron
BSTR getPatron();

Returns the user ID of the patron.

getPriviledgeName
BSTR getPrivilegeName();

Returns the name of the privilege set.

setCommand
 setCommand(long command);

Sets the command of this access data. The valid command can be one of the following:

DX_DL_ACTION_ADD
add the access data in the access control list

DX_DL_ACTION_MODIFY
update the access data in the access control list

DX_DL_ACTION_DELETE
delete the access data from the access control list

setPatronType
void setPatronType(long patron_type);

Sets the type of the patron. A valid patron type can be one of the following:

DX_DL_PATRON_TYPE_GROUP
group access

DX_DL_PATRON_TYPE_OWNER
owner access

DX_DL_PATRON_TYPE_PUBLIC
public access

DX_DL_PATRON_TYPE_USER
user access

setPatron
setPatron(LPCTSTR patron);

Sets the user ID of the patron.

setPriviledgeName
 setPrivilegeName(LPCTSTR privilege_name);

Sets the name of the privilege set.

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