Class TenantUtil

java.lang.Object
com.flowable.platform.common.util.TenantUtil

public class TenantUtil
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    static java.util.List<java.lang.String> convertToTenantAwareGroupId​(java.util.List<java.lang.String> groupKeys, java.lang.String tenantId)  
    static java.lang.String createGroupId​(java.lang.String groupKey, java.lang.String tenantId)
    When running multi-tenant, the group id gets prefixed with the tenantId, to avoid clashes when having the same key for different groups and easy recognition of important groups at the same time.
    static boolean isBlankOrDefaultTenant​(java.lang.String tenantId)  
    static boolean isDefaultTenant​(java.lang.String tenantId)  
    static boolean isNotBlankOrDefaultTenant​(java.lang.String tenantId)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isBlankOrDefaultTenant

      public static boolean isBlankOrDefaultTenant​(java.lang.String tenantId)
    • isNotBlankOrDefaultTenant

      public static boolean isNotBlankOrDefaultTenant​(java.lang.String tenantId)
    • isDefaultTenant

      public static boolean isDefaultTenant​(java.lang.String tenantId)
    • createGroupId

      public static java.lang.String createGroupId​(java.lang.String groupKey, java.lang.String tenantId)
      When running multi-tenant, the group id gets prefixed with the tenantId, to avoid clashes when having the same key for different groups and easy recognition of important groups at the same time.
    • convertToTenantAwareGroupId

      public static java.util.List<java.lang.String> convertToTenantAwareGroupId​(java.util.List<java.lang.String> groupKeys, java.lang.String tenantId)