<?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 How to use updateProperties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189044#M142174</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;I would like to update the properties to a node with the webscript updateProperties. &lt;/SPAN&gt;&lt;STRONG&gt;Can you give me an example of the URL ?&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried differents syntax but there dont work… &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Found on : &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/index/all" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index/all&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;—————————————————————————————————————————————————&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Update properties (updateProperties) PUT /alfresco/service/api/node/{store_type}/{store_id}/{id} &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT /alfresco/service/api/path/{store_type}/{store_id}/{id} &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;— &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This service updates properties of the specified object. As per the data model, content-streams are not properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inputs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ID objectId&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Optional) String changeToken&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Collection propertyCollection - Subset list of Properties to update&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Outputs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ID objectId&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Preserves the ID of the object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Subset of properties: Properties not specified in this list are not changed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To remove a property, specify property with no value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If an attempt is made to update a read-only property, throw ConstraintViolationException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If a ChangeToken is provided by the repository when the object is retrieved, the change token MUST be included as-is when calling updateProperties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For Multi-Value properties, the whole list of values MUST be provided on every update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use getAllowableActions to identify whether older version specified by ID is updatable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is a private working copy, some repositories may not support updates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because repositories MAY automatically create new Document Versions on a user’s behalf, the objectId returned may not match the one provided as an input to this method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;— &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Authentication: user &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transaction: required &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Format Style: argument &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Default Format: atomentry &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Id: org/alfresco/repository/store/item.put &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/repository/store/item.put.desc.xml&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2009 14:37:21 GMT</pubDate>
    <dc:creator>dranakan</dc:creator>
    <dc:date>2009-03-02T14:37:21Z</dc:date>
    <item>
      <title>How to use updateProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189044#M142174</link>
      <description>Hello,I would like to update the properties to a node with the webscript updateProperties. Can you give me an example of the URL ?I have tried differents syntax but there dont work… &lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;ThanksFound on : http://localhost:8080/alfresco/service/index/all—————————————————————————————————————————————————Up</description>
      <pubDate>Mon, 02 Mar 2009 14:37:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189044#M142174</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2009-03-02T14:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use updateProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189045#M142175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's part of the CMIS API. &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/CMIS" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/CMIS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 15:15:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189045#M142175</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-03-02T15:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use updateProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189046#M142176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I have good understand, I can't use this script directly in the browser.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 15:44:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189046#M142176</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2009-03-02T15:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use updateProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189047#M142177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's correct - (broadly speaking) browsers typically only support GET and POST requests from URL and form submissions respectively. Plus CMIS is ATOM-based rather than HTML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The metadata webscripts might be of more use to you, if you're not familiar with CMIS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/index/package/org/alfresco/repository/metadata" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index/package/org/alfresco/repository/metadata&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 16:04:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189047#M142177</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-03-02T16:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use updateProperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189048#M142178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any example on how to call such a webscript from JAVA ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created the URLConnection and then i do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;connection.setDoOutput(true);&lt;BR /&gt;connection.setRequestMethod("PUT");&lt;SPAN class="line-numbers-rows"&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;SPAN&gt;Now the problem is, how do i pass the collection of properties that i want to update and their values ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know i have to use the outputstream that is given by the connection, but how and what do i serialize to an array of byte to write to the stream ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 13:51:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-updateproperties/m-p/189048#M142178</guid>
      <dc:creator>hpalma</dc:creator>
      <dc:date>2009-03-16T13:51:08Z</dc:date>
    </item>
  </channel>
</rss>

