X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.api.acr%2Fsrc%2Forg%2Fargeo%2Fapi%2Facr%2FCrName.java;h=22aa82b9191db20f40698ee8c3a31b56c0bb9918;hb=975fb5e581d0650768afc68a0e839657f318e77a;hp=1b29b366132eae40ff88c5e73a564b98357608b1;hpb=cc1dd97ebcc32e1bd754073ad23def182f460452;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 1b29b3661..22aa82b91 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,63 +1,68 @@ 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 - MOUNT, + uuid, // the UUID of a content + mount, + 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_BASIC_NAMESPACE_URI = CR_NAMESPACE_URI + "/basic"; -// public final static String CR_OWNER_NAMESPACE_URI = CR_NAMESPACE_URI + "/owner"; -// public final static String CR_POSIX_NAMESPACE_URI = CR_NAMESPACE_URI + "/posix"; - + 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; +// } }