Class TenantUtil


  • public class TenantUtil
    extends Object
    • Method Detail

      • isBlankOrDefaultTenant

        public static boolean isBlankOrDefaultTenant​(String tenantId)
      • isNotBlankOrDefaultTenant

        public static boolean isNotBlankOrDefaultTenant​(String tenantId)
      • isDefaultTenant

        public static boolean isDefaultTenant​(String tenantId)
      • createGroupId

        public static String createGroupId​(String groupKey,
                                           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 List<String> convertToTenantAwareGroupId​(List<String> groupKeys,
                                                               String tenantId)