<?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 Throw-away namespaces and prefixes to the rescue...? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/throw-away-namespaces-and-prefixes-to-the-rescue/m-p/288411#M241541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, folks –&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If you haven't read Jeff's "Working with Custom Content Types" guide:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.ecmarchitect.com/images/articles/alfresco-content/content-article-2ed.pdf" rel="nofollow noopener noreferrer"&gt;http://www.ecmarchitect.com/images/articles/alfresco-content/content-article-2ed.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;… then you now have your lunch-hour assignment for the week.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Point #3 in his "Content Modeling Best Practices" section reports that content models are not chalk on a chalkboard:&amp;nbsp; while we can usually add to a content model safely, we shouldn't expect to be able to change an existing model any way we want after it has been read by the Alfresco server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; As a follow-on, I wonder if some of these headaches could be avoided by developing content models in throw-away namespaces with throw-away prefixes, such as …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;namespaces&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;namespace uri="&lt;A href="http://www.ourCompany.com/OurDepartment/PortraitTest/7.0" rel="nofollow noopener noreferrer"&gt;http://www.ourCompany.com/OurDepartment/PortraitTest/7.0&lt;/A&gt;" prefix="portTest007"/&amp;gt;&lt;BR /&gt;&amp;lt;/namespaces&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When (when!) this test model is discovered to have an irreversible design flaw, could we not avoid some of the headaches pointed out in Jeff's document by changing this model's namespace &amp;amp; prefix to something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;namespaces&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;namespace uri="&lt;A href="http://www.ourCompany.com/OurDepartment/PortraitTest/8.0" rel="nofollow noopener noreferrer"&gt;http://www.ourCompany.com/OurDepartment/PortraitTest/8.0&lt;/A&gt;" prefix="portTest008"/&amp;gt;&lt;BR /&gt;&amp;lt;/namespaces&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;… and then making the needed changes to the model?&amp;nbsp; When the model's development is complete, then the meat of the model could be moved into a production metadata model, or this model's namespace and prefix could be changed to something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;namespaces&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;namespace uri="&lt;A href="http://www.ourCompany.com/OurDepartment/Portrait/1.0" rel="nofollow noopener noreferrer"&gt;http://www.ourCompany.com/OurDepartment/Portrait/1.0&lt;/A&gt;" prefix="port001"/&amp;gt;&lt;BR /&gt;&amp;lt;/namespaces&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think of an approach like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Sep 2013 21:18:19 GMT</pubDate>
    <dc:creator>oofdachile</dc:creator>
    <dc:date>2013-09-15T21:18:19Z</dc:date>
    <item>
      <title>Throw-away namespaces and prefixes to the rescue...?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/throw-away-namespaces-and-prefixes-to-the-rescue/m-p/288411#M241541</link>
      <description>Hi, folks –&amp;nbsp; If you haven't read Jeff's "Working with Custom Content Types" guide:http://www.ecmarchitect.com/images/articles/alfresco-content/content-article-2ed.pdf… then you now have your lunch-hour assignment for the week.&amp;nbsp; Point #3 in his "Content Modeling Best Practices" section reports that c</description>
      <pubDate>Sun, 15 Sep 2013 21:18:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/throw-away-namespaces-and-prefixes-to-the-rescue/m-p/288411#M241541</guid>
      <dc:creator>oofdachile</dc:creator>
      <dc:date>2013-09-15T21:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Throw-away namespaces and prefixes to the rescue...?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/throw-away-namespaces-and-prefixes-to-the-rescue/m-p/288412#M241542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I gave this a try:&amp;nbsp; I changed a metadata model's namespace and prefix, and then updated the prefix references everywhere in the model.&amp;nbsp; Then I made the changes to the model that would otherwise have driven our Alfresco Community 4.2.d server crazy, and restarted the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the upside, the changes worked (and on the first try, yet)!&amp;nbsp; I would guess that Alfresco is still hanging onto the old model somewhere, though I can't see it anywhere, since I no longer reference its old prefix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the downside, the two or three content items with which I was experimenting disappeared.&amp;nbsp; Upon reflection, that makes perfect sense.&amp;nbsp; Though I can't see these old-model content items, if I try to check in one of these documents into this same space again, Alfresco rightfully complains.&amp;nbsp; Because I'm developing the metadata model on a throw-away instance of Alfresco, I don't have very many items in there, by definition, but it still makes sense to delete the items FIRST and THEN change the model.&amp;nbsp; I would guess that I can find these "lost" items via the node browser &amp;amp; purge them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy Alfresquing!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 21:50:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/throw-away-namespaces-and-prefixes-to-the-rescue/m-p/288412#M241542</guid>
      <dc:creator>oofdachile</dc:creator>
      <dc:date>2013-09-20T21:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Throw-away namespaces and prefixes to the rescue...?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/throw-away-namespaces-and-prefixes-to-the-rescue/m-p/288413#M241543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem with this though is you still have to delete all the files that were using the model. You can just edit the model without changing its namespace/prefix if you have no data to worry about.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 23:37:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/throw-away-namespaces-and-prefixes-to-the-rescue/m-p/288413#M241543</guid>
      <dc:creator>tomoconnell</dc:creator>
      <dc:date>2013-10-24T23:37:25Z</dc:date>
    </item>
  </channel>
</rss>

