Package com.sap.cds.services.runtime
Interface CdsModelProvider
public interface CdsModelProvider
A provider of tenant and feature toggle dependent CDS models.
-
Method Summary
Modifier and TypeMethodDescriptioncom.sap.cds.reflect.CdsModel
get
(UserInfo userInfo, FeatureTogglesInfo featureTogglesInfo) Calculates the model for a user and a set of feature toggles.default void
setPrevious
(CdsModelProvider prevProvider) Passes the latest configuredCdsModelProvider
during configuration phase when this instances gets registered.
-
Method Details
-
get
Calculates the model for a user and a set of feature toggles.- Parameters:
userInfo
- TheUserInfo
featureTogglesInfo
- TheFeatureTogglesInfo
- Returns:
- The model for the respective user and set of feature toggles
-
setPrevious
Passes the latest configuredCdsModelProvider
during configuration phase when this instances gets registered. The previous provider can be used to build an adapted provider on top.- Parameters:
prevProvider
- The previously registered provider.
-