Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

Table Permission Mask

The permission mask is set at table creation and specifies a permission mask that determines the kind of access that users may acquire on subsequent opens. The mask is comprised of three components: owner permissions, group permissions and world permissions. With this structure, you are able to allow different users different levels of access to the file. The default permission mask is set to (O_ALL | GPF_READ | GPF_WRITE | WPF_READ | WPF_WRITE). To set the table permissions, use CTTable.SetPermission(). To retrieve the permission mask, use CTTable.GetPermission(). The valid permission mask values, defined in the TABLE_PERMS enum, are:

Permission Constant

Explanation

O_READ

Owner read permission

O_WRITE

Owner write/update permission

O_DEF

Owner file definition permission

O_DELETE

Owner file deletion permission

O_ALL

Owner granted all permissions

O_NOPASS

Owner grants read only without password

G_NONE

Group access denied

G_READ

Group read permission

G_WRITE

Group write/update permission

G_DEF

Group file definition permission

G_DELETE

Group file deletion permission

G_NOPASS

Group read only access without password

W_NONE

World access denied

W_READ

World read permission

W_WRITE

World write/update permission

W_DEF

World file definition permission

W_DELETE

World file deletion permission

W_NOPASS

World read only access without password

 

TOCIndex