xref: /aoo42x/main/offapi/com/sun/star/sdbcx/Privilege.idl (revision d1766043)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_sdbcx_Privilege_idl__
24#define __com_sun_star_sdbcx_Privilege_idl__
25
26 module com {  module sun {  module star {  module sdbcx {
27
28
29/** defines a list of flags (bitmaps) which determines the accessrights of a
30	 user or a user group. This list may grow in the future.
31 */
32published constants Privilege
33{
34	//-------------------------------------------------------------------------
35
36	/** indicates that a user is allowed to read the data.
37	 */
38	const long SELECT 		= 0x00000001;
39	//-------------------------------------------------------------------------
40
41	/** indicates that a user is allowed to insert new data.
42	 */
43	const long INSERT 		= 0x00000002;
44	//-------------------------------------------------------------------------
45
46	/** indicates that a user is allowed to update data.
47	 */
48	const long UPDATE 		= 0x00000004;
49	//-------------------------------------------------------------------------
50
51	/** indicates that a user is allowed to delete data.
52	 */
53	const long DELETE 		= 0x00000008;
54	//-------------------------------------------------------------------------
55
56	/** indicates that a user is allowed to read the structure of a definition object.
57	 */
58	const long READ		   	= 0x00000010;
59	//-------------------------------------------------------------------------
60
61	/** indicates that a user is allowed to create a definition object.
62	 */
63	const long CREATE   	= 0x00000020;
64	//-------------------------------------------------------------------------
65
66	/** indicates that a user is allowed to alter an existing object.
67	 */
68	const long ALTER   		= 0x00000040;
69	//-------------------------------------------------------------------------
70
71	/** indicates that a user is allowed to set foreign keys for a table.
72	 */
73	const long REFERENCE	= 0x00000080;
74	//-------------------------------------------------------------------------
75
76	/** indicates that a user is allowed to drop a definition object.
77	 */
78	const long DROP   		= 0x00000100;
79};
80
81//=============================================================================
82
83}; }; }; };
84
85/*===========================================================================
86===========================================================================*/
87#endif
88