<?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 Override Default Identity Session Implementation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132462#M93045</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 am building a project which involves creating a custom implementation of Identity Service because I need to use external users/groups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have implemented my own Factories like I saw in the other tutorials on the internet and this forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I extended my UserEntityManager and GroupEntityManager classes and made my own implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything ok until here, now I need to tell the Activiti Engine to use my custom SessionFactories.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read all the articles regarding this (most of them were about extending Identity Service for LDAP) but also from other sources on web.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not using Spring and I have to do this programmatically, but it seems that all the posts about this are from 2010-2011, and the code has changed since then, leaving me unable to accomplish my task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Activiti 5.12&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code I am using at this moment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessEngineConfiguration configuration =&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; ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml");&lt;BR /&gt;Map&amp;lt;Class&amp;lt; ? &amp;gt;, SessionFactory&amp;gt; sessionFactories =&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; ((ProcessEngineConfigurationImpl) configuration).getSessionFactories();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sessionFactories.put(ActivitiUserEntityManager.class, userEntityManagerFactory);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sessionFactories.put(ActivitiGroupEntityManager.class, groupEntityManagerFactory);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngine engine = configuration.buildProcessEngine();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngines.registerProcessEngine(engine);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngines.init();&lt;BR /&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I tried makes a cast to ProcessEngineConfigurationImpl, which does not seem very elegant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is this: Is there a better and a more elegant/recommended way of achieving this ? Or my implementation is following the current way of doing this in Activiti ? Also, am I missing something about this ? All the forum topics are old now, please guide me to the new/better/recommended way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorin B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 21:00:21 GMT</pubDate>
    <dc:creator>sorinello</dc:creator>
    <dc:date>2013-04-08T21:00:21Z</dc:date>
    <item>
      <title>Override Default Identity Session Implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132462#M93045</link>
      <description>Hello,I am building a project which involves creating a custom implementation of Identity Service because I need to use external users/groups.I have implemented my own Factories like I saw in the other tutorials on the internet and this forum.I extended my UserEntityManager and GroupEntityManager cl</description>
      <pubDate>Mon, 08 Apr 2013 21:00:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132462#M93045</guid>
      <dc:creator>sorinello</dc:creator>
      <dc:date>2013-04-08T21:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Override Default Identity Session Implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132463#M93046</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;Your code is correct. Not a lot has changed in the Identity service classes in the last years. Only the GroupManager and UserManager are now GroupEntityManager and UserEntityManager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And if you instantiate the engine via Java, then yes you have to cast to ProcessEngineConfigurationImpl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 14:50:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132463#M93046</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-04-09T14:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Override Default Identity Session Implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132464#M93047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever make this work?&amp;nbsp; If so, could you share some more code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 16:19:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132464#M93047</guid>
      <dc:creator>jlilley</dc:creator>
      <dc:date>2016-08-23T16:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Override Default Identity Session Implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132465#M93048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please share if you have any sample. I am looking to use spring security with activiti&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 09:18:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/override-default-identity-session-implementation/m-p/132465#M93048</guid>
      <dc:creator>jansi</dc:creator>
      <dc:date>2016-09-14T09:18:18Z</dc:date>
    </item>
  </channel>
</rss>

