]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.api.acr/src/org/argeo/api/acr/CrName.java
Use WebDav names
[lgpl/argeo-commons.git] / org.argeo.api.acr / src / org / argeo / api / acr / CrName.java
index 099be9fdad98a54378ba39d871fb588bddde09fd..f618335077eadbcd093273cb584ed1d9520449fc 100644 (file)
@@ -1,52 +1,60 @@
 package org.argeo.api.acr;
 
 /** Standard names. */
-public enum CrName implements ContentNameSupplier {
+public enum CrName implements QNamed {
 
        /*
         * TYPES
         */
-       COLLECTION, // a collection type
+//     collection, // a collection type
 
        /*
         * ATTRIBUTES
         */
-       UUID, // the UUID of a content
+       uuid, // the UUID of a content
+       mount, // a mount point
+//     cc, // content class
 
        /*
         * ATTRIBUTES FROM FILE SEMANTICS
         */
-       CREATION_TIME, //
-       LAST_MODIFIED_TIME, //
-       SIZE, //
-       FILE_KEY, //
-       OWNER, //
-       GROUP, //
-       PERMISSIONS, //
+//     creationTime, //
+//     lastModifiedTime, //
+//     size, //
+       fileKey, //
+//     owner, //
+//     group, //
+       permissions, //
 
        /*
         * CONTENT NAMES
         */
-       ROOT,
+       root,
 
        //
        ;
 
-       public final static String CR_NAMESPACE_URI = "http://argeo.org/ns/cr";
+       public final static String CR_NAMESPACE_URI = "http://www.argeo.org/ns/cr";
        public final static String CR_DEFAULT_PREFIX = "cr";
-       private final ContentName value;
 
-       CrName() {
-               value = toContentName();
-       }
+       public final static String LDAP_NAMESPACE_URI = "http://www.argeo.org/ns/ldap";
+       public final static String LDAP_DEFAULT_PREFIX = "ldap";
 
-       @Override
-       public ContentName get() {
-               return value;
-       }
+       public final static String ROLE_NAMESPACE_URI = "http://www.argeo.org/ns/role";
+       public final static String ROLE_DEFAULT_PREFIX = "role";
+
+//     private final ContentName value;
+
+//     CrName() {
+//             value = new ContentName(CR_NAMESPACE_URI, name(), RuntimeNamespaceContext.getNamespaceContext());
+//     }
+//
+//     public QName qName() {
+//             return value;
+//     }
 
        @Override
-       public String getNamespaceURI() {
+       public String getNamespace() {
                return CR_NAMESPACE_URI;
        }