public class GetRecentEntitiesRequest extends GetPopularOrRecentEntitiesRequest
behaviorType, CURRENT_USER_PLACEHOLDER, entityType, forUserId, resultsOptionscustomData| Constructor and Description |
|---|
GetRecentEntitiesRequest(java.lang.String behaviorType)
Retrieve the globally most recent products
|
GetRecentEntitiesRequest(java.lang.String behaviorType,
java.lang.String forUserId)
Retrieve the globally most recent products for a specfic user
|
GetRecentEntitiesRequest(java.lang.String behaviorType,
java.lang.String forUserId,
java.util.List<java.lang.String> entityType) |
| Modifier and Type | Method and Description |
|---|---|
static GetRecentEntitiesRequest |
forCurrentUser(java.lang.String behaviorType,
java.util.List<java.lang.String> entityType)
Creates a request to get the most recent entities for the current user.
|
addCustomDatapublic GetRecentEntitiesRequest(java.lang.String behaviorType,
java.lang.String forUserId,
java.util.List<java.lang.String> entityType)
behaviorType - interaction or navigation type to include (such as click, purchase or search).forUserId - a user ID to retrieve the most common/recent entities for that user or null to retrieve the globally most common/recent entities.
GetPopularOrRecentEntitiesRequest.CURRENT_USER_PLACEHOLDER can be specified to use the user ID from the User-Id request header.entityType - entity types to include (such as Product or Query)public GetRecentEntitiesRequest(java.lang.String behaviorType,
java.lang.String forUserId)
behaviorType - interaction or navigation type to include (such as click, purchase or search).forUserId - a user ID to retrieve the most common/recent entities for that user or null to retrieve the globally most common/recent entities.
GetPopularOrRecentEntitiesRequest.CURRENT_USER_PLACEHOLDER can be specified to use the user ID from the User-Id request header.public GetRecentEntitiesRequest(java.lang.String behaviorType)
behaviorType - interaction or navigation type to include (such as click, purchase or search).public static GetRecentEntitiesRequest forCurrentUser(java.lang.String behaviorType, java.util.List<java.lang.String> entityType)
behaviorType - interaction or navigation type to include (such as click, purchase, or search).entityType - entity types to include (such as Product or Query).GetRecentEntitiesRequest for the current user.