Class TenantContext

java.lang.Object
com.codebarrel.tenant.api.TenantContext

public class TenantContext extends Object
  • Field Details

  • Method Details

    • system

      public static TenantContext system(Environment environment)
    • global

      public static TenantContext global(Environment environment)
    • create

      public static TenantContext create(Environment environment, TenantId tenantId, String clientKey)
    • createClientKeyOnlyContext

      public static TenantContext createClientKeyOnlyContext(Environment environment, String clientKey)
    • withActor

      public TenantActor withActor(String actorKey)
    • defaultActor

      public TenantActor defaultActor()
    • getClientKey

      @Deprecated public String getClientKey()
      Deprecated.
      Over time we are going to migrate to our own tenantId. Use getTenantId() instead of this method going forward.
      Returns:
      the atlassian-connect clientKey for this tenant.
    • getEnvironment

      public Environment getEnvironment()
    • getTenantId

      public TenantId getTenantId()
    • isSystem

      public boolean isSystem()
    • isGlobal

      public boolean isGlobal()
    • isSimulation

      public boolean isSimulation()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object