<?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 getSession() CMIS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/getsession-cmis/m-p/55426#M20262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to write the getSession function, and I'm facing a problem&amp;nbsp; in getting authenticated user password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public Session getSession() {&lt;/P&gt;&lt;P&gt;if (session == null) {&lt;BR /&gt; // default factory implementation&lt;BR /&gt; SessionFactory factory = SessionFactoryImpl.newInstance();&lt;BR /&gt; Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt; &lt;BR /&gt; // user credentials&lt;BR /&gt; parameter.put(SessionParameter.USER, getUser());&lt;BR /&gt; parameter.put(SessionParameter.PASSWORD, getPassword());&lt;BR /&gt; &lt;BR /&gt; // connection settings&lt;BR /&gt; //parameter.put(SessionParameter.ATOMPUB_URL, getServiceUrl()); // Uncomment for Atom Pub binding&lt;BR /&gt; parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); // Uncomment for Atom Pub binding&lt;/P&gt;&lt;P&gt;parameter.put(SessionParameter.BROWSER_URL, getServiceUrl()); // Uncomment for Browser binding&lt;BR /&gt; parameter.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value()); // Uncomment for Browser binding&lt;BR /&gt; &lt;BR /&gt; // Set the alfresco object factory&lt;BR /&gt; // Used when using the CMIS extension for Alfresco for working with aspects and CMIS 1.0&lt;BR /&gt; // This is not needed when using CMIS 1.1&lt;BR /&gt; //parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");&lt;BR /&gt; &lt;BR /&gt; List&amp;lt;Repository&amp;gt; repositories = factory.getRepositories(parameter);&lt;BR /&gt; &lt;BR /&gt; this.session = repositories.get(0).createSession();&lt;BR /&gt; }&lt;BR /&gt; return this.session;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the function I'm working on it from Jeff Potts tutorial.&lt;BR /&gt;&lt;SPAN&gt;I want to replace getPassword() by authenticated user password.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2019 14:41:41 GMT</pubDate>
    <dc:creator>riadhazzouz</dc:creator>
    <dc:date>2019-03-18T14:41:41Z</dc:date>
    <item>
      <title>getSession() CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getsession-cmis/m-p/55426#M20262</link>
      <description>I'm trying to write the getSession function, and I'm facing a problem&amp;nbsp; in getting authenticated user password.public Session getSession() {if (session == null) { // default factory implementation SessionFactory factory = SessionFactoryImpl.newInstance(); Map&amp;lt;String, String&amp;gt; parameter = new Has</description>
      <pubDate>Mon, 18 Mar 2019 14:41:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getsession-cmis/m-p/55426#M20262</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-03-18T14:41:41Z</dc:date>
    </item>
  </channel>
</rss>

