%SYS
SQLPrivileges Class Reference

Define the SQL Privilege mapping in the ^SYS global Mapping was added for SQL Privileges to take advantage of XML export. More...

Inheritance diagram for SQLPrivileges:
Collaboration diagram for SQLPrivileges:

Static Public Member Functions

_.Library.Status Export (_.Library.String FileName, _.Library.Integer NumExported)
 This method exports SQL Object Privilege records to a file in xml format. More...
 
_.Library.Status Import (_.Library.String FileName, _.Library.Integer NumImported, _.Library.Integer Flags)
 Import SQLPrivilege records from an xml file. More...
 

Public Attributes

 Grantable
 Grantable - 1/0, can this privilege be granted by the user. More...
 
 Grantee
 Grantee - user/role the privilege was granted to. More...
 
 Grantor
 Grantor - user/role that granted the privilege. More...
 
 Namespace
 Namespace the privilege is defined in. More...
 
 Privilege
 Privilege assigned to the user/role. More...
 
 SQLObject
 ObjectType,ObjectName e.g. More...
 
 SQLPrivString
 SQL Privilege resource string. More...
 

Detailed Description

Define the SQL Privilege mapping in the ^SYS global Mapping was added for SQL Privileges to take advantage of XML export.

Member Function Documentation

◆ Export()

_.Library.Status Export ( _.Library.String  FileName,
_.Library.Integer  NumExported 
)
static

This method exports SQL Object Privilege records to a file in xml format.


Parameters:
Filename - Output file name
NumExported (byref) - Returns number of records exported.

◆ Import()

_.Library.Status Import ( _.Library.String  FileName,
_.Library.Integer  NumImported,
_.Library.Integer  Flags 
)
static

Import SQLPrivilege records from an xml file.


Parameters:
FileName - Filename to import Role records from
NumImported (byref) - Returns number of records imported
Flags - Control import
Bit 0 - Do not import records, just return count
Note: On failure, no records will be imported

Member Data Documentation

◆ Grantable

Grantable

Grantable - 1/0, can this privilege be granted by the user.

 

◆ Grantee

Grantee

Grantee - user/role the privilege was granted to.

 

◆ Grantor

Grantor

Grantor - user/role that granted the privilege.

 

◆ Namespace

Namespace

Namespace the privilege is defined in.

 

◆ Privilege

Privilege

Privilege assigned to the user/role.

 

◆ SQLObject

SQLObject

ObjectType,ObjectName e.g.

"1,Sample.Person" or "3,Sample.PersonView"

 

◆ SQLPrivString

SQLPrivString

SQL Privilege resource string.