interface XAuthorizable in module com::sun::star::sdbcx::

(Global Index)

Syntax

interface XAuthorizable : com::sun::star::uno::XInterface ;

Description

is used for accessing and setting the permissions of a user for a database object.

See also

PrivilegeObject

Method Summary

getPrivileges retrieves the permissions for a specific object.

getGrantablePrivileges retrieves the permissions for a specific object, which could be granted to other users and groups.

grantPrivileges adds additional permissions for a specific object.

revokePrivileges removes permissions for a specific object from a group or user.

Known Services Which Export this Interface

com::sun::star::sdbcx::Group

Method Details



getPrivileges

Syntax

long getPrivileges (
string objName,
long objType )
raises ( com::sun::star::sdbc::SQLException );

Description

retrieves the permissions for a specific object.

Parameter objName

the name of the object

Parameter objType

a value of

Returns

the privileges

Throws

com::sun::star::sdbc::SQLException if a database access error occurs.

getGrantablePrivileges

Syntax

long getGrantablePrivileges (
string objName,
long objType )
raises ( com::sun::star::sdbc::SQLException );

Description

retrieves the permissions for a specific object, which could be granted to other users and groups.

Parameter objName

the name of the object

Parameter objType

a value of

Returns

the grant privileges

Throws

com::sun::star::sdbc::SQLException if a database access error occurs.

grantPrivileges

Syntax

void grantPrivileges (
string objName,
long objType,
long objPrivileges )
raises ( com::sun::star::sdbc::SQLException );

Description

adds additional permissions for a specific object.

Parameter objName

the name of the object

Parameter objType

a value of

Throws

com::sun::star::sdbc::SQLException if a database access error occurs.

revokePrivileges

Syntax

void revokePrivileges (
string objName,
long objType,
long objPrivileges )
raises ( com::sun::star::sdbc::SQLException );

Description

removes permissions for a specific object from a group or user.

Parameter objName

the name of the object

Parameter objType

a value of

Throws

com::sun::star::sdbc::SQLException if a database access error occurs.
Top of Page