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 Summary
Constructors Constructor Description CxProfileServiceClientAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfilegetProfile(java.lang.String id)Read profile data from yaas profile service.ProfilegetProfile(java.lang.String id, java.lang.String fields)Read profile data from yaas profile service.rx.Observable<Profile>getProfileAsync(java.lang.String id)Read profile data from yaas profile service.rx.Observable<Profile>getProfileAsync(java.lang.String id, java.lang.String fields)Read profile data from yaas profile service.-
Methods inherited from class de.hybris.platform.personalizationyprofile.yaas.client.AbstractClientAdapter
blocking, getAdaptee, getApiRegistryClientService, setApiRegistryClientService
-
-
-
-
Method Detail
-
getProfile
public Profile getProfile(java.lang.String id)
Description copied from interface:CxProfileServiceClientRead profile data from yaas profile service.- Specified by:
getProfilein interfaceCxProfileServiceClient- Parameters:
id- Profile identifier- Returns:
- Profile data
-
getProfile
public Profile getProfile(java.lang.String id, java.lang.String fields)
Description copied from interface:CxProfileServiceClientRead profile data from yaas profile service.- Specified by:
getProfilein interfaceCxProfileServiceClient- Parameters:
id- Profile identifierfields- 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(java.lang.String id)
Description copied from interface:CxProfileServiceClientRead profile data from yaas profile service. Method runs asynchronously.- Specified by:
getProfileAsyncin interfaceCxProfileServiceClient- Parameters:
id- Profile identifier- Returns:
- Profile data
-
getProfileAsync
public rx.Observable<Profile> getProfileAsync(java.lang.String id, java.lang.String fields)
Description copied from interface:CxProfileServiceClientRead profile data from yaas profile service. Method runs asynchronously.- Specified by:
getProfileAsyncin interfaceCxProfileServiceClient- Parameters:
id- Profile identifierfields- List of fields which should be read from profile service separated by comma.
Example : insights.affinities.products,insights.affinities.categories- Returns:
- Profile data
-
-