X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.node.api%2Fsrc%2Forg%2Fargeo%2Fnode%2FNodeConstants.java;h=889296112aeaec568a23a8cee8409b1ddadb9717;hb=0243aa5633af84d8608ba912483dbaaaefac42f1;hp=9f472ef0a9964f63dafdcd41031a8f5b655c5a62;hpb=12caa0288053858bade6e16372a0998ae4fd2820;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.node.api/src/org/argeo/node/NodeConstants.java b/org.argeo.node.api/src/org/argeo/node/NodeConstants.java index 9f472ef0a..889296112 100644 --- a/org.argeo.node.api/src/org/argeo/node/NodeConstants.java +++ b/org.argeo.node.api/src/org/argeo/node/NodeConstants.java @@ -1,7 +1,5 @@ package org.argeo.node; -import javax.jcr.Repository; - public interface NodeConstants { /* * PIDs @@ -20,10 +18,58 @@ public interface NodeConstants { String NODE_USER_DIRECTORIES_FACTORY_PID = "org.argeo.node.userDirectories"; /* - * DEPLOY + * DN ATTRIBUTES (RFC 4514) + */ + String CN = "cn"; + String L = "l"; + String ST = "st"; + String O = "o"; + String OU = "ou"; + String C = "c"; + String STREET = "street"; + String DC = "dc"; + String UID = "uid"; + + /* + * STANDARD ATTRIBUTES + */ + String LABELED_URI = "labeledUri"; + + /* + * COMMON NAMES + */ + String NODE = "node"; + String HOME = "home"; + + /* + * BASE DNs */ String DEPLOY_BASEDN = "ou=deploy,ou=node"; + /* + * 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"; + /* * FRAMEWORK PROPERTIES */ @@ -38,34 +84,31 @@ public interface NodeConstants { /** Properties configuring the node repository */ String NODE_REPO_PROP_PREFIX = "argeo.node.repo."; - /* - * STANDARD ATTRIBUTES - */ - String CN = "cn"; - String OU = "ou"; - String LABELED_URI = "labeledUri"; - - /* - * STANDARD VALUES - */ - String DEFAULT = "default"; /* * 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"; + // @Deprecated + // String ARGEO_BASE_PATH = "/argeo:system"; + // @Deprecated + // String PEOPLE_BASE_PATH = NodeConstants.ARGEO_BASE_PATH + + // "/argeo:people"; + // @Deprecated + // String DATA_MODELS_BASE_PATH = NodeConstants.ARGEO_BASE_PATH + + // "/argeo:dataModels"; + // @Deprecated + // String ALIAS_HOME = "home"; // standard aliases /** * Reserved alias for the "node" {@link Repository}, that is, the default * JCR repository. */ - String ALIAS_NODE = "node"; + // @Deprecated + // String ALIAS_NODE = "node"; /** Key for a JCR repository URI */ - String JCR_REPOSITORY_URI = "argeo.jcr.repository.uri"; +// @Deprecated +// 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"; + // @Deprecated + // String JCR_REPOSITORY_ALIAS = "argeo.jcr.repository.alias"; }