<?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: IdentitySession in Activiti 5.5 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49956#M28892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I found it but still need team advice to fully hack it. The problem with my LDAP is that it stores password hash instead of passwords themself. My customised UserManager.findUserById returns then UserEntity object with empty password property so then CheckPassword 'command' verifies user/pass negative.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to replace one or even both of below clases in configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.impl.cmd.CheckPassword&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.impl.IdentityServiceImpl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My customised CheckPassword will try to login into LDAP backend to verify given user/pass pair instead of compare them with User object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to configure activiti.cfg.xml or somewhere else to change CheckPassword command or if not then whole IdentityServiceImpl ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 May 2011 10:25:21 GMT</pubDate>
    <dc:creator>p4w3l</dc:creator>
    <dc:date>2011-05-29T10:25:21Z</dc:date>
    <item>
      <title>IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49929#M28865</link>
      <description>Hey,I wanted to integrate Spring Security into Activit's IdentitySession, but I was uanble to find the IdentitySession-Interface.Could It be, that it is no longer available under the FQN: org.activiti.engine.impl.cfg.IdentitySession?Ciao,Christoph</description>
      <pubDate>Mon, 02 May 2011 14:02:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49929#M28865</guid>
      <dc:creator>zeroone</dc:creator>
      <dc:date>2011-05-02T14:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49930#M28866</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;The persistence internals have been renamed a bit. Look for UserManager and GroupManager now…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 14:04:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49930#M28866</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-05-02T14:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49931#M28867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks found it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 14:11:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49931#M28867</guid>
      <dc:creator>zeroone</dc:creator>
      <dc:date>2011-05-02T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49932#M28868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since a lot of people have been asking on how to integrate their own user/group tables, would it be fair to ask for this to be included in the manual even with an EXPERIMENTAL tag ? I had just about puzzled the IdentitySession integration together from the forums, and now it has been renamed/split into UserManager and GroupManager. This is bound to throw off many forum searches.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jorg&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 12:14:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49932#M28868</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2011-05-03T12:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49933#M28869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can always start with writing a page that can be in the wiki or something… so feel free to write down what you did and how you achieved things… &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 14:33:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49933#M28869</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-05-03T14:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49934#M28870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I implemented custom identity session with Spring Security using the approach discuss here &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=1261" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=1261&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As IdentitySession is interface, where GroupManager and UserManager are concrete class. How do I implement the custom identity service in Activiti 5.5?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lastly, in my opinion, it was more to major refactoring instead of minor renaming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advice. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 07:59:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49934#M28870</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-05-05T07:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49935#M28871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone? This issue was blocking the release of Grails Activiti Plugin 5.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 05:42:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49935#M28871</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-05-06T05:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49936#M28872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How do I implement the custom identity service in Activiti 5.5?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I also have the requirement to acces an LDAP, I've written two classes extending &lt;/SPAN&gt;&lt;EM&gt;GroupManager &lt;/EM&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;EM&gt;UserManager &lt;/EM&gt;&lt;SPAN&gt;respective. Before creating the process engine, I have put the two classes as managers into the configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Map&amp;lt;Class&amp;lt;?&amp;gt;,SessionFactory&amp;gt; facts = ((ProcessEngineConfigurationImpl)config).getSessionFactories();&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;facts.put( GroupManager.class, new org.activiti.engine.impl.persistence.GenericManagerFactory( LDAPGroupManager.class ) );&lt;BR /&gt;facts.put( UserManager .class, new org.activiti.engine.impl.persistence.GenericManagerFactory( LDAPUserManager .class ) );&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is, that after the Password is accepted, and the user group "admin" is succesfully delivered, the logon fails with the following error appearing on the browser:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;HTTP ERROR: 500&lt;BR /&gt;Request processing failed; nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository&lt;BR /&gt;RequestURI=/activiti-probe/service/&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which methods are required at minimum in these two classes. Are there another manager required to implement?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 13:51:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49936#M28872</guid>
      <dc:creator>transconnect</dc:creator>
      <dc:date>2011-05-06T13:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49937#M28873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We desperately need an answer to Chee Kin's question (see above).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Markus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 12:40:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49937#M28873</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2011-05-09T12:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49938#M28874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what I did is to add this to "processEngineConfiguration" config in spring, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="customSessionFactories"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="com.xxxxx.user.ActivitiCustomUserManagerFactory"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="usersDao" ref="usersDAO"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And this factory will return ActivitiCustomUserManager (extends UserManager) in its openSession() method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Similar thing should be needed for GroupManager and its Factory as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 00:32:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49938#M28874</guid>
      <dc:creator>ageen</dc:creator>
      <dc:date>2011-05-10T00:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49939#M28875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;what I did is to add this to "processEngineConfiguration" config in spring, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="customSessionFactories"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="com.xxxxx.user.ActivitiCustomUserManagerFactory"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="usersDao" ref="usersDAO"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;And this factory will return ActivitiCustomUserManager (extends UserManager) in its openSession() method. &lt;BR /&gt;&lt;BR /&gt;Similar thing should be needed for GroupManager and its Factory as well.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for writing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;property name="customSessionFactories"&amp;gt;&lt;BR /&gt;&amp;lt;list&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.grails.activiti.springsecurity.SpringSecurityUserManagerFactory"&amp;gt;&lt;BR /&gt;&amp;lt;property name="usersDao" ref="usersDAO"/&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.grails.activiti.springsecurity.SpringSecurityGroupManagerFactory"&amp;gt;&lt;BR /&gt;&amp;lt;property name="groupsDao" ref="groupsDAO"/&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;and SpringSecurityUserManagerFactory implementation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;package org.grails.activiti.springsecurity;&lt;BR /&gt;&lt;BR /&gt;import org.activiti.engine.impl.interceptor.Session;&lt;BR /&gt;import org.activiti.engine.impl.interceptor.SessionFactory;&lt;BR /&gt;&lt;BR /&gt;class SpringSecurityUserManagerFactory implements SessionFactory {&lt;BR /&gt; public Class&amp;lt;?&amp;gt; getSessionType() {&lt;BR /&gt;&amp;nbsp; return UserManager.class;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; public Session openSession() {&lt;BR /&gt;&amp;nbsp; return new UserManager();&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Unluckily, the code above doesn't work, did I overlook anything?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 02:56:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49939#M28875</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-05-10T02:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49940#M28876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I managed to make it work by doing what you did:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public Class&amp;lt;?&amp;gt; getSessionType() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return UserManager.class;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; public Session openSession() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new MyUserManager();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt; Notice the&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;My&lt;/STRONG&gt;&lt;SPAN&gt;UserManager()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the &lt;/SPAN&gt;&lt;A href="http://svn.codehaus.org/activiti/activiti/tags/activiti-5.4/modules/activiti-engine/src/test/java/org/activiti/standalone/cfg/identity/" rel="nofollow noopener noreferrer"&gt;activity repository&lt;/A&gt;&lt;SPAN&gt; one can find a test that shows how to replace the IdentitySession. However that code doesn't work anymore in activiti 5.5 as mention here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice to know if the way to replace the IdentitySession/UserManager will change in the future. I understand that activiti is currently under development but I think it is important to know if which APIs are stable besides the public APIs. Unfortunately there is no documentation about it (or at least I could not find it).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 16:21:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49940#M28876</guid>
      <dc:creator>carlos1</dc:creator>
      <dc:date>2011-05-10T16:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49941#M28877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;what I did is to add this to "processEngineConfiguration" config in spring, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="customSessionFactories"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="com.xxxxx.user.ActivitiCustomUserManagerFactory"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="usersDao" ref="usersDAO"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;And this factory will return ActivitiCustomUserManager (extends UserManager) in its openSession() method. &lt;BR /&gt;&lt;BR /&gt;Similar thing should be needed for GroupManager and its Factory as well.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Thanks for writing. &lt;BR /&gt;&lt;BR /&gt;I tried the following configuration:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;property name="customSessionFactories"&amp;gt;&lt;BR /&gt;&amp;lt;list&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.grails.activiti.springsecurity.SpringSecurityUserManagerFactory"&amp;gt;&lt;BR /&gt;&amp;lt;property name="usersDao" ref="usersDAO"/&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.grails.activiti.springsecurity.SpringSecurityGroupManagerFactory"&amp;gt;&lt;BR /&gt;&amp;lt;property name="groupsDao" ref="groupsDAO"/&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;and SpringSecurityUserManagerFactory implementation:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;package org.grails.activiti.springsecurity;&lt;BR /&gt;&lt;BR /&gt;import org.activiti.engine.impl.interceptor.Session;&lt;BR /&gt;import org.activiti.engine.impl.interceptor.SessionFactory;&lt;BR /&gt;&lt;BR /&gt;class SpringSecurityUserManagerFactory implements SessionFactory {&lt;BR /&gt; public Class&amp;lt;?&amp;gt; getSessionType() {&lt;BR /&gt;&amp;nbsp; return UserManager.class;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; public Session openSession() {&lt;BR /&gt;&amp;nbsp; return new UserManager();&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;What error did you see? In your config, the factory has DAO reference, how come there is not such property in your actual class?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unluckily, the code above doesn't work, did I overlook anything?&lt;BR /&gt;&lt;BR /&gt;Please advice.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Chee Kin&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 17:43:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49941#M28877</guid>
      <dc:creator>ageen</dc:creator>
      <dc:date>2011-05-10T17:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49942#M28878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What error did you see? In your config, the factory has DAO reference, how come there is not such property in your actual class?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for writing. It is copy and paste mistake. I basically set up the Spring application context using Spring DSL in Grails. The corrected code (my application don't need DAOs) below is for illustration only:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;property name="customSessionFactories"&amp;gt;&lt;BR /&gt;&amp;lt;list&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean class="org.grails.activiti.springsecurity.SpringSecurityUserManagerFactory" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean class="org.grails.activiti.springsecurity.SpringSecurityGroupManagerFactory" /&amp;gt;&lt;BR /&gt;&amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 00:53:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49942#M28878</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-05-11T00:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49943#M28879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I boot up my application, I find out that the activiti engine invokes getSessionType() of SpringSecurityUserManagerFactory and SpringSecurityGroupManagerFactory, but not openSession().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the way I implement the UserManager, may I know is there anything wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;package org.grails.activiti.springsecurity&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;class UserManager extends org.activiti.engine.impl.persistence.entity.UserManager {&lt;BR /&gt;…&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;Please see a complete source code here &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/grails-activiti-spring-security-plugin/source/browse/src/groovy/org/grails/activiti/springsecurity/UserManager.groovy" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/grails-activiti-spring-security-plugin/source/browse/src/groovy/org/grails/activiti/springsecurity/UserManager.groovy&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd love to hear from you about how to troubleshooting this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 02:43:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49943#M28879</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-05-11T02:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49944#M28880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ageen and Carlos,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still have no idea what went wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you mind to share the code of UserManagerFactory and UserManager implementation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 00:52:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49944#M28880</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-05-13T00:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49945#M28881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In this case, I would suggest you to pull out the activiti source code (specifically the engine module and the spring module, or maybe webapp-rest code as well), to debug it and see what's going on. That's what I would do if see something similar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 01:33:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49945#M28881</guid>
      <dc:creator>ageen</dc:creator>
      <dc:date>2011-05-13T01:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49946#M28882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In this case, I would suggest you to pull out the activiti source code (specifically the engine module and the spring module, or maybe webapp-rest code as well), to debug it and see what's going on. That's what I would do if see something similar.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Sure. Thanks for quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything wrong with my implementation of UserManager class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 01:45:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49946#M28882</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-05-13T01:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49947#M28883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;property name="customSessionFactories"&amp;gt;&lt;BR /&gt;&amp;lt;list&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.grails.activiti.springsecurity.SpringSecurityUserManagerFactory"&amp;gt;&lt;BR /&gt;&amp;lt;property name="usersDao" ref="usersDAO"/&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.grails.activiti.springsecurity.SpringSecurityGroupManagerFactory"&amp;gt;&lt;BR /&gt;&amp;lt;property name="groupsDao" ref="groupsDAO"/&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;and SpringSecurityUserManagerFactory implementation:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;package org.grails.activiti.springsecurity;&lt;BR /&gt;&lt;BR /&gt;import org.activiti.engine.impl.interceptor.Session;&lt;BR /&gt;import org.activiti.engine.impl.interceptor.SessionFactory;&lt;BR /&gt;&lt;BR /&gt;class SpringSecurityUserManagerFactory implements SessionFactory {&lt;BR /&gt; public Class&amp;lt;?&amp;gt; getSessionType() {&lt;BR /&gt;&amp;nbsp; return UserManager.class;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; public Session openSession() {&lt;BR /&gt;&amp;nbsp; return new UserManager();&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;I guess you should return org.activiti.engine.impl.persistence.entity.UserManager instead of the one in package org.grails.activiti.springsecurity. In this way, the custom SessionFactory can override original UserManager settings.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 01:51:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49947#M28883</guid>
      <dc:creator>auzreal</dc:creator>
      <dc:date>2011-05-13T01:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: IdentitySession in Activiti 5.5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49948#M28884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;+1 on Auzreal's point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 01:58:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identitysession-in-activiti-5-5/m-p/49948#M28884</guid>
      <dc:creator>ageen</dc:creator>
      <dc:date>2011-05-13T01:58:14Z</dc:date>
    </item>
  </channel>
</rss>

