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