]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.api.acr/src/org/argeo/api/acr/CrName.java
Clarify system roles
[lgpl/argeo-commons.git] / org.argeo.api.acr / src / org / argeo / api / acr / CrName.java
1 package org.argeo.api.acr;
2
3 import javax.xml.namespace.QName;
4
5 /** Standard names. */
6 public enum CrName {
7
8 /*
9 * TYPES
10 */
11 collection, // a collection type
12
13 /*
14 * ATTRIBUTES
15 */
16 uuid, // the UUID of a content
17 mount,
18
19 /*
20 * ATTRIBUTES FROM FILE SEMANTICS
21 */
22 creationTime, //
23 lastModifiedTime, //
24 size, //
25 fileKey, //
26 owner, //
27 group, //
28 permissions, //
29
30 /*
31 * CONTENT NAMES
32 */
33 root,
34
35 //
36 ;
37
38 public final static String CR_NAMESPACE_URI = "http://www.argeo.org/ns/cr";
39 public final static String CR_DEFAULT_PREFIX = "cr";
40
41 public final static String LDAP_NAMESPACE_URI = "http://www.argeo.org/ns/ldap";
42 public final static String LDAP_DEFAULT_PREFIX = "ldap";
43
44 public final static String ROLE_NAMESPACE_URI = "http://www.argeo.org/ns/role";
45 public final static String ROLE_DEFAULT_PREFIX = "role";
46
47 private final ContentName value;
48
49 CrName() {
50 value = new ContentName(CR_NAMESPACE_URI, name(), RuntimeNamespaceContext.getNamespaceContext());
51 }
52
53 public QName qName() {
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 }