Class CxProfileServiceClientAdapter

java.lang.Object
de.hybris.platform.personalizationyprofile.yaas.client.AbstractClientAdapter<CxProfileServiceClient>
de.hybris.platform.personalizationyprofile.yaas.client.CxProfileServiceClientAdapter
All Implemented Interfaces:
CxProfileServiceClient

public class CxProfileServiceClientAdapter extends AbstractClientAdapter<CxProfileServiceClient> implements CxProfileServiceClient
Adapter around the Charon client to retrieve profile in a blocking way without blocking every Charon client.
  • Constructor Details

    • CxProfileServiceClientAdapter

      public CxProfileServiceClientAdapter()
  • Method Details

    • getProfile

      public Profile getProfile(String id)
      Description copied from interface: CxProfileServiceClient
      Read profile data from yaas profile service.
      Specified by:
      getProfile in interface CxProfileServiceClient
      Parameters:
      id - Profile identifier
      Returns:
      Profile data
    • getProfile

      public Profile getProfile(String id, String fields)
      Description copied from interface: CxProfileServiceClient
      Read profile data from yaas profile service.
      Specified by:
      getProfile in interface CxProfileServiceClient
      Parameters:
      id - Profile identifier
      fields - List of fields which should be read from profile service separated by comma.
      Example : insights.affinities.products,insights.affinities.categories
      Returns:
      Profile data
    • getProfileAsync

      public rx.Observable<Profile> getProfileAsync(String id)
      Description copied from interface: CxProfileServiceClient
      Read profile data from yaas profile service. Method runs asynchronously.
      Specified by:
      getProfileAsync in interface CxProfileServiceClient
      Parameters:
      id - Profile identifier
      Returns:
      Profile data
    • getProfileAsync

      public rx.Observable<Profile> getProfileAsync(String id, String fields)
      Description copied from interface: CxProfileServiceClient
      Read profile data from yaas profile service. Method runs asynchronously.
      Specified by:
      getProfileAsync in interface CxProfileServiceClient
      Parameters:
      id - Profile identifier
      fields - List of fields which should be read from profile service separated by comma.
      Example : insights.affinities.products,insights.affinities.categories
      Returns:
      Profile data