<?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: Declare records via foundation API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244903#M198033</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 have the same problem, so can i use the RM services out of the RM module?? can i only modify records and folders via share, imap or cifs or there is another way??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 19:01:58 GMT</pubDate>
    <dc:creator>frandepau</dc:creator>
    <dc:date>2009-12-02T19:01:58Z</dc:date>
    <item>
      <title>Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244900#M198030</link>
      <description>Hi,Is it possible to declare a record via the alfresco repository API?Adding the aspect rma:declaredRecord + properties rma:declaredBy and rma:declaredAt does not seem to work…Any ideas?Regards,Gernot</description>
      <pubDate>Wed, 02 Dec 2009 12:45:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244900#M198030</guid>
      <dc:creator>gernot</dc:creator>
      <dc:date>2009-12-02T12:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244901#M198031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The RM application uses the RM services in very specific ways - it is inadvisable to attempt to reproduce the behaviour using anything but these services, which themselves have not been written for anything other than the RM application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 13:22:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244901#M198031</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2009-12-02T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244902#M198032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Derek.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 13:56:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244902#M198032</guid>
      <dc:creator>gernot</dc:creator>
      <dc:date>2009-12-02T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244903#M198033</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 have the same problem, so can i use the RM services out of the RM module?? can i only modify records and folders via share, imap or cifs or there is another way??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 19:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244903#M198033</guid>
      <dc:creator>frandepau</dc:creator>
      <dc:date>2009-12-02T19:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244904#M198034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes you can use the RM services.&amp;nbsp;&amp;nbsp; But you will run into difficulty if, like the first post in this thread, you only do part of the required action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under the covers RM works via a set of "RMActions" and you can call those.&amp;nbsp;&amp;nbsp; Its exactly how the RM Share interface works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 19:24:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244904#M198034</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-12-02T19:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244905#M198035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is it possible to download the RM services source or the javadoc from anywhere? i get only the *.classes from the alfresco-dod5015.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 17:12:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244905#M198035</guid>
      <dc:creator>frandepau</dc:creator>
      <dc:date>2009-12-03T17:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244906#M198036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure.&amp;nbsp; SVN at &lt;/SPAN&gt;&lt;STRONG&gt;svn://&lt;A href="http://svn.alfresco.com/alfresco" rel="nofollow noopener noreferrer"&gt;svn.alfresco.com/alfresco&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp; More dev details here &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 18:26:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244906#M198036</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2009-12-03T18:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244907#M198037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 09:26:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244907#M198037</guid>
      <dc:creator>frandepau</dc:creator>
      <dc:date>2009-12-04T09:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244908#M198038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes you can use the RM services.&amp;nbsp;&amp;nbsp; But you will run into difficulty if, like the first post in this thread, you only do part of the required action.&lt;BR /&gt;&lt;BR /&gt;Under the covers RM works via a set of "RMActions" and you can call those.&amp;nbsp;&amp;nbsp; Its exactly how the RM Share interface works.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently trying to declare a record by reproducing the exact same steps as in org.alfresco.module.org_alfresco_module_dod5015.DeclareRecordAction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;// Add the declared aspect&lt;BR /&gt;Map&amp;lt;QName, Serializable&amp;gt; declaredProps = new HashMap&amp;lt;QName, Serializable&amp;gt;(2);&lt;BR /&gt;declaredProps.put(PROP_DECLARED_AT, new Date());&lt;BR /&gt;declaredProps.put(PROP_DECLARED_BY, AuthenticationUtil.getRunAsUser());&lt;BR /&gt;this.nodeService.addAspect(actionedUponNodeRef, ASPECT_DECLARED_RECORD, declaredProps);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;// remove all owner related rights &lt;BR /&gt;this.ownableService.setOwner(actionedUponNodeRef, OwnableService.NO_OWNER);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, the item is not updated with the rma:declaredRecord and stays in the undeclared state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have an idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2009 12:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244908#M198038</guid>
      <dc:creator>gernot</dc:creator>
      <dc:date>2009-12-14T12:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Declare records via foundation API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244909#M198039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mrogers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to declare a document as record programatically using below code but its throwing ModelAccessDeniedException, even though the user has sufficient permissions to file records through UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Map&amp;lt;QName, Serializable&amp;gt; declaredProps = new HashMap&amp;lt;QName, Serializable&amp;gt;(2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;declaredProps.put(RecordsManagementModel.PROP_DECLARED_AT, new Date());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;declaredProps.put(RecordsManagementModel.PROP_DECLARED_BY, "ABC);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.out.println("before declaring record");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;registry.getNodeService().addAspect(pdfNodeRef, RecordsManagementModel.ASPECT_DECLARED_RECORD, declaredProps);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have even tried to call the rest api &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/api/rma/actions/ExecutionQueue?alf_ticket=TICKET_XXXX" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/rma/actions/ExecutionQueue?alf_ticket=TICKET_XXXX&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;by passing below params but no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"name":"declareRecord",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"nodeRef":"workspace://SpacesStore/9418526e-496c-4789-8d4a-2002d66c8ed3"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please tell me what is the right way to declare the records.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 21:06:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declare-records-via-foundation-api/m-p/244909#M198039</guid>
      <dc:creator>agovikar</dc:creator>
      <dc:date>2014-05-21T21:06:14Z</dc:date>
    </item>
  </channel>
</rss>

