AnsweredAssumed Answered

Share Site namespace constants in Java

Question asked by mcox@amnesty.org on May 10, 2013
Latest reply on May 13, 2013 by mcox@amnesty.org
The NamespaceService Java interface includes constants for common namespaces and namespace prefixes such as CONTENT_MODEL_1_0_URI and CONTENT_MODEL_PREFIX but nothing for the Share site namespace "http://www.alfresco.org/model/site/1.0" and prefix "st".

I have found
org.alfresco.repo.site.SiteModel
which defines SITE_MODEL_PREFIX as "st" but confusingly rather than SITE_MODEL_1_0_URI as might be extrapolated it has SITE_MODEL_URL for "http://www.alfresco.org/model/site/1.0".

Does anyone understand the convention of where and how these namespace constants are supposed to be defined?

(NB in the first version of this there was a mistake in the package org.alfresco.repo.site which I have corrected..)

Outcomes