Package com.sap.cds.services.utils.model
Class DynamicModelUtils
java.lang.Object
com.sap.cds.services.utils.model.DynamicModelUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MetaDataAccessor<T>createMetadataAccessor(MetaDataAccessorImpl.EdmxModelCreator<T> strToEdmx, MetaDataAccessorImpl.CdsModelCreator strToModel, MetaDataAccessorImpl.I18nResourceCreator strToI18n) com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestinationcreateSidecarDestination(String destinationName, String targetUrl) booleanprepareModelId(UserInfo userInfo, FeatureTogglesInfo featureTogglesInfo) Prepares theModelIdwith tenant and feature toggles dimension, depending on the configurationbooleanReturns true, if the static model, packaged with the application, can be loaded Retrieves the required information from the currentRequestContextbooleanuseStaticModel(UserInfo userInfo, FeatureTogglesInfo featureTogglesInfo) Returns true, if the static model, packaged with the application, can be loaded
-
Constructor Details
-
DynamicModelUtils
-
-
Method Details
-
useStaticModel
public boolean useStaticModel()Returns true, if the static model, packaged with the application, can be loaded Retrieves the required information from the currentRequestContext- Returns:
- true, if the static model, packaged with the application, can be loaded
-
useStaticModel
Returns true, if the static model, packaged with the application, can be loaded- Parameters:
userInfo- theUserInfofeatureTogglesInfo- theFeatureTogglesInfo- Returns:
- true, if the static model, packaged with the application, can be loaded
-
prepareModelId
Prepares theModelIdwith tenant and feature toggles dimension, depending on the configuration- Parameters:
userInfo- theUserInfofeatureTogglesInfo- theFeatureTogglesInfo- Returns:
- the
ModelIdwith tenant and feature toggles dimension, depending on the configuration
-
isModelProviderEnabled
public boolean isModelProviderEnabled()- Returns:
trueif ModelProviderService is configured
-
getModelProviderUrl
-
createMetadataAccessor
public <T> MetaDataAccessor<T> createMetadataAccessor(MetaDataAccessorImpl.EdmxModelCreator<T> strToEdmx, MetaDataAccessorImpl.CdsModelCreator strToModel, MetaDataAccessorImpl.I18nResourceCreator strToI18n) -
getResilienceConfig
-
createSidecarDestination
-