@FunctionalInterface public interface ProvisioningTenantContextSetter<T extends TenantContext>
TenantContext as a current
TenantContext. Each application participating in a provisioning workflow can decorate an
implementation of the TenantContext interface based on the data which the application
receives at provisioning time and then sets this context to be used
for the remaining duration of the provisioning request processing.| Modifier and Type | Method and Description |
|---|---|
void |
setProvisioningTenantContext(T tenantContext)
Allows the application to set the created at provisioning time
TenantContext. |
void setProvisioningTenantContext(T tenantContext)
TenantContext.
This method must be called once only per work-context as part of the provisioning flow,
for example in a Tomcat filter or similar, and should normally be invoked before a
call to TenantContextProvider.getTenantContext() occurs. If it is called more
than once per WorkContext it will throw a TenantContextException.tenantContext - the supplied by the application TenantContext, must not be nullCopyright © 2016 Atlassian. All rights reserved.