(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

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

interface XAuthorizable
Description
is used for accessing and setting the permissions of a user for a database object.
See also
PrivilegeObject

Methods' 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.  
Methods' Details
getPrivileges
long
getPrivileges( [in] string  objName,
[in] 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
long
getGrantablePrivileges( [in] string  objName,
[in] 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
void
grantPrivileges( [in] string  objName,
[in] long  objType,
[in] 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 from the PrivilegeObject constants group
Throws
com::sun::star::sdbc::SQLException if a database access error occurs.
revokePrivileges
void
revokePrivileges( [in] string  objName,
[in] long  objType,
[in] 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 from the PrivilegeObject constants group
Throws
com::sun::star::sdbc::SQLException if a database access error occurs.
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.