KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > util > Access


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.util;
15
16 import java.util.*;
17 import java.io.*;
18
19 /**
20  * Data Access and Secure - No Instances.
21  * <pre>
22  * Secure Levels:
23  * a) Client/Org {can I read/update/insert (shared) data in this table}
24  * Input: User definition, Table.AccessLevel, Data record
25  * When: Accessing any table
26  * b) Function {can I perform this function}
27  * Input: Function Secure {<user> AD_Menu <function> <r|rw>}
28  * When: Menu creation & Zoom enabled
29  * c) Data Secure {can I access this record}
30  * Input: Table.IsSecurityEnabled
31  * Data Secure {<user> <table> <data> <r|rw>)
32  * When: Acessing monitored Tables
33  *
34  * ---------------------------------------------------------------------------
35  *
36  * Table Definition AccessLevel SCO# // for (a)
37  * IsSecurityEnabled false // for (c)
38  *
39  * Each Data record: Client 0 | id
40  * Organization 0 | id
41  *
42  * User definition: Level 'SCO'
43  * ClientList c1, c2, ...
44  * OrgList o1, o2, ...
45  *
46  * SCO# Levels S__ 100 4 System info
47  * SCO 111 7 System shared info
48  * SC_ 110 6 System/Client info
49  * _CO 011 3 Client shared info
50  * __O 001 1 Organization info
51  *
52  * ---------------------------------------------------------------------------
53  *
54  * User.Level Client Org Access
55  * ---------- ------ ------ -------
56  * S 0 0 r/w
57  * C 0 0 r/o
58  * C id 0 r/w
59  * O 0 0 r/o
60  * O id 0 r/o
61  * O id id r/w
62  *
63  * </pre>
64  *
65  * @author Jorg Janke
66  * @version $Id: Access.java,v 1.6 2003/10/22 05:49:43 jjanke Exp $
67  */

68 public final class Access implements Serializable
69 {
70
71 } // Access
72
Popular Tags