<?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 Check if a node is deleted in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184270#M137400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Alfresco, I have a fonctionnality that creates contents. Say it is an "assembly" generated from several files. This file is an XML instance, and I also create an HTML file called "simulation". This file is associated with the "assembly" in the model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my application's lifecycle, when I move the "assembly" file, I have to move the "simulation" associated file. For retrieving the associated file's NodeRef , il use the following code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static NodeRef getAssociatedSimulationNodeRef(NodeRef sourceNodeRef, NodeService nodeService) throws SimulationFileNotFoundException {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Get the specific association&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;AssociationRef&amp;gt; simulationAssociationRefList = nodeService.getTargetAssocs(sourceNodeRef, IFwsModel.PROP_RELATED_SIMULATION);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Check that the association exist&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (simulationAssociationRefList.isEmpty() ) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// No association found&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;throw new SimulationFileNotFoundException();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Get the associated reference&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NodeRef simulationNodeRef = simulationAssociationRefList.get(0).getTargetRef();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Check that the associated file already exist&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (! nodeService.exists(simulationNodeRef)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// The node doesn't exist anymore&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;throw new SimulationFileNotFoundException();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return simulationNodeRef;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;For some reasons, the "simulation" file may latter be missing. It can have been deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that when the "simulation" file has been deleted, I still have a reference to the node. It seems to be archived by Alfresco. So, I always have a reference to a node, but I can't manipulate this node. Anyway, I don't want to manipulate it. I would like to know how I can get the information that the node has been deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tryed to add some code checking for the node status, but I get errors (acegi security issues).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, i've carrefully searched accross the forum, but I haven't find my problem. Hope someone can help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use Alfresco Lab 3 on Windows XP.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 16:02:49 GMT</pubDate>
    <dc:creator>cviaud</dc:creator>
    <dc:date>2009-04-14T16:02:49Z</dc:date>
    <item>
      <title>Check if a node is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184270#M137400</link>
      <description>In Alfresco, I have a fonctionnality that creates contents. Say it is an "assembly" generated from several files. This file is an XML instance, and I also create an HTML file called "simulation". This file is associated with the "assembly" in the model.In my application's lifecycle, when I move the</description>
      <pubDate>Tue, 14 Apr 2009 16:02:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184270#M137400</guid>
      <dc:creator>cviaud</dc:creator>
      <dc:date>2009-04-14T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a node is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184271#M137401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for providing us with the example code, and a brief explanation of the problem. However, we do not fully understand the problem you are experiencing &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;A href="http://simulationcreditauto.net/" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="color: #ECF3F7; text-decoration: underline;"&gt;simulation credit auto&lt;/SPAN&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 02:31:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184271#M137401</guid>
      <dc:creator>shinichikudo</dc:creator>
      <dc:date>2009-05-20T02:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a node is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184272#M137402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for&amp;nbsp; useful infor&amp;nbsp; &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://simulationcredit1.com" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="color: #E1EBF2; text-decoration: underline;"&gt;simulationcredit&lt;/SPAN&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 03:09:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184272#M137402</guid>
      <dc:creator>vanesssa99</dc:creator>
      <dc:date>2009-05-21T03:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a node is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184273#M137403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An Alfresco reference has the form of STORE:ID. If the node doesn't exist in the regular store (spaceStore), you can create the valid reference in the Archive by replacing spareStore with archiveStore.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 07:02:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/check-if-a-node-is-deleted/m-p/184273#M137403</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2009-05-26T07:02:32Z</dc:date>
    </item>
  </channel>
</rss>

