<?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: Node API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250562#M203692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay but a little question: the "description property" of the file, exist as default or i have to create it inside my custom model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;nodeService.getProperty(nodeRef, ContentModel.PROP_NAME);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;ContentModel is a custom or default model? Because PROP_NAME doesen't work in my code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jun 2012 16:01:31 GMT</pubDate>
    <dc:creator>removedquasar</dc:creator>
    <dc:date>2012-06-03T16:01:31Z</dc:date>
    <item>
      <title>Node API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250560#M203690</link>
      <description>I'm making a custom action and i want to change the description of a file (node), inside alfresco.I saw that there are methods like setTitle and setDescription but i found them only for actions or others (wiki pages ecc).Those methods are aviable for nodes? (if yes please tell me which API is). Than</description>
      <pubDate>Sat, 02 Jun 2012 12:04:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250560#M203690</guid>
      <dc:creator>removedquasar</dc:creator>
      <dc:date>2012-06-02T12:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Node API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250561#M203691</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;the description of a file is a regular property of the node that represents that file. The JavaScript API has a simplification for this, so you can set the description via a setDescription method (or the shorthand version of &lt;/SPAN&gt;&lt;EM&gt;node.description = "new description";&lt;/EM&gt;&lt;SPAN&gt;). When writing a custom action in Java, you need to use the Alfresco Foundation API / Services to work with nodes / NodeRef. In order to alter the description, you need to use the NodeService and either one of its addProperties / setProperty methods. The Alfresco wiki contains a &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/NodeRef_cookbook" rel="nofollow noopener noreferrer"&gt;Cookbook on working with nodes&lt;/A&gt;&lt;SPAN&gt; that might be of interest to you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2012 13:16:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250561#M203691</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-06-02T13:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Node API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250562#M203692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay but a little question: the "description property" of the file, exist as default or i have to create it inside my custom model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;nodeService.getProperty(nodeRef, ContentModel.PROP_NAME);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;ContentModel is a custom or default model? Because PROP_NAME doesen't work in my code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 16:01:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250562#M203692</guid>
      <dc:creator>removedquasar</dc:creator>
      <dc:date>2012-06-03T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Node API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250563#M203693</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;ContentModel is a default model - you should be able to import it if working against the SDK or the alfresco data model JAR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 17:21:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250563#M203693</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-06-03T17:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Node API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250564#M203694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much for this, i solved my problem importing ContentModel :mrgreen:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 10:43:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-api/m-p/250564#M203694</guid>
      <dc:creator>removedquasar</dc:creator>
      <dc:date>2012-06-04T10:43:48Z</dc:date>
    </item>
  </channel>
</rss>

