]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.node.api/src/org/argeo/node/NodeConstants.java
Improve Commons API
[lgpl/argeo-commons.git] / org.argeo.node.api / src / org / argeo / node / NodeConstants.java
index 477b0b96b7ed92abbbc83944c9a41dd42ed3fb21..2bb6d06ef950a43131d4926b19fefe6b7092a893 100644 (file)
@@ -1,5 +1,7 @@
 package org.argeo.node;
 
+import javax.jcr.Repository;
+
 public interface NodeConstants {
        /*
         * PIDs
@@ -8,8 +10,8 @@ public interface NodeConstants {
        String NODE_DEPLOYMENT_PID = "org.argeo.node.deployment";
        String NODE_INSTANCE_PID = "org.argeo.node.instance";
 
-//     String NODE_REPO_PID = "org.argeo.node.repo";
        String NODE_USER_ADMIN_PID = "org.argeo.node.userAdmin";
+       String NODE_KEYRING_PID = "org.argeo.node.keyring";
 
        /*
         * FACTORY PIDs
@@ -41,10 +43,48 @@ public interface NodeConstants {
         */
        String CN = "cn";
        String OU = "ou";
-       String LABELED_URI = "labeledUri";
-       
+       String URI = "uri";
+
        /*
         * STANDARD VALUES
         */
        String DEFAULT = "default";
+
+       /*
+        * RESERVED ROLES
+        */
+       String ROLES_BASEDN = "ou=roles,ou=node";
+       String ROLE_ADMIN = "cn=admin," + ROLES_BASEDN;
+       String ROLE_USER_ADMIN = "cn=userAdmin," + ROLES_BASEDN;
+       // Special system groups that cannot be edited:
+       // user U anonymous = everyone
+       String ROLE_USER = "cn=user," + ROLES_BASEDN;
+       String ROLE_ANONYMOUS = "cn=anonymous," + ROLES_BASEDN;
+
+       /*
+        * LOGIN CONTEXTS
+        */
+       String LOGIN_CONTEXT_USER = "USER";
+       String LOGIN_CONTEXT_ANONYMOUS = "ANONYMOUS";
+       String LOGIN_CONTEXT_DATA_ADMIN = "DATA_ADMIN";
+       String LOGIN_CONTEXT_SINGLE_USER = "SINGLE_USER";
+
+       /*
+        * LEGACY
+        */
+       String ARGEO_BASE_PATH = "/argeo:system";
+       String PEOPLE_BASE_PATH = NodeConstants.ARGEO_BASE_PATH + "/argeo:people";
+       String DATA_MODELS_BASE_PATH = NodeConstants.ARGEO_BASE_PATH + "/argeo:dataModels";
+       String ALIAS_HOME = "home";
+       // standard aliases
+       /**
+        * Reserved alias for the "node" {@link Repository}, that is, the default
+        * JCR repository.
+        */
+       String ALIAS_NODE = "node";
+       /** Key for a JCR repository URI */
+       String JCR_REPOSITORY_URI = "argeo.jcr.repository.uri";
+       // parameters (typically for call to a RepositoryFactory)
+       /** Key for a JCR repository alias */
+       String JCR_REPOSITORY_ALIAS = "argeo.jcr.repository.alias";
 }