@ProviderType public interface TargetRecommendationsAPIClient
Modifier and Type | Method and Description |
---|---|
void |
checkConnection(java.lang.String clientCode,
java.lang.String email,
java.lang.String password)
Checks the connection to Target Recommendations using the given credentials
|
void |
deleteAlgorithm(int id,
Configuration ttConfig)
Deletes an algorithm from Target Recommendations
|
void |
deleteFeed(int id,
Configuration ttConfig)
Removes a product feed from Target Recommendations
|
void |
deleteRecommendation(int id,
Configuration ttConfig)
Removes a recommendation from Target Recommendations
|
void |
deleteTemplate(int id,
Configuration ttConfig)
Deletes a template from the Target Recommendations backend
|
RecommendationAlgorithm |
getAlgorithm(int id,
Configuration ttConfig)
Get a single algorithm from a given id
|
java.util.List<RecommendationAlgorithm> |
getAlgorithms(Configuration ttConfig)
Get a list of available algorithms for the given TesT&Target
Configuration |
ProductFeed |
getFeed(int id,
Configuration ttConfig)
Get a single product feed based on a given id
|
java.util.List<ProductFeed> |
getFeeds(Configuration ttConfig)
Get all defined product feeds in Target Recommendations related to a given TesT&Target configuration
|
java.util.List<RecommendationMbox> |
getMBoxes(Configuration ttConfig)
Get the list of available MBoxes for a given T&T configuration
|
TargetRecommendation |
getRecommendation(int id,
Configuration ttConfig)
Get a single recommendation from a given id
|
java.util.List<TargetRecommendation> |
getRecommendations(Configuration ttConfig)
Get all recommendations related to the given TesT&Target
Configuration |
RecommendationTemplate |
getTemplate(int id,
Configuration ttConfig)
Get a single template having a given id
|
java.util.List<RecommendationTemplate> |
getTemplates(Configuration ttConfig)
Get the list of available templates associated with a given TesT&Target
Configuration |
void |
removeProducts(java.util.List<java.lang.String> productList,
Configuration ttConfig)
Removes a list of products from the Target Recommendations index
|
RecommendationAlgorithm |
saveAlgorithm(RecommendationAlgorithm algorithm,
Configuration ttConfig)
Saves an algorithm in Target Recommendations using the given cloud configuration
|
ProductFeed |
saveFeed(ProductFeed feed,
Configuration ttConfig)
Saves the given
ProductFeed in Target Recommendations using the given cloud configuration |
TargetRecommendation |
saveRecommendation(TargetRecommendation recommendation,
Configuration ttConfig)
Saves a given
TargetRecommendation in Target Recommendations system using the given cloud configuration |
RecommendationTemplate |
saveTemplate(RecommendationTemplate template,
Configuration ttConfig)
Saves a template in Target Recommendations backend using the given T&T cloud configuration
|
java.util.List<RecommendationTemplate> getTemplates(Configuration ttConfig) throws TargetRecommendationsException
Configuration
ttConfig
- - the Configuration
that identifies the Target cloud configurationList
containing the RecommendationTemplate
objects available for the given T&T clientTargetRecommendationsException
- TargetRecommendationsException
RecommendationTemplate getTemplate(int id, Configuration ttConfig) throws TargetRecommendationsException
id
- - a Integer
value identifying a recommendation templatettConfig
- - the Configuration
that identifies the Target configRecommendationTemplate
if a valid template is found for the given id and configuration
or null
if none is foundTargetRecommendationsException
- TargetRecommendationsException
$RecommendationTemplate saveTemplate(RecommendationTemplate template, Configuration ttConfig) throws TargetRecommendationsException
template
- - the RecommendationTemplate
that needs to be persisted in the Recommendations backendttConfig
- - the Target Configuration
RecommendationTemplate
TargetRecommendationsException
- TargetRecommendationsException
on any issues encountered during template update operationvoid deleteTemplate(int id, Configuration ttConfig) throws TargetRecommendationsException
id
- - the Integer
id of the template that needs to be deletedttConfig
- - the Target Configuration
TargetRecommendationsException
- TargetRecommendationsException
on any issues encountered during template deletionjava.util.List<RecommendationMbox> getMBoxes(Configuration ttConfig) throws TargetRecommendationsException
ttConfig
- - the Target Configuration
List
containing the MBoxes available for the given T&T clientTargetRecommendationsException
- TargetRecommendationsException
java.util.List<RecommendationAlgorithm> getAlgorithms(Configuration ttConfig) throws TargetRecommendationsException
Configuration
ttConfig
- - the Configuration
that identifies the Target cloud configurationList
containing the RecommendationAlgorithm
objects available for the given T&T clientTargetRecommendationsException
- TargetRecommendationsException
RecommendationAlgorithm getAlgorithm(int id, Configuration ttConfig) throws TargetRecommendationsException
id
- - the Target Recommendations id of the needed algorithmttConfig
- - the Configuration
that identifies the Target cloud configurationRecommendationAlgorithm
object if a valid algorithm with the given id is found in Target Recommendations
or null
if none is foundTargetRecommendationsException
- TargetRecommendationsException
RecommendationAlgorithm saveAlgorithm(RecommendationAlgorithm algorithm, Configuration ttConfig) throws TargetRecommendationsException
algorithm
- - the RecommendationAlgorithm
to be updated in Target RecommendationsttConfig
- - the Configuration
that identifies the Target cloud configurationRecommendationAlgorithm
TargetRecommendationsException
- TargetRecommendationsException
void deleteAlgorithm(int id, Configuration ttConfig) throws TargetRecommendationsException
id
- - the Target Recommendations id of the algorithm to be deletedttConfig
- - the Configuration
that identifies the Target cloud configurationTargetRecommendationsException
- TargetRecommendationsException
java.util.List<TargetRecommendation> getRecommendations(Configuration ttConfig) throws TargetRecommendationsException
Configuration
ttConfig
- - the Configuration
that identifies the Target cloud configurationList
containing all the TargetRecommendation
objects available to the given T&T clientTargetRecommendationsException
- TargetRecommendationsException
TargetRecommendation getRecommendation(int id, Configuration ttConfig) throws TargetRecommendationsException
id
- - the Target Recommendations id of the required recommendationttConfig
- - the Configuration
that identifies the Target cloud configurationTargetRecommendation
object if a valid recommendation with the given id is found in Target Recommendations
or null
if none is foundTargetRecommendationsException
- TargetRecommendationsException
TargetRecommendation saveRecommendation(TargetRecommendation recommendation, Configuration ttConfig) throws TargetRecommendationsException
TargetRecommendation
in Target Recommendations system using the given cloud configurationrecommendation
- - the TargetRecommendation
recommendation object to be persisted in Target RecommendationsttConfig
- - the Configuration
that identifies the Target cloud configurationTargetRecommendation
TargetRecommendationsException
- TargetRecommendationsException
void deleteRecommendation(int id, Configuration ttConfig) throws TargetRecommendationsException
id
- - the recommendation idttConfig
- - the Configuration
that identifies the Target cloud configurationTargetRecommendationsException
- TargetRecommendationsException
java.util.List<ProductFeed> getFeeds(Configuration ttConfig) throws TargetRecommendationsException
ttConfig
- - the Configuration
that identifies the Target cloud configurationList
containing all the ProductFeed
feeds defined for the given T&T accountTargetRecommendationsException
- TargetRecommendationsException
ProductFeed getFeed(int id, Configuration ttConfig) throws TargetRecommendationsException
id
- - the Target Recommendations id of the required product feedttConfig
- - the Configuration
that identifies the Target cloud configurationProductFeed
abstraction of the recommendations product feed if one with the given id is found in Target Recommendations backend
or null
if none is foundTargetRecommendationsException
- TargetRecommendationsException
ProductFeed saveFeed(ProductFeed feed, Configuration ttConfig) throws TargetRecommendationsException
ProductFeed
in Target Recommendations using the given cloud configurationfeed
- - the ProductFeed
to be updated in Target RecsttConfig
- - the Configuration
that identifies the Target cloud configurationProductFeed
TargetRecommendationsException
- TargetRecommendationsException
void deleteFeed(int id, Configuration ttConfig) throws TargetRecommendationsException
id
- - the product feed idttConfig
- - the Configuration
that identifies the Target cloud configurationTargetRecommendationsException
- TargetRecommendationsException
void removeProducts(java.util.List<java.lang.String> productList, Configuration ttConfig) throws TargetRecommendationsException
productList
- - the list of product ids to be removed from the Recommendations indexttConfig
- - the Configuration
that identifies the Target cloud configurationTargetRecommendationsException
- TargetRecommendationsException
void checkConnection(java.lang.String clientCode, java.lang.String email, java.lang.String password) throws TargetRecommendationsException
clientCode
- clientCodeemail
- emailpassword
- passwordTargetRecommendationsException
- TargetRecommendationsException
on any connection errorCopyright © 2010 - 2020 Adobe. All Rights Reserved