TenancyScope
instead. Since v7.2.0.@Internal @Deprecated public enum TenantAware extends Enum<TenantAware>
Enum Constant and Description |
---|
TENANTED
Deprecated.
Indicates that the component uses data access patterns that require knowledge of the current tenant.
|
TENANTLESS
Deprecated.
Indicates that the component only accesses data that is universal across all tenants.
|
UNRESOLVED
Deprecated.
Explicitly marks that this is a component whose safety in a multi-tenanted environment has not yet
been evaluated or that is known to require additional work.
|
Modifier and Type | Method and Description |
---|---|
static TenantAware |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static TenantAware[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TenantAware TENANTED
This implies that the component not must be used without first establishing a tenanted request context.
public static final TenantAware TENANTLESS
Tenantless components may be accessed safely even outside of a tenanted request context and must avoid
access to any tenant-specific information. Calling TENANTED
components from TENANTLESS
ones is generally an error, since if this service calls another service that requires a tenant, then
this service transitively requires one as well.
public static final TenantAware UNRESOLVED
This is intended to be used temporarily to help track remaining multi-tenancy work. It should not be assigned in new code unless properly resolving the problem is blocked by some external dependency.
public static TenantAware[] values()
for (TenantAware c : TenantAware.values()) System.out.println(c);
public static TenantAware valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2002-2016 Atlassian. All Rights Reserved.