]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.node.api/src/org/argeo/node/NodeConstants.java
[maven-release-plugin] prepare for next development iteration
[lgpl/argeo-commons.git] / org.argeo.node.api / src / org / argeo / node / NodeConstants.java
1 package org.argeo.node;
2
3 public interface NodeConstants {
4 /*
5 * PIDs
6 */
7 String NODE_STATE_PID = "org.argeo.node.state";
8 String NODE_DEPLOYMENT_PID = "org.argeo.node.deployment";
9 String NODE_INSTANCE_PID = "org.argeo.node.instance";
10
11 String NODE_USER_ADMIN_PID = "org.argeo.node.userAdmin";
12 String NODE_KEYRING_PID = "org.argeo.node.keyring";
13
14 /*
15 * FACTORY PIDs
16 */
17 String NODE_REPOS_FACTORY_PID = "org.argeo.node.repos";
18 String NODE_USER_DIRECTORIES_FACTORY_PID = "org.argeo.node.userDirectories";
19
20 /*
21 * DN ATTRIBUTES (RFC 4514)
22 */
23 String CN = "cn";
24 String L = "l";
25 String ST = "st";
26 String O = "o";
27 String OU = "ou";
28 String C = "c";
29 String STREET = "street";
30 String DC = "dc";
31 String UID = "uid";
32
33 /*
34 * STANDARD ATTRIBUTES
35 */
36 String LABELED_URI = "labeledUri";
37
38 /*
39 * COMMON NAMES
40 */
41 String NODE = "node";
42 String HOME = "home";
43
44 /*
45 * BASE DNs
46 */
47 String DEPLOY_BASEDN = "ou=deploy,ou=node";
48
49 /*
50 * STANDARD VALUES
51 */
52 String DEFAULT = "default";
53
54 /*
55 * RESERVED ROLES
56 */
57 String ROLES_BASEDN = "ou=roles,ou=node";
58 String ROLE_ADMIN = "cn=admin," + ROLES_BASEDN;
59 String ROLE_USER_ADMIN = "cn=userAdmin," + ROLES_BASEDN;
60 // Special system groups that cannot be edited:
61 // user U anonymous = everyone
62 String ROLE_USER = "cn=user," + ROLES_BASEDN;
63 String ROLE_ANONYMOUS = "cn=anonymous," + ROLES_BASEDN;
64
65 /*
66 * LOGIN CONTEXTS
67 */
68 String LOGIN_CONTEXT_USER = "USER";
69 String LOGIN_CONTEXT_ANONYMOUS = "ANONYMOUS";
70 String LOGIN_CONTEXT_DATA_ADMIN = "DATA_ADMIN";
71 String LOGIN_CONTEXT_SINGLE_USER = "SINGLE_USER";
72
73 /*
74 * PATHS
75 */
76 String PATH_DATA = "/data";
77 String PATH_JCR = "/jcr";
78 String PATH_JCR_PUB = "/pub";
79
80 /*
81 * FRAMEWORK PROPERTIES
82 */
83 String NODE_INIT = "argeo.node.init";
84 String I18N_DEFAULT_LOCALE = "argeo.i18n.defaultLocale";
85 String I18N_LOCALES = "argeo.i18n.locales";
86 // Node Security
87 String ROLES_URI = "argeo.node.roles.uri";
88 /** URI to an LDIF file or LDAP server used as initialization or backend */
89 String USERADMIN_URIS = "argeo.node.useradmin.uris";
90 // Node
91 /** Properties configuring the node repository */
92 String NODE_REPO_PROP_PREFIX = "argeo.node.repo.";
93
94 /*
95 * LEGACY
96 */
97 // @Deprecated
98 // String ARGEO_BASE_PATH = "/argeo:system";
99 // @Deprecated
100 // String PEOPLE_BASE_PATH = NodeConstants.ARGEO_BASE_PATH +
101 // "/argeo:people";
102 // @Deprecated
103 // String DATA_MODELS_BASE_PATH = NodeConstants.ARGEO_BASE_PATH +
104 // "/argeo:dataModels";
105 // @Deprecated
106 // String ALIAS_HOME = "home";
107 // standard aliases
108 /**
109 * Reserved alias for the "node" {@link Repository}, that is, the default
110 * JCR repository.
111 */
112 // @Deprecated
113 // String ALIAS_NODE = "node";
114 /** Key for a JCR repository URI */
115 // @Deprecated
116 // String JCR_REPOSITORY_URI = "argeo.jcr.repository.uri";
117 // parameters (typically for call to a RepositoryFactory)
118 /** Key for a JCR repository alias */
119 // @Deprecated
120 // String JCR_REPOSITORY_ALIAS = "argeo.jcr.repository.alias";
121 }