X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.api.acr%2Fsrc%2Forg%2Fargeo%2Fapi%2Facr%2FCrName.java;h=025049966dfcd00bb6971ee9da2167dc0199990e;hb=5a7b8b145ad29401b9940f7e1493a7dec1cd0156;hp=099be9fdad98a54378ba39d871fb588bddde09fd;hpb=7d2a002f5dcfe8a8c7b29803b70d4b1aff265ed1;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.api.acr/src/org/argeo/api/acr/CrName.java b/org.argeo.api.acr/src/org/argeo/api/acr/CrName.java index 099be9fda..025049966 100644 --- a/org.argeo.api.acr/src/org/argeo/api/acr/CrName.java +++ b/org.argeo.api.acr/src/org/argeo/api/acr/CrName.java @@ -1,58 +1,67 @@ package org.argeo.api.acr; +import javax.xml.namespace.QName; + /** Standard names. */ -public enum CrName implements ContentNameSupplier { +public enum CrName { /* * TYPES */ - COLLECTION, // a collection type + collection, // a collection type /* * ATTRIBUTES */ - UUID, // the UUID of a content + uuid, // the UUID of a content + mount, /* * 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"; + + public final static String LDAP_NAMESPACE_URI = "http://www.argeo.org/ns/ldap"; + public final static String LDAP_DEFAULT_PREFIX = "ldap"; + + 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 = toContentName(); + value = new ContentName(CR_NAMESPACE_URI, name(), RuntimeNamespaceContext.getNamespaceContext()); } - @Override - public ContentName get() { + public QName qName() { return value; } - @Override - public String getNamespaceURI() { - return CR_NAMESPACE_URI; - } - - @Override - public String getDefaultPrefix() { - return CR_DEFAULT_PREFIX; - } +// @Override +// public String getNamespaceURI() { +// return CR_NAMESPACE_URI; +// } +// +// @Override +// public String getDefaultPrefix() { +// return CR_DEFAULT_PREFIX; +// } }