Interface SAPCDPCustomerService

All Known Implementing Classes:
DefaultSAPCDPCustomerService

public interface SAPCDPCustomerService
Fetches customer segments associated with the user. If cached segments are available, they are returned; otherwise, segments are fetched from the Customer Data Platform (CDP), updated in the cache, and returned.
  • Method Summary

    Modifier and Type
    Method
    Description
    Fetches customer segments associated with the user.
  • Method Details

    • fetchSegmentsFromCDP

      List<String> fetchSegmentsFromCDP(UserModel user)
      Fetches customer segments associated with the user. If cached segments are available, they are returned; otherwise, segments are fetched from the Customer Data Platform (CDP), updated in the cache, and returned.
      Parameters:
      user - The UserModel representing the user for whom segments need to be fetched.
      Returns:
      A list of strings representing the customer segments associated with the user in CDP.