]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.api.acr/src/org/argeo/api/acr/CrName.java
Register JCR namespaces.
[lgpl/argeo-commons.git] / org.argeo.api.acr / src / org / argeo / api / acr / CrName.java
1 package org.argeo.api.acr;
2
3 /** Standard names. */
4 public enum CrName implements ContentNameSupplier {
5
6 /*
7 * TYPES
8 */
9 COLLECTION, // a collection type
10
11 /*
12 * ATTRIBUTES
13 */
14 UUID, // the UUID of a content
15 MOUNT,
16
17 /*
18 * ATTRIBUTES FROM FILE SEMANTICS
19 */
20 CREATION_TIME, //
21 LAST_MODIFIED_TIME, //
22 SIZE, //
23 FILE_KEY, //
24 OWNER, //
25 GROUP, //
26 PERMISSIONS, //
27
28 /*
29 * CONTENT NAMES
30 */
31 ROOT,
32
33 //
34 ;
35
36 public final static String CR_NAMESPACE_URI = "http://www.argeo.org/ns/cr";
37
38 public final static String CR_DEFAULT_PREFIX = "cr";
39
40 public final static String LDAP_NAMESPACE_URI = "http://www.argeo.org/ns/ldap";
41 public final static String LDAP_DEFAULT_PREFIX = "ldap";
42
43 public final static String ROLE_NAMESPACE_URI = "http://www.argeo.org/ns/role";
44 public final static String ROLE_DEFAULT_PREFIX = "role";
45
46 private final ContentName value;
47
48 CrName() {
49 value = toContentName();
50 }
51
52 @Override
53 public ContentName get() {
54 return value;
55 }
56
57 @Override
58 public String getNamespaceURI() {
59 return CR_NAMESPACE_URI;
60 }
61
62 @Override
63 public String getDefaultPrefix() {
64 return CR_DEFAULT_PREFIX;
65 }
66
67 }