public class BreinifyExecutor
extends java.lang.Object
| Constructor and Description |
|---|
BreinifyExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
activity()
Sends an activity to the engine utilizing the API.
|
void |
activity(BreinUser user,
java.lang.String activityType,
java.lang.String category,
java.lang.String description,
boolean sign)
Sends an activity to the engine utilizing the API.
|
void |
applyConfiguration()
This is necessary because the configuration from
class BreinifyExecutor needs to be transferred to
class Breinify in order to invoke the activity and
lookup calls within class Breinify.
|
BreinActivity |
getBreinActivity()
Retrieves the instance of the brein activity
|
BreinLookup |
getBreinLookup()
Retrieves the instance of the brein lookup
|
BreinConfig |
getConfig()
gets the config
|
java.lang.String |
getVersion()
returns the version
|
BreinResult |
lookup(BreinUser user,
BreinDimension dimension,
boolean sign)
Retrieves a lookup result from the engine.
|
void |
setConfig(BreinConfig breinConfig)
sets the configuration
|
void |
shutdown()
Shutdown Breinify services
|
public BreinConfig getConfig()
public void setConfig(BreinConfig breinConfig)
breinConfig - config objectpublic java.lang.String getVersion()
public BreinActivity getBreinActivity()
public BreinLookup getBreinLookup()
public void activity(BreinUser user, java.lang.String activityType, java.lang.String category, java.lang.String description, boolean sign)
This request is asynchronous.
user - a plain object specifying the user information the activity belongs toactivityType - the type of the activity collected, i.e., one of search, login, logout, addToCart,
removeFromCart, checkOut, selectProduct, or other. if not specified, the default other will
be usedcategory - the category of the platform/service/products, i.e., one of apparel, home, education, family,
food, health, job, services, or otherdescription - a string with further information about the activity performedsign - a boolean value specifying if the call should be signedpublic void applyConfiguration()
public void activity()
This request is asynchronous.
public BreinResult lookup(BreinUser user, BreinDimension dimension, boolean sign)
This request is synchronous.
user - a plain object specifying information about the user to retrieve data for.dimension - an object (with an array) containing the names of the dimensions to lookup.sign - a boolean value specifying if the call should be signed.public void shutdown()
Copyright © Breinify - All Rights Reserved.