Interface CdsModelProvider


public interface CdsModelProvider
A provider of tenant and feature toggle dependent CDS models.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sap.cds.reflect.CdsModel
    get(UserInfo userInfo, FeatureTogglesInfo featureTogglesInfo)
    Calculates the model for a user and a set of feature toggles.
    default void
    Passes the latest configured CdsModelProvider during configuration phase when this instances gets registered.
  • Method Details

    • get

      com.sap.cds.reflect.CdsModel get(UserInfo userInfo, FeatureTogglesInfo featureTogglesInfo)
      Calculates the model for a user and a set of feature toggles.
      Parameters:
      userInfo - The UserInfo
      featureTogglesInfo - The FeatureTogglesInfo
      Returns:
      The model for the respective user and set of feature toggles
    • setPrevious

      default void setPrevious(CdsModelProvider prevProvider)
      Passes the latest configured CdsModelProvider 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.