Class AsmProfileDataServiceClientAdapter
- java.lang.Object
-
- de.hybris.platform.yaasyprofileconnect.yaas.client.AsmProfileDataServiceClientAdapter
-
- All Implemented Interfaces:
AsmProfileDataServiceClient
public class AsmProfileDataServiceClientAdapter extends java.lang.Object implements AsmProfileDataServiceClient
Adapter around the Charon client to retrieve profile in a blocking way without blocking every Charon client.
-
-
Constructor Summary
Constructors Constructor Description AsmProfileDataServiceClientAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsmProfileDataServiceClientgetAdaptee()protected ApiRegistryClientServicegetApiRegistryClientService()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.voidsetApiRegistryClientService(ApiRegistryClientService apiRegistryClientService)
-
-
-
Method Detail
-
getProfile
public Profile getProfile(java.lang.String id)
Description copied from interface:AsmProfileDataServiceClientRead profile data from yaas profile service.- Specified by:
getProfilein interfaceAsmProfileDataServiceClient- Parameters:
id- Profile identifier- Returns:
- Profile data
-
getProfile
public Profile getProfile(java.lang.String id, java.lang.String fields)
Description copied from interface:AsmProfileDataServiceClientRead profile data from yaas profile service.- Specified by:
getProfilein interfaceAsmProfileDataServiceClient- 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:AsmProfileDataServiceClientRead profile data from yaas profile service. Method runs asynchronously.- Specified by:
getProfileAsyncin interfaceAsmProfileDataServiceClient- 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:AsmProfileDataServiceClientRead profile data from yaas profile service. Method runs asynchronously.- Specified by:
getProfileAsyncin interfaceAsmProfileDataServiceClient- 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
-
getAdaptee
public AsmProfileDataServiceClient getAdaptee()
-
getApiRegistryClientService
protected ApiRegistryClientService getApiRegistryClientService()
-
setApiRegistryClientService
public void setApiRegistryClientService(ApiRegistryClientService apiRegistryClientService)
-
-