public interface RequestContext
Modifier and Type | Method and Description |
---|---|
AuthenticationInfo |
getAuthenticationInfo() |
static RequestContext |
getCurrent(CdsRuntime runtime)
Gives access to either the current
RequestContext ,
or if this does not exist to a helper RequestContext that itself ensures that there is always a RequestContext opened. |
FeatureTogglesInfo |
getFeatureTogglesInfo() |
Messages |
getMessages() |
com.sap.cds.reflect.CdsModel |
getModel()
Returns the tenant-specific
CdsModel . |
ParameterInfo |
getParameterInfo() |
ServiceCatalog |
getServiceCatalog()
Returns the
ServiceCatalog , populated with all available Service instances. |
UserInfo |
getUserInfo() |
static boolean |
isActive() |
static boolean isActive()
RequestContext
is currently activestatic RequestContext getCurrent(CdsRuntime runtime)
RequestContext
,
or if this does not exist to a helper RequestContext
that itself ensures that there is always a RequestContext
opened.
This method will throw a NullPointerException
, if the passed CdsRuntime
was null, but guarantees that it will never return null
runtime
- A reference to the underlying CdsRuntime
instance.RequestContext
or a helper RequestContext
com.sap.cds.reflect.CdsModel getModel()
CdsModel
.
The tenant is determined based on the request-context and the tenant information available in UserInfo
.
If no tenant is specified, or if no tenant-specific model exists, the base model is returned.CdsModel
ServiceCatalog getServiceCatalog()
ServiceCatalog
, populated with all available Service
instances.ServiceCatalog
ParameterInfo getParameterInfo()
ParameterInfo
of this requestAuthenticationInfo getAuthenticationInfo()
AuthenticationInfo
of this requestFeatureTogglesInfo getFeatureTogglesInfo()
FeatureTogglesInfo
for this requestCopyright © 2023. All rights reserved.