<?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: How do I get/set document tags through the automation client? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319977#M6978</link>
    <description>&lt;P&gt;Based on http&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2011 20:11:52 GMT</pubDate>
    <dc:creator>jostout_Stout</dc:creator>
    <dc:date>2011-09-22T20:11:52Z</dc:date>
    <item>
      <title>How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319974#M6975</link>
      <description>&lt;P&gt;I'm having a heck of a time finding documentation on getting/setting document tags through the automation client. I found the TagServiceImpl but it wants a CoreSession not a ConcreteJavaProxy. Can someone point me in the right direction?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 17:15:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319974#M6975</guid>
      <dc:creator>jostout_Stout</dc:creator>
      <dc:date>2011-09-22T17:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319975#M6976</link>
      <description>&lt;P&gt;Woops, that ConcreteJavaProxy should be org.nuxeo.ecm.automation.client.jaxrs.spi.DefaultSession. The ConcreteJavaProxy is the jruby wrapper class.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 18:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319975#M6976</guid>
      <dc:creator>jostout_Stout</dc:creator>
      <dc:date>2011-09-22T18:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319976#M6977</link>
      <description>&lt;P&gt;Today there's no operation to tag a document. You could easily write one though, that would call the underlying TagService.&lt;/P&gt;
&lt;P&gt;Operations available in Nuxeo 5.4.2 are listed at &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.4.2/listOperations" target="test_blank"&gt;http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.4.2/listOperations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 19:38:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319976#M6977</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-09-22T19:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319977#M6978</link>
      <description>&lt;P&gt;Based on http&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 20:11:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319977#M6978</guid>
      <dc:creator>jostout_Stout</dc:creator>
      <dc:date>2011-09-22T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319978#M6979</link>
      <description>&lt;P&gt;If you code through Automation Client then you don't have access to all the Nuxeo APIs, only the Automation ones. If you want to code using all the Nuxeo APIs then you have to code server-side, by writing a new service or a new Operation.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2011 16:33:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319978#M6979</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-09-23T16:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319979#M6980</link>
      <description>&lt;P&gt;in the meantime has been implemented tagging through automation client?
Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 10:01:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319979#M6980</guid>
      <dc:creator>maumig_</dc:creator>
      <dc:date>2013-09-16T10:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319980#M6981</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In the last comment, maumig mention an implementation of tagging through automation client... can you give me hints on how this is done?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 21:27:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319980#M6981</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2014-10-14T21:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319981#M6982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;OK I did it in a new operation&lt;/P&gt;
&lt;P&gt;@Operation(id=SetDocumentTag.ID, category=Constants.CAT_DOCUMENT, label="SetDocumentTag", description="")
public class SetDocumentTag {
public static final String ID = "SetDocumentTag";
private static final Log log = LogFactory.getLog(SetDocumentTag.class);&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Context
protected CoreSession session;

@Param(name = "label", required = true)
protected String label;

@Param(name = "username", required = true)
protected String username;

@OperationMethod
public void run(DocumentModel input) throws Exception {
    TagService service = Framework.getLocalService(TagService.class);
    String docId = input.getId();
    log.error("SetDocumentTag&amp;gt; docId=" + docId + " tag=" + label + " username=" + username);
    service.tag(session, docId, label, username);
    session.save();
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 10:40:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319981#M6982</guid>
      <dc:creator>Arnault_</dc:creator>
      <dc:date>2014-10-27T10:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319982#M6983</link>
      <description>&lt;P&gt;This one s a bit late :&lt;/P&gt;
&lt;P&gt;list / search tags : &lt;CODE&gt;select * from tags (where tag:label like '%odontolo%')&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;you can then retrieve the UUID of the Tag&lt;/P&gt;
&lt;P&gt;list tagged documents : &lt;CODE&gt;select * from  Tagging where relation:target = '*UUID_OF_THE_TAG*'&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Create a &lt;STRONG&gt;Tagging&lt;/STRONG&gt; document (inherits from Relation) with&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;**relation:source**&lt;/CODE&gt; being the UUID of your document,&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;**relation:target**&lt;/CODE&gt; the UUID of the Tag and&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;**ecm:path**&lt;/CODE&gt; the label of the tag&lt;/P&gt;
&lt;P&gt;Note that both are HiddenInNavigation, the ecm:path is also used for storing the tag label and it causes some problems when querying through the UI (advanced search queries can lead to "Illegal relative path with null node")&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 07:45:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319982#M6983</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2015-03-30T07:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set document tags through the automation client?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319983#M6984</link>
      <description>&lt;P&gt;much better since 7.1&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 11:07:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-get-set-document-tags-through-the-automation-client/m-p/319983#M6984</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-02-15T11:07:46Z</dc:date>
    </item>
  </channel>
</rss>

