<?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: Exchange IdentityService (or other services) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19112#M8804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a related discussion in the user forum: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=345" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=345&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;There we also came to the conclusion that the ProcessEngineFactoryBean for Spring needs the ability of configuring sessions, but no JIRA issue was raised for it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Nov 2010 08:18:54 GMT</pubDate>
    <dc:creator>falko_menge</dc:creator>
    <dc:date>2010-11-05T08:18:54Z</dc:date>
    <item>
      <title>Exchange IdentityService (or other services)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19108#M8800</link>
      <description>Hey guys.I just had a look in the wiring with the use case: How can I exchange the IdentityService (since I maybe want to use my own implementation or LDAP or whatever). But the wiring is done in the ProcessEngineConfiguration() constructor by "identityService = new IdentityServiceImpl();".Is there</description>
      <pubDate>Thu, 04 Nov 2010 14:00:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19108#M8800</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2010-11-04T14:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange IdentityService (or other services)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19109#M8801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bernd,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we had the very same requirement, too. We wanted Activiti to base on an already existing proprietary user database instead of its own one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a ProcessEngineConfiguration.setIdentitySession() API that allows for setting a custom implementation of the identity service (although, the default implementation is then created unnecessary).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem here is: Activiti accesses the IdentitySession (not IdentityService) implementation internally from many places (via commandContext.getIdentitySession()), so it was of no help to customize the IdentityService, but we had to implement our custom IdentitySession instead. Otherwise, Activiti would still use the default implementation which accesses the user/group information from the Activiti database in many places.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to configure the custom IdentitySession, we extended the ProcessEngineFactoryBean (since we use Spring to configure the engine) and set the custom IdentitySession using the following "hack":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ProcessEngine getObject() throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processEngineConfiguration.getSessionFactories().put(IdentitySession.class, new SessionFactory() {&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; @Override&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; public Session openSession() {&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (Session) identitySession;&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; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return super.getObject();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;In my opinion, we should streamline not only the configuration, but also the concept of the services and the sessions so that customizing one implementation and configuring it via a proper way is possible. This could be done, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) by providing a clean way to configure a custom IdentitySession and keep Activiti accessing the IdentitySession directly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) keep the current configuration option for the IdentityService, but make sure Acitivit never accesses the IdentitySession directly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c) any other clean way that works&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Disclaimer: all information bases on 5.0.beta1 and might have changed since)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 16:12:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19109#M8801</guid>
      <dc:creator>cstettler</dc:creator>
      <dc:date>2010-11-04T16:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange IdentityService (or other services)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19110#M8802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Christian: changing the IdentitySession by adding it to the sessionFactories is indeed the way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What makes you feel this is hacky? I assume you want to have a 'setIdentitySession()' methode there ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) is the way the go and how it is intended: internally the session should be used always.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So Imo following things need to happen:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Have a way in Spring to add a Session &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Find out why it is possible to set the services on the processEngineConfiguration, this is indeed strange from the point of view that the sessions should be used.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 18:52:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19110#M8802</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2010-11-04T18:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange IdentityService (or other services)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19111#M8803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;for now, the simplest way to customize the identity session could be to overwrite the identity session factory after the process engine has been built.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the approach that i think we should pursue is this:&amp;nbsp; add parsing of this kind of line to ConfigurationParse:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;session class="the.SessionClass" factory="the.FactoryClass" /&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;and that should call &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;processEngineConfiguration.getSessionFactories().put(sessionClass, sessionFactoryObject);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;anyone interested in contributing? then create a jira for it and assign it to you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 18:59:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19111#M8803</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-11-04T18:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange IdentityService (or other services)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19112#M8804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a related discussion in the user forum: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=345" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=345&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;There we also came to the conclusion that the ProcessEngineFactoryBean for Spring needs the ability of configuring sessions, but no JIRA issue was raised for it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 08:18:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19112#M8804</guid>
      <dc:creator>falko_menge</dc:creator>
      <dc:date>2010-11-05T08:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange IdentityService (or other services)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19113#M8805</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;I hope this helps to someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed integrate customer user management services with Activiti. Results I posted to &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=345&amp;amp;p=23461#p23461" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=345&amp;amp;p=23461#p23461&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mondhs&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 10:45:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exchange-identityservice-or-other-services/m-p/19113#M8805</guid>
      <dc:creator>mondhs</dc:creator>
      <dc:date>2013-04-09T10:45:46Z</dc:date>
    </item>
  </channel>
</rss>

