Class GigyaWebHookEventsTaskRunner
java.lang.Object
de.hybris.platform.gigya.gigyab2bfacades.task.runner.GigyaWebHookEventsTaskRunner
- All Implemented Interfaces:
de.hybris.platform.task.TaskRunner<TaskModel>
public class GigyaWebHookEventsTaskRunner
extends Object
implements de.hybris.platform.task.TaskRunner<TaskModel>
This class is used to process CDC Webhook Events data and create / update B2B
users in Commerce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateOrUpdateCustomer(Map<String, Set<String>> uniqueUIDEventsMap, GigyaConfigModel gigyaConfig) Create or Update Customer from the unique uidsde.hybris.platform.site.BaseSiteServicegetUniqueUidsFromWebhookEvents(List<GigyaWebHookEvent> webhookEvents) Get the unique uids from the incoming webhook eventsvoidhandleError(de.hybris.platform.task.TaskService taskService, TaskModel taskModel, Throwable error) protected voidprocessGigyaWebHookEvents(GigyaWebHookRequest gigyaWebHookRequest) voidvoidsetBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) voidsetGigyaLoginFacade(GigyaLoginFacade gigyaLoginFacade) voidsetGigyaLoginService(GigyaLoginService gigyaLoginService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.task.TaskRunner
initLoggingCtx, isLoggingSupported, stopLoggingCtx
-
Constructor Details
-
GigyaWebHookEventsTaskRunner
public GigyaWebHookEventsTaskRunner()
-
-
Method Details
-
run
- Specified by:
runin interfacede.hybris.platform.task.TaskRunner<TaskModel>
-
handleError
public void handleError(de.hybris.platform.task.TaskService taskService, TaskModel taskModel, Throwable error) - Specified by:
handleErrorin interfacede.hybris.platform.task.TaskRunner<TaskModel>
-
processGigyaWebHookEvents
-
getUniqueUidsFromWebhookEvents
protected Map<String,Set<String>> getUniqueUidsFromWebhookEvents(List<GigyaWebHookEvent> webhookEvents) Get the unique uids from the incoming webhook events- Parameters:
webhookEvents- List of webhook events
-
createOrUpdateCustomer
protected void createOrUpdateCustomer(Map<String, Set<String>> uniqueUIDEventsMap, GigyaConfigModel gigyaConfig) Create or Update Customer from the unique uids- Parameters:
uniqueUIDs- Set of Unique Gigya UIDs present in the webhook requestgigyaConfig- Gigya Config Model for the base site
-
getGigyaLoginService
-
setGigyaLoginService
-
getGigyaLoginFacade
-
setGigyaLoginFacade
-
getBaseSiteService
public de.hybris.platform.site.BaseSiteService getBaseSiteService() -
setBaseSiteService
public void setBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService)
-