<?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: Cancel check out using original document node reference in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210686#M163816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The issue has got resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get a working copy reference from the original node id, put a query like below…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ASPECT:"cm:workingcopy" AND @cm\:source:"workspace://SpacesStore/f8faf091-1931-4715-b0dc-762c82504e3b"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above query, the node id used is the node id of the original document. This query will give the working copy reference using which we can cancel the checkout / update(re-checkin) the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Punit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2009 23:47:11 GMT</pubDate>
    <dc:creator>punit_oza</dc:creator>
    <dc:date>2009-02-20T23:47:11Z</dc:date>
    <item>
      <title>Cancel check out using original document node reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210683#M163813</link>
      <description>Hello everyone,I want to perform cancelcheckout of a document in my application. But for that as I understand we need the working copy reference of the original document. But my application first searches the documents using repository service. In the search results we do not get the working copy re</description>
      <pubDate>Fri, 20 Feb 2009 01:34:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210683#M163813</guid>
      <dc:creator>punit_oza</dc:creator>
      <dc:date>2009-02-20T01:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel check out using original document node reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210684#M163814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Punit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't get any method that returns working copy reference if file is already checkedout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to my application, I am craeting a folder(folder name based on request id for eg., A123) in alfresco server.&amp;nbsp; If I upload a photo (for eg., car.jpeg) using photo browser, then I renamed this jpeg file like photo.jpeg&amp;nbsp; and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I put this photo in the request id folder. I am uploading 5 different files for a request id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me explain what I did. When I upload a document in alfresco tht time —&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Case 1: If file is already checkin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I am adding versioning aspect to the checkin file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Checkedout the checkin file and get the CheckOutResult object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) get the Working Copy Reference from CheckOutResult object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) write the data in working copy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) checkin the file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Case 2: If file is already checkedout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) If i add versioning aspect to the checkedout file, it is throwing following exception–&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RepositoryFault:&amp;lt;ns1:errorCode&amp;gt;0&amp;lt;/ns1:errorCode&amp;gt;&amp;lt;ns1:message&amp;gt;org.alfresco.service.cmr.lock.NodeLockedException: Can not perform operation since the node (id:91fec287-e3b9-11dd-bbcd-d302f1baf9e5) is locked.&amp;lt;/ns1:message&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That means Node is already checkedout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) that time I am getting the file name and extn which we have to upload. In my case, no need to get file name from alfresco because I always rename the file before uploading operation (file name depends on browse button).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note : As per my understanding, you can't do checkout/checkin for different extn. means if you have already a file policy.doc in alfresco then you can't checkin this file by some other extn (for eg, policy.pdf)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3)Now I am creating a new file object like filename + " (Working Copy)." + extn&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: As you noticed that when you checkedout a file (policy.pdf) that time alfresco creates a working copy (policy Working Copy.pdf)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4)Now I am searching this file name in that request id then I am getting&amp;nbsp; workingCopyReference of checkedout file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5) write the data in working copy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6) checkin the file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it will help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nishant Chauhan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 04:42:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210684#M163814</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2009-02-20T04:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel check out using original document node reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210685#M163815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much for the reply..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The applicable case to me is Case 2 and step 4 onwards..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I understand you are suggesting to get the working copy reference using file name i.e the &amp;lt;file-name&amp;gt;(working copy) given by alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this approach is also fine to get the working copy reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i was thinking if I could get reference using some identifier then it would be better..that means instead of searching thru filename if i could search using some identifier for ex : node id then it would be better..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am trying to implement another approach, i will try that if it works and post the result. The solution is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the node id of the original document. Now each working copy of the original document has the "source" property set to node id of the original document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if I do a query with criteria as source property equals the node id that i have, then this will return me the references of working copies of the original document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the only thing is I have to get the latest relevent working copy. So i will try that out and post the result….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the help…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Punit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 08:21:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210685#M163815</guid>
      <dc:creator>punit_oza</dc:creator>
      <dc:date>2009-02-20T08:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel check out using original document node reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210686#M163816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The issue has got resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get a working copy reference from the original node id, put a query like below…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ASPECT:"cm:workingcopy" AND @cm\:source:"workspace://SpacesStore/f8faf091-1931-4715-b0dc-762c82504e3b"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above query, the node id used is the node id of the original document. This query will give the working copy reference using which we can cancel the checkout / update(re-checkin) the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Punit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 23:47:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210686#M163816</guid>
      <dc:creator>punit_oza</dc:creator>
      <dc:date>2009-02-20T23:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel check out using original document node reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210687#M163817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This post helped me, thank you all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a question, if no-one will mind: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't I see the 'cm:workingcopy' aspect when using node browser?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:24:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-check-out-using-original-document-node-reference/m-p/210687#M163817</guid>
      <dc:creator>lista</dc:creator>
      <dc:date>2009-03-05T10:24:30Z</dc:date>
    </item>
  </channel>
</rss>

