<?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: Where inserting the TenantInfoHolder to set the tenantId when implementing Multi Schema / Multi Tenant in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34743#M14674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The class that implements TenantInfoHolder is registered when you create the configuration for MSMT.&lt;/P&gt;&lt;P&gt;It is a relatively simple interface and in general all it needs to do is correlate your current userid to the tenant id.&lt;/P&gt;&lt;P&gt;Alternatively, if the tenant_id will be included in the url you can use a filter to set/get a thread local variable:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; protected static final ThreadLocal&amp;lt;Long&amp;gt; currentTenantIdPlaceHolder = new ThreadLocal&amp;lt;Long&amp;gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; @Override&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;public void setCurrentTenantId(String tenantId) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; currentTenantIdPlHolder.set(&lt;SPAN&gt;Long.valueOf(tenantId)&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Also, make sure you take a look at the following blog post:&lt;BR /&gt;&lt;A class="link-titled" href="http://www.jorambarrez.be/blog/2015/10/06/multi-tenancy-separate-database-schemas-in-activiti/" title="http://www.jorambarrez.be/blog/2015/10/06/multi-tenancy-separate-database-schemas-in-activiti/" rel="nofollow noopener noreferrer"&gt;Multi-Tenancy with separate database schemas in Activiti | Small steps with big feet&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Cheers,&lt;BR /&gt;greg&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 17:18:34 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-05-15T17:18:34Z</dc:date>
    <item>
      <title>Where inserting the TenantInfoHolder to set the tenantId when implementing Multi Schema / Multi Tenant</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34742#M14673</link>
      <description>Hello,I try to implement a&amp;nbsp;Multi-Schema Multi-Tenancy with the&amp;nbsp;MultiSchemaMultiTenantProcessEngineConfiguration configuration class.&amp;nbsp;I integrate with Activiti only through rest, my main app is written in Python.Every request I do to activiti has the tenantId information, then it should be easy for a</description>
      <pubDate>Mon, 15 May 2017 09:21:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34742#M14673</guid>
      <dc:creator>ppcchh</dc:creator>
      <dc:date>2017-05-15T09:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Where inserting the TenantInfoHolder to set the tenantId when implementing Multi Schema / Multi Tenant</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34743#M14674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The class that implements TenantInfoHolder is registered when you create the configuration for MSMT.&lt;/P&gt;&lt;P&gt;It is a relatively simple interface and in general all it needs to do is correlate your current userid to the tenant id.&lt;/P&gt;&lt;P&gt;Alternatively, if the tenant_id will be included in the url you can use a filter to set/get a thread local variable:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; protected static final ThreadLocal&amp;lt;Long&amp;gt; currentTenantIdPlaceHolder = new ThreadLocal&amp;lt;Long&amp;gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; @Override&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;public void setCurrentTenantId(String tenantId) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; currentTenantIdPlHolder.set(&lt;SPAN&gt;Long.valueOf(tenantId)&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Also, make sure you take a look at the following blog post:&lt;BR /&gt;&lt;A class="link-titled" href="http://www.jorambarrez.be/blog/2015/10/06/multi-tenancy-separate-database-schemas-in-activiti/" title="http://www.jorambarrez.be/blog/2015/10/06/multi-tenancy-separate-database-schemas-in-activiti/" rel="nofollow noopener noreferrer"&gt;Multi-Tenancy with separate database schemas in Activiti | Small steps with big feet&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Cheers,&lt;BR /&gt;greg&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 17:18:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34743#M14674</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-15T17:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Where inserting the TenantInfoHolder to set the tenantId when implementing Multi Schema / Multi Tenant</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34744#M14675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to hook in the BasicAuthenticationProvider class !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 15:29:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34744#M14675</guid>
      <dc:creator>ppcchh</dc:creator>
      <dc:date>2017-05-16T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Where inserting the TenantInfoHolder to set the tenantId when implementing Multi Schema / Multi Tenant</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34745#M14676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a good option. God luck.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 15:42:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/where-inserting-the-tenantinfoholder-to-set-the-tenantid-when/m-p/34745#M14676</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-16T15:42:55Z</dc:date>
    </item>
  </channel>
</rss>

