1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module com
{ module sun
{ module star
{ module sdbcx
{
22 /** is used for accessing and setting the permissions of a user for a database
24 @see com::sun::star::sdbcx::PrivilegeObject
25 @see com::sun::star::sdbcx::Privilege
27 published
interface XAuthorizable
: com
::sun
::star
::uno
::XInterface
30 /** retrieves the permissions for a specific object.
33 the name of the object
35 a value of com::sun::star::sdbcx::PrivilegeObject
40 @throws com::sun::star::sdbc::SQLException
41 if a database access error occurs.
43 long getPrivileges
([in]string objName
, [in]long objType
) raises
44 (com
::sun
::star
::sdbc
::SQLException
);
46 /** retrieves the permissions for a specific object, which could be granted
47 to other users and groups.
50 the name of the object
52 a value of com::sun::star::sdbcx::PrivilegeObject
57 @throws com::sun::star::sdbc::SQLException
58 if a database access error occurs.
60 long getGrantablePrivileges
([in]string objName
, [in]long objType
) raises
61 (com
::sun
::star
::sdbc
::SQLException
);
63 /** adds additional permissions for a specific object.
66 the name of the object
68 a value from the com::sun::star::sdbcx::PrivilegeObject constants group
70 a value from the com::sun::star::sdbcx::Privilege constants group
72 @throws com::sun::star::sdbc::SQLException
73 if a database access error occurs.
75 void grantPrivileges
([in]string objName
, [in]long objType
,
76 [in]long objPrivileges
) raises
77 (com
::sun
::star
::sdbc
::SQLException
);
79 /** removes permissions for a specific object from a group or user.
82 the name of the object
84 a value from the com::sun::star::sdbcx::PrivilegeObject constants group
86 a value from the com::sun::star::sdbcx::Privilege constants group
89 @throws com::sun::star::sdbc::SQLException
90 if a database access error occurs.
92 void revokePrivileges
([in]string objName
, [in]long objType
,
93 [in]long objPrivileges
) raises
94 (com
::sun
::star
::sdbc
::SQLException
);
100 /*===========================================================================
101 ===========================================================================*/
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */