public class JavaScriptNotifier extends Object
Modifier and Type | Method | Description |
---|---|---|
static void |
notify(Connector connector,
String sessionKey,
String id,
String type,
String ticket,
String productKey,
String rating) |
Pass through a JavaScript notification to the cluster.
|
static void |
notify(Connector connector,
String sessionKey,
String id,
String type,
String ticket,
String propertyName,
String propertyValue,
String productKey,
String rating) |
Deprecated.
|
static void |
notifyNonEsalesEvent(Connector connector,
String sessionKey,
String customerKey,
String market,
String id,
String type,
String productKey,
String variantKey) |
|
static void |
notifyWithProperties(Connector connector,
String sessionKey,
String customerKey,
String market,
String id,
String type,
String ticket,
String productKey,
String rating) |
Pass through a JavaScript notification to the cluster.
|
@Deprecated public static void notify(Connector connector, String sessionKey, String id, String type, String ticket, String propertyName, String propertyValue, String productKey, String rating) throws IOException
IOException
public static void notify(Connector connector, String sessionKey, String id, String type, String ticket, String productKey, String rating) throws IOException
connector
- the eSales connector to notify throughsessionKey
- the key of the eSales session to attach the notification toid
- identifier for detection of re-sent notificationstype
- click|adding_to_cart|rating|endticket
- the ticket for the object clicked or added to cartproductKey
- the key of the rated productrating
- integer ratingIOException
- if notification failedpublic static void notifyWithProperties(Connector connector, String sessionKey, String customerKey, String market, String id, String type, String ticket, String productKey, String rating) throws IOException
connector
- the eSales connector to notify through.sessionKey
- the key of the eSales session to attach the notification to.customerKey
- the key of the customer for the notification.
Warning! Must not be taken from the client, as this will pose a security threat.market
- the market for which the notification is made.
Warning! Must not be taken from the client, as this will pose a security threat.id
- identifier for detection of re-sent notifications.type
- click|adding_to_cart|property|rating|endticket
- the ticket for the object clicked or added to cart.productKey
- the key of the rated product.rating
- integer rating as a string.IOException
- if the notification cannot be sent to the eSales service.
Warning! It is strongly recommended not to allow client side property notifications, these should be made from the server.public static void notifyNonEsalesEvent(Connector connector, String sessionKey, String customerKey, String market, String id, String type, String productKey, String variantKey) throws IOException
IOException
Copyright © 2021 Apptus Technologies AB. All rights reserved.