<?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: Add an aspect based on document content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149226#M104229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not necessary to create a store for this action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you follow the SDK sample, you already have a NodeRef (for a node space! not for a node document!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So it's not really what you want. But if you have changed this for a node document it's ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to have a good start for creating an action, follow this link : &lt;/SPAN&gt;&lt;A href="http://www.ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf" rel="nofollow noopener noreferrer"&gt;http://www.ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 12:56:47 GMT</pubDate>
    <dc:creator>jm_pascal</dc:creator>
    <dc:date>2008-07-30T12:56:47Z</dc:date>
    <item>
      <title>Add an aspect based on document content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149223#M104226</link>
      <description>Hi guys, I would like to add an aspect to a document node wich value depends on the content of that document. What I would like to do is to sign the document and then add the signature as an aspect of the document.The problem is that I don't know how to get the document content within a dialog ( Bas</description>
      <pubDate>Wed, 30 Jul 2008 11:03:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149223#M104226</guid>
      <dc:creator>pau_carre</dc:creator>
      <dc:date>2008-07-30T11:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add an aspect based on document content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149224#M104227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can use &lt;/SPAN&gt;&lt;STRONG&gt;filefolderService &lt;/STRONG&gt;&lt;SPAN&gt; to get your content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, you can user this method : &lt;/SPAN&gt;&lt;STRONG&gt;serviceRegistry.getFileFolderService().getReader(nodeRef)&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaDoc : &lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/model/FileFolderService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/model/FileFolderService.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or you can use &lt;/SPAN&gt;&lt;STRONG&gt;ContentService&lt;/STRONG&gt;&lt;SPAN&gt; with this function :&lt;/SPAN&gt;&lt;STRONG&gt; serviceRegistry.getContentService().getReader(nodeRef, propertyQName)&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaDoc :&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/repository/ContentService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/repository/ContentService.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a beginning…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 11:50:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149224#M104227</guid>
      <dc:creator>jm_pascal</dc:creator>
      <dc:date>2008-07-30T11:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add an aspect based on document content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149225#M104228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thanks for the reply. Now the problem I have is that I don't know how to get the current NodeRef. It seems I have to use createStore from NodeService and then use the StoreRef to get the root/current NodeRef using getRootNode. But, I don't know what parameters I have to use in createStore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is createStore + getRootNode the right way to get the current node? If yes, how is the right way to call create store?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pau Carré Cardona&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 12:16:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149225#M104228</guid>
      <dc:creator>pau_carre</dc:creator>
      <dc:date>2008-07-30T12:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add an aspect based on document content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149226#M104229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not necessary to create a store for this action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you follow the SDK sample, you already have a NodeRef (for a node space! not for a node document!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So it's not really what you want. But if you have changed this for a node document it's ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to have a good start for creating an action, follow this link : &lt;/SPAN&gt;&lt;A href="http://www.ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf" rel="nofollow noopener noreferrer"&gt;http://www.ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 12:56:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-an-aspect-based-on-document-content/m-p/149226#M104229</guid>
      <dc:creator>jm_pascal</dc:creator>
      <dc:date>2008-07-30T12:56:47Z</dc:date>
    </item>
  </channel>
</rss>

