aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/database/UserClass.java
blob: 79af61a92170c1f56bf78b6d61e076acb36008fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * 
 */
package uk.org.ury.database;


/**
 * The various user classes of the database driver.
 * 
 * These refer to various users in the database proper, and thus 
 * grant various levels of permission to the program.
 * 
 * Please use the least privileged user class that works.  For most 
 * cases, READ_ONLY should work perfectly.
 * 
 * @author  Matt Windsor
 *
 */

public enum UserClass
  {
    // Constant  configName
    READ_ONLY    ("read_only"),
    READ_WRITE   ("read_write");
    
    
    /**
     * The name of the tag in the configuration file that contains
     * the credentials for this user class.
     */
    
    public String configName;
    
    
    private
    UserClass (String configName)
    {
      this.configName = configName;
    }
  }