<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Share Site namespace constants in Java in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307272#M260402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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 "&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/site/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/site/1.0&lt;/A&gt;&lt;SPAN&gt;" and prefix "st".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.repo.site.SiteModel&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; 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 "&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/site/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/site/1.0&lt;/A&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone understand the convention of where and how these namespace constants are supposed to be defined?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(NB in the first version of this there was a mistake in the package org.alfresco.repo.site which I have corrected..)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 May 2013 12:17:09 GMT</pubDate>
    <dc:creator>mcox</dc:creator>
    <dc:date>2013-05-10T12:17:09Z</dc:date>
    <item>
      <title>Share Site namespace constants in Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307272#M260402</link>
      <description>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‍</description>
      <pubDate>Fri, 10 May 2013 12:17:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307272#M260402</guid>
      <dc:creator>mcox</dc:creator>
      <dc:date>2013-05-10T12:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Share Site namespace constants in Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307273#M260403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know why that constant is missing from the NamespaceService interface. That SiteModel class you found appears to be in a proprietary package–it is not an Alfresco class. So someone created those constants and didn't use the same naming convention for the constant names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may already know, but just in case, the namespaces are defined in the content model. For example, the one you are identifying here is defined in $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/model/siteModel.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 May 2013 09:53:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307273#M260403</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2013-05-11T09:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Share Site namespace constants in Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307274#M260404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! Yes, I just noticed that SiteModel class is our own code! I look at tidying it up so that it at least uses the same naming convention. (Edit: NB it turned out that there was a typo in the package name i originally quoted, and that SiteModel is an Alfresco interface after all.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I presume it was created because the values aren't defined in NamespaceService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am aware of the classes/alfresco/model XML files but I need to access these values in Java. Is there a straightforward way to do this? Presumably they are read by the Alfresco system at start-up and should be available programmatically somehow?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 10:31:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307274#M260404</guid>
      <dc:creator>mcox</dc:creator>
      <dc:date>2013-05-13T10:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Share Site namespace constants in Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307275#M260405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually that was a typo in the package I quoted..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should have been &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.repo.site.SiteModel&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;, so it is an Alfresco interface rather than a proprietary class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 15:52:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-site-namespace-constants-in-java/m-p/307275#M260405</guid>
      <dc:creator>mcox</dc:creator>
      <dc:date>2013-05-13T15:52:35Z</dc:date>
    </item>
  </channel>
</rss>

