X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.api.acr%2Fsrc%2Forg%2Fargeo%2Fapi%2Facr%2FCrName.java;h=ead47377bddff3eb5cd26d179636735d3f578bdc;hb=54df376a9c2dd458a82eaa09bfbb718fe699dd0d;hp=f8ef602dbd5b962eb2c8df739be68c211f7ce26e;hpb=55d1a78150b6be0004f6bcb28703bcdd6daf55a1;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 f8ef602db..ead47377b 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,67 +1,59 @@ 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 - MOUNT, + 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://www.argeo.org/ns/cr"; + - public final static String CR_DEFAULT_PREFIX = "cr"; +// private final ContentName value; - 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(); - } - - @Override - public ContentName get() { - return value; - } +// CrName() { +// value = new ContentName(CR_NAMESPACE_URI, name(), RuntimeNamespaceContext.getNamespaceContext()); +// } +// +// public QName qName() { +// return value; +// } @Override - public String getNamespaceURI() { - return CR_NAMESPACE_URI; + public String getNamespace() { + return ArgeoNamespace.CR_NAMESPACE_URI; } @Override public String getDefaultPrefix() { - return CR_DEFAULT_PREFIX; + return ArgeoNamespace.CR_DEFAULT_PREFIX; } }