<?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 Re: Adding info to documents in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274493#M227623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a little bit confused, please have patient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I think that AlfrescoDocument class manage their extensions and their attributes, but I need the mine so I keep on using only the OpenCMIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;library instead of use ALfrescoExtension lib as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I imaged this answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) I just need to add those attributes, nothing else….. at most I may need to VIEW if possible those value on line with AlfrescoExplorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shall I add something else for this ??? this part of Alfresco is more hard to work, please have patient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jeff, very kind!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fabio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 07:55:45 GMT</pubDate>
    <dc:creator>fabernate</dc:creator>
    <dc:date>2012-08-10T07:55:45Z</dc:date>
    <item>
      <title>Adding info to documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274489#M227619</link>
      <description>HelloI have red many articles about how add informations to documents:sombody tells to add an xml file into the directory tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\share-config-custom.xmlso that I can create aspect, but it doesn't work.somebody tells to use AlfrescoDocument extensi</description>
      <pubDate>Tue, 07 Aug 2012 22:04:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274489#M227619</guid>
      <dc:creator>fabernate</dc:creator>
      <dc:date>2012-08-07T22:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding info to documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274490#M227620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are trying to set a piece of metadata you must first decide which property you are going to set. Out-of-the-box, Alfresco provides a standard content model that has properties you can set. For example, you might want to set RESULT = 'passed' as part of the title or part of the description.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most commonly your code will run remote from the Alfresco server. You've said Java is a requirement so you will want to use OpenCMIS (ships with Alfresco 4 or download from Apache Chemistry) to connect to Alfresco to make your update. Examples showing how to update both properties and content from Java using OpenCMIS live &lt;/SPAN&gt;&lt;A href="http://chemistry.apache.org/java/examples/example-create-update.html" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Be aware that many properties you will want to set are defined in "aspects" rather than "types". CMIS 1.0 lacks support for aspects, so in addition to OpenCMIS you'll want the OpenCMIS Extension for Alfresco. This also ships with Alfresco 4 or you can find it on &lt;/SPAN&gt;&lt;A href="http://code.google.com/a/apache-extras.org/p/alfresco-opencmis-extension/" rel="nofollow noopener noreferrer"&gt;Google Code&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to set a property that isn't defined in the out-of-the-box content model, you can extend the out-of-the-box content model to add your own custom types and aspects. Then you can set them as discussed above. When you do extend the content model, if you want to be able to set those properties through the Alfresco user interface, you must configure the user interface, which is why you've come across share-config-custom.xml–that's purely for configuring the Share user interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A good resource for learning how to extend the content model, configure the user interface, and create, update, delete, and query for objects via the CMIS API is &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/archives/2012/01/09/1509" rel="nofollow noopener noreferrer"&gt;this tutorial&lt;/A&gt;&lt;SPAN&gt;. It includes source code you can use on your project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, you mentioned category. Categories are part of a controlled vocabulary classification that can be added to a document to help organize your content regardless of how they are stored in the folder structure. Categories can be manipulated via both Java and JavaScript. Categories can not be managed, set, or read via CMIS. If you need to manipulate categories remotely, you'll have to write a web script and then invoke that from your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this sheds some light on what you are trying to do and gets you pointed in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 00:17:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274490#M227620</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-08-08T00:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding info to documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274491#M227621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Jeff&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so I am going to re-study how add custom property via xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I need to know something else about:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) If I use the config.xml way, do I need to use AlfrescoDocument.class or I can go on just with OpenCMis !?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) then how can files keep the information ? if I download the file and/or re-upload/update to Alfresco or to another alfresco which&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doesn't have the config file and then re-moved to the original place, will the information be available anyway ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) if the config xml was made by just these tags (and the required tags as config etc etc), would it be right ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;aspects&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;aspect name="zz:attributes"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;More Attributes&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="zz:docType"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;d&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="zz:refId"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;d&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/aspect&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 09:18:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274491#M227621</guid>
      <dc:creator>fabernate</dc:creator>
      <dc:date>2012-08-09T09:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding info to documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274492#M227622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1) If I use the config.xml way, do I need to use AlfrescoDocument.class or I can go on just with OpenCMis !?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I'm confused about what you are asking here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;2) then how can files keep the information ? if I download the file and/or re-upload/update to Alfresco or to another alfresco which&lt;BR /&gt;doesn't have the config file and then re-moved to the original place, will the information be available anyway ?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;In Alfresco, an object contains both the metadata and the content stream. Under-the-covers, the metadata lives in the relational database and the file lives on the file system, but as a developer you don't see that distinction–you just see an object. If you upload a new version of the content stream it does not change the metadata that is stored on the object. If you move the object to another folder it does not change the metadata that is stored on the object either. The only way you'd lose the metadata is if you deleted the object and then created a new one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;3) if the config xml was made by just these tags (and the required tags as config etc etc), would it be right ?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The XML you have in your post looks like a correct XML snippet from a larger Alfresco content model file, except that instead of d&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring you should use d:text. If you need to see the full content model file, refer to the source code that accompanies the tutorial referenced earlier in the thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 18:57:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274492#M227622</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-08-09T18:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding info to documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274493#M227623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a little bit confused, please have patient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I think that AlfrescoDocument class manage their extensions and their attributes, but I need the mine so I keep on using only the OpenCMIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;library instead of use ALfrescoExtension lib as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I imaged this answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) I just need to add those attributes, nothing else….. at most I may need to VIEW if possible those value on line with AlfrescoExplorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shall I add something else for this ??? this part of Alfresco is more hard to work, please have patient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jeff, very kind!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fabio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 07:55:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274493#M227623</guid>
      <dc:creator>fabernate</dc:creator>
      <dc:date>2012-08-10T07:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding info to documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274494#M227624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;AlfrescoDocument is what you use when you are using the Alfresco OpenCMIS Extensions JAR. It is required when you are working with aspect-defined properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you extend Alfresco's content model and you use nothing but types, then there is no need to use the Alfresco object factory class that is part of the OpenCMIS Extensions. When everything is in a type, you can work with it using straight CMIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 18:33:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-info-to-documents/m-p/274494#M227624</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-08-13T18:33:15Z</dc:date>
    </item>
  </channel>
</rss>

