Index

DKPrivilegeICM

Purpose:

A privilege is the ability to use the Content Manager system. Content Manager privileges are used to grant to individual users and to define access control lists (ACLs). Content Manager privileges must be grouped into privilege sets before they can be used.

The CM system provides a number of unmodifiable, pre-defined privileges, called system-defined privileges. Each of these privileges authorizes a certain operation(s). System-defined privileges are enforced by the Content Manager library server stored procedures.

The CM system also allows users to define their application-specific privileges, called user-defined privileges.

Each privilege has a system-generated unique code, called the privilege definition code. Privilege definition codes 0 to 999 are reserved to store Content Manager system-defined privileges. Code 1000 and up are open for user-defined privileges.

User-defined privileges contain the rights to access and modify the Content Manager controlled entities. Access to the controlled entities, in addition to ACL checking, is controlled by this category of privileges. Some examples of user-defined privileges include the following:

The DKPrivilegeICM class is used to represent privileges in Content Manager datastores.

See Also: DKPrivilegeSetICM, DKPrivilegeGroupICM, DKAccessControlListICM.

Since: Version 8

Class summary:

class DKEXPORT DKPrivilegeICM : public dkPrivilege 
 {
 public:
    DKPrivilegeICM();
    DKPrivilegeICM(dkDatastore* ds);
    virtual ~DKPrivilegeICM();
    void setID(long id);
    long getID();
 };

Members:

Constructors and destructor
DKPrivilegeICM();

Default constructor. Constructs and initializes a privilege object that is currently not associated with any privilege group or privilege set or with a datastore.

DKPrivilegeICM(dkDatastore* ds)

Constructs and initializes a privilege class associated with the specified datastore. Parameters: ds - datastore reference. Should be an instance of DKDatastoreICM.

virtual ~DKPrivilegeICM();

Destructor for this object.

Member functions

setID
Sets the identifier for this privilege object. Parameters: id - new id to be associated with this privilege object.
void setID(long id); 

getID
Retrieves the identifier for this privilege object. Returns: identifier for this privilege object.
long getID(); 

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