Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: 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

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.