Does multitenancy-add-on support customization?

Hi,

Does jmix multitenancy-add-on support overriding messages for specific tenant?
Or providing custom add-on for specific tenant?
If not, are there any solution to achieve this?

  • my Jmix version: 1.5.2 with FlowUI

Hi Jimmy,

No, Jmix multitenancy addon does not provide the ability to override messages for tenants.
Except for using different locales, there are also no out-of-the-box solutions to use different messages for different groups of users.

I can suggest some ideas, but I haven’t personally tested them:

  1. Override io.jmix.core.Messages bean and alter messages according to the current user tenant (e.g. by replacing keys with tenant-specific ones).
  2. If there aren’t many of such messages, then it’s possible to create a “reference entity” which stores messages and differs for each tenant. Cons: It will require manual loading and processing of messages (maybe in combination with (1) solution). Pros: messages can be added and edited in runtime.
  3. (IDK whether it possible) Investigate the possibility of creating custom locales “en_tenant1”, “en_tenant2” and assigning them after login according to user tenant.

Regards,
Dmitry

1 Like