Package com.xebialabs.xlrelease.utils

# Class TenantContext

java.lang.Object
com.xebialabs.xlrelease.utils.TenantContext

public class TenantContext extends Object
IMPORTANT: This class is a wrapper around SecurityContextHolder. If you would like to use this class ask if you would use SecurityContextHolder in the place. If you would use SecurityContextHolder in the same place, then proceed and use this class, otherwise try to find alternative solution.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TenantContext()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `getTenant()`
  `static boolean`
  `isSystemTenant()`
  `static final String`
  `SYSTEM_TENANT_ID()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TenantContext

    public TenantContext()

- ## Method Details

  - ### SYSTEM_TENANT_ID

    public static final String SYSTEM_TENANT_ID()

  - ### isSystemTenant

    public static boolean isSystemTenant()

  - ### getTenant

    public static String getTenant()