<?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 Is it a typo in the Webengine documentation ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-a-typo-in-the-webengine-documentation/m-p/324429#M11430</link>
    <description>&lt;P&gt;&lt;A href="https://doc.nuxeo.com/nxdoc/session-and-transaction-management/"&gt;In this documentation&lt;/A&gt;, you tell:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;UserSession userSession = WebEngine.getActiveContext().getUserSession();
Principal principal = userSession.getPrincipal();
CoreSession session1 = userSession.getCoreSession();
CoreSession session2 = userSession.getCoreSession("myrepo");    

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;does the right code is :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;UserSession userSession = WebEngine.getActiveContext().getUserSession();
Principal principal = userSession.getPrincipal();
CoreSession session1 = WebEngine.getActiveContext().getCoreSession();
CoreSession session2 = WebEngine.getActiveContext().getCoreSession("myrepo");

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Mar 2019 20:06:32 GMT</pubDate>
    <dc:creator>Benjamin_JALON</dc:creator>
    <dc:date>2019-03-06T20:06:32Z</dc:date>
    <item>
      <title>Is it a typo in the Webengine documentation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-a-typo-in-the-webengine-documentation/m-p/324429#M11430</link>
      <description>&lt;P&gt;&lt;A href="https://doc.nuxeo.com/nxdoc/session-and-transaction-management/"&gt;In this documentation&lt;/A&gt;, you tell:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;UserSession userSession = WebEngine.getActiveContext().getUserSession();
Principal principal = userSession.getPrincipal();
CoreSession session1 = userSession.getCoreSession();
CoreSession session2 = userSession.getCoreSession("myrepo");    

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;does the right code is :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;UserSession userSession = WebEngine.getActiveContext().getUserSession();
Principal principal = userSession.getPrincipal();
CoreSession session1 = WebEngine.getActiveContext().getCoreSession();
CoreSession session2 = WebEngine.getActiveContext().getCoreSession("myrepo");

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Mar 2019 20:06:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-a-typo-in-the-webengine-documentation/m-p/324429#M11430</guid>
      <dc:creator>Benjamin_JALON</dc:creator>
      <dc:date>2019-03-06T20:06:32Z</dc:date>
    </item>
  </channel>
</rss>

