blob: 48cb2d333c079f338bfe4117551b0f2604147e05 (
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
|
/**
*
*/
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;
/**
* Constructs a new UserClass.
*
* @param configName The name of the user class in the config.
*/
private UserClass(String configName) {
this.configName = configName;
}
}
|