<?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 to replace the identity session with 5.0? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-identity-session-with-5-0/m-p/9099#M3135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is still not stable.&amp;nbsp; That's why we don't document it yet.&amp;nbsp; Once it is stable, we document it and then the configurable pieces go in the public api.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 17:57:53 GMT</pubDate>
    <dc:creator>tombaeyens</dc:creator>
    <dc:date>2010-12-03T17:57:53Z</dc:date>
    <item>
      <title>How to replace the identity session with 5.0?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-identity-session-with-5-0/m-p/9097#M3133</link>
      <description>How to replace the identity session with 5.0?With RC1 it was possible to do the following:// Get session factoriesMap&amp;lt;Class&amp;lt;?&amp;gt;, SessionFactory&amp;gt; sessionFactories = processEngineConfiguration.getSessionFactories();// Replace the identity sessionsessionFactories.put(IdentitySession.class,ne</description>
      <pubDate>Thu, 02 Dec 2010 13:26:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-identity-session-with-5-0/m-p/9097#M3133</guid>
      <dc:creator>patobe</dc:creator>
      <dc:date>2010-12-02T13:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the identity session with 5.0?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-identity-session-with-5-0/m-p/9098#M3134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some background to this issue… our business requirements restricts us to use existing datasources with existing users and roles and we are not using the spring framework.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, after digging around in the source code I've come to the following working solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;// Read configuration from file&lt;BR /&gt;StandaloneProcessEngineConfiguration standaloneProcessEngineConfiguration = (StandaloneProcessEngineConfiguration) StandaloneProcessEngineConfiguration&lt;BR /&gt;.createProcessEngineConfigurationFromInputStream(stream);&lt;BR /&gt;&lt;BR /&gt;// Create custom factories list&lt;BR /&gt;List&amp;lt;SessionFactory&amp;gt; sessionFactories = new ArrayList&amp;lt;SessionFactory&amp;gt;();&lt;BR /&gt;&lt;BR /&gt;// Add my custom identity session factory to custom factories list&lt;BR /&gt;sessionFactories.add(new MyCustomIdentitySessionFactory());&lt;BR /&gt;&lt;BR /&gt;// Set session factories&lt;BR /&gt;standaloneProcessEngineConfiguration.setCustomSessionFactories(sessionFactories);&lt;BR /&gt;&lt;BR /&gt;// Build process engine from processEngineConfiguration&lt;BR /&gt;processEngine = standaloneProcessEngineConfiguration.buildProcessEngine();&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;I think that some documentation regarding engine configuration and custom factories would be most helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards/Patrick Öberg&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 13:18:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-identity-session-with-5-0/m-p/9098#M3134</guid>
      <dc:creator>patobe</dc:creator>
      <dc:date>2010-12-03T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the identity session with 5.0?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-identity-session-with-5-0/m-p/9099#M3135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is still not stable.&amp;nbsp; That's why we don't document it yet.&amp;nbsp; Once it is stable, we document it and then the configurable pieces go in the public api.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 17:57:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-identity-session-with-5-0/m-p/9099#M3135</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-12-03T17:57:53Z</dc:date>
    </item>
  </channel>
</rss>

