public class DynamicModelUtils extends Object
Constructor and Description |
---|
DynamicModelUtils(CdsRuntime runtime) |
Modifier and Type | Method and Description |
---|---|
<T> com.sap.cds.mtx.MetaDataAccessor<T> |
createMetadataAccessor(com.sap.cds.mtx.impl.MetaDataAccessorImpl.EdmxModelCreator<T> modelCreator) |
com.sap.cloud.mt.tools.api.RequestEnhancer |
getAuthenticationEnhancer() |
com.sap.cloud.mt.tools.api.ResilienceConfig |
getResilienceConfig() |
boolean |
isClassicSidecarEnabled() |
boolean |
isDynamicModelEnabled()
Indicates whether the model is provided by a external service (i.e.
|
boolean |
isModelProviderEnabled() |
boolean |
useStaticModel()
Returns true, if the static model, packaged with the application, can be loaded
Retrieves the required information from the current
RequestContext |
boolean |
useStaticModel(UserInfo userInfo,
FeatureTogglesInfo featureTogglesInfo)
Returns true, if the static model, packaged with the application, can be loaded
|
public DynamicModelUtils(CdsRuntime runtime)
public boolean useStaticModel()
RequestContext
public boolean useStaticModel(UserInfo userInfo, FeatureTogglesInfo featureTogglesInfo)
userInfo
- the UserInfo
featureTogglesInfo
- the FeatureTogglesInfo
public boolean isModelProviderEnabled()
true
if ModelProviderService is configuredpublic boolean isClassicSidecarEnabled()
true
if Classic MT Sidecar is configuredpublic boolean isDynamicModelEnabled()
true
if the model is dynamicpublic <T> com.sap.cds.mtx.MetaDataAccessor<T> createMetadataAccessor(com.sap.cds.mtx.impl.MetaDataAccessorImpl.EdmxModelCreator<T> modelCreator)
public com.sap.cloud.mt.tools.api.ResilienceConfig getResilienceConfig()
public com.sap.cloud.mt.tools.api.RequestEnhancer getAuthenticationEnhancer()
Copyright © 2023. All rights reserved.