Package com.codebarrel.tenant.api
Class TenantContext
java.lang.Object
com.codebarrel.tenant.api.TenantContext
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TenantContextcreate(Environment environment, TenantId tenantId, String clientKey) static TenantContextcreateClientKeyOnlyContext(Environment environment, String clientKey) booleanDeprecated.Over time we are going to migrate to our own tenantId.static TenantContextglobal(Environment environment) inthashCode()booleanisGlobal()booleanbooleanisSystem()static TenantContextsystem(Environment environment) toString()
-
Field Details
-
SIMULATION_TENANT_PREFIX
- See Also:
-
-
Method Details
-
system
-
global
-
create
-
createClientKeyOnlyContext
-
withActor
-
defaultActor
-
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
-
getTenantId
-
isSystem
public boolean isSystem() -
isGlobal
public boolean isGlobal() -
isSimulation
public boolean isSimulation() -
equals
-
hashCode
public int hashCode() -
toString
-