public class SubmissionParams extends BazaarParams
media| Constructor and Description |
|---|
SubmissionParams()
Creates a SubmissionParams instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalField(String id,
String value)
Sets AdditionalField for a particular dimensionExternalId.
|
void |
addContextDataValue(String dimensionExternalId,
String value)
Sets ContextDataValue for a particular dimensionExternalId.
|
void |
addPhotoCaption(String photoCaption)
Associates a photo caption with this submission.
|
void |
addPhotoUrl(String photoUrl)
Associates a photo url with this submission.
|
protected void |
addPostParameters(String apiVersion,
String passKey,
BazaarRequest request)
Add multipart parameters to the Http request
|
void |
addProductRecommendationId(String productId)
Add a product id to the list of "ProductRecommendationId_<n>"
parameters for this submission.
|
void |
addRatingForDimensionExternalId(String dimensionExternalId,
String value)
Sets a rating for a particular dimensionExternalId.
|
void |
addTagForDimensionExternalId(String dimensionExternalId,
String value)
Adds a tag with a particular dimensionExternalId and value.
|
void |
addTagIdForDimensionExternalId(String dimensionExternalId,
Boolean value)
Adds a tag with a particular dimensionExternalId and value.
|
void |
addVideoCaption(String videoCaption)
Associates a video caption with this submission.
|
void |
addVideoUrl(String videoUrl)
Associates a video url with this submission.
|
Action |
getAction()
Get the Action type for the "Action" parameter for this submission if it
has been set.
|
Map<String,String> |
getAdditionalField() |
Boolean |
getAgreedToTermsAndConditions()
Get the value of the "AgreedToTermsAndConditions" parameter for this
submission if it has been set.
|
String |
getAnswerText()
Get the "AnswerText" parameter for this submission if it has been set.
|
String |
getCampaignId()
Get the "CampaignId" parameter for this submission if it has been set.
|
String |
getCategoryId()
Get the "CategoryId" parameter for this submission if it has been set.
|
String |
getCommentText()
Get the "CommentText" parameter for this submission if it has been set.
|
String |
getContentId()
Get the "ContentId" parameter for this submission if it has been set
|
FeedbackContentType |
getContentType()
Get the "ContentType" parameter for this submission if it has been set
|
Map<String,String> |
getContextDataValue() |
FeedbackType |
getFeedbackType()
Get the "FeedbackType" parameter for this submission if it has been set
|
String |
getFingerprint()
Gets the fingerprint provided by iovation to add authenticity
to a Bazaarvoice Conversations Submission request
|
String |
getHostedAuthCallbackUrl() |
String |
getHostedAuthEmail() |
Boolean |
getIsUserAnonymous()
Get the value of the "IsUserAnonymous" parameter for this submission if
it has been set.
|
String |
getLocale()
Get the "Locale" parameter for this submission if it has been set.
|
String |
getNetPromoterComment()
Get the "NetPromoterComment" parameter for this submission if it has been
set.
|
Integer |
getNetPromoterScore()
Get the "NetPromoterScore" parameter for this submission if it has been
set.
|
List<String> |
getPhotoCaptions() |
List<String> |
getPhotoUrls() |
String |
getProductId()
Get the "ProductId" parameter for this submission if it has been set.
|
List<String> |
getProductRecommendationIds() |
String |
getQuestionDetails()
Get the "QuestionDetails" parameter for this submission if it has been
set.
|
String |
getQuestionId()
Get the "QuestionId" for this submission if it has been set.
|
String |
getQuestionSummary()
Get the "QuestionSummary" parameter for this submission if it has been
set.
|
Integer |
getRating()
Get the "Rating" parameter for this submission if it has been set.
|
Map<String,String> |
getRatingForDimensionExternalId() |
String |
getReasonText()
Get the "ReasonText" parameter for this submission if it has been set
|
Boolean |
getRecommended()
Get the value of the "IsRecommended" parameter for this submission if it
has been set.
|
String |
getReviewId()
Get the "ReviewId" parameter for this submission if it has been set.
|
String |
getReviewText()
Get the "ReviewText" parameter for this submission if it has been set.
|
Boolean |
getSendEmailAlertWhenCommented()
Get the value of the "SendEmailAlertWhenCommented" parameter of this
submission if it has been set.
|
Boolean |
getSendEmailAlertWhenPublished()
Get the value of the "SendEmailAlertWhenPublished" parameter of this
submission if it has been set.
|
String |
getStoryId()
Get the "StoryId" parameter for this submission if it has been set.
|
String |
getStoryText()
Get the "StoryText" parameter for this submission if it has been set.
|
Map<String,String> |
getTagForDimensionExternalId() |
Map<String,String> |
getTagIdForDimensionExternalId() |
String |
getTitle()
Get the "Title" parameter for this submission if it has been set.
|
String |
getUserAuthString() |
String |
getUserEmail()
Get the "UserEmail" parameter for this submission if it has been set.
|
String |
getUserId()
Get the "UserId" parameter for this submission if it has been set.
|
String |
getUserLocation()
Get the "UserLocation" parameter for this submission if it has been set.
|
String |
getUserNickname()
Get the "UserNickname" parameter for this submission if it has been set.
|
List<String> |
getVideoCaptions() |
List<String> |
getVideoUrls() |
FeedbackVoteType |
getVote()
Get the "Vote" parameter for this submission if it has been set
|
void |
setAction(Action action)
The submission action to take -- either Preview or Submit.
|
void |
setAgreedToTermsAndConditions(boolean agreedToTermsAndConditions)
Boolean indicating whether or not the user agreed to the terms and conditions.
|
void |
setAnswerText(String answerText)
Contains the text of an answer for an answer request.
|
void |
setCampaignId(String campaignId)
Arbitrary text that may be saved alongside content to indicate vehicle by which content was captured, e.g.
|
void |
setCategoryId(String categoryId)
The id of the category that this content is being submitted on.
|
void |
setCommentText(String commentText)
The text of the comment for a comment request.
|
void |
setContentId(String contentId)
Sets ID of the content with which a feedback request is associated.
|
void |
setContentType(FeedbackContentType contentType)
Sets the type of content with which a feedback request is associated.
|
void |
setFeedbackType(FeedbackType feedbackType)
Sets the type of feedback with which a feedback request is associated.
|
void |
setFingerprint(String fingerprint)
Sets the fingerprint provided by iovation to add authenticity
to a Bazaarvoice Conversations Submission request
|
void |
setHostedAuthCallbackUrl(String hostedAuthCallbackUrl) |
void |
setHostedAuthEmail(String hostedAuthEmail) |
void |
setIsUserAnonymous(boolean userAnonymous)
Indicates whether this submission should be displayed anonymously.
|
void |
setLocale(String locale)
Locale to display Labels, Configuration, Product Attributes and Category Attributes in.
|
void |
setNetPromoterComment(String netPromoterComment)
Text representing a user comment to explain numerical Net Promoter score.
|
void |
setNetPromoterScore(int netPromoterScore)
Value is a positive integer between 1 and 10 representing a numerical rating in response to "How would you rate this company?"
|
void |
setProductId(String productId)
The id of the product that this content is being submitted on.
|
void |
setQuestionDetails(String questionDetails)
Contains the text of the question details for a question request.
|
void |
setQuestionId(String questionId)
The id of the category that this content is being submitted on for a BVPostTypeQuestion request.
|
void |
setQuestionSummary(String questionSummary)
Contains the text of the question summary for a question request.
|
void |
setRating(int rating)
Value is positive integer between 1 and 5, and represents review overall rating.
|
void |
setReasonText(String reasonText)
Reason that feedback content has been flagged as inappropriate.
|
void |
setRecommended(boolean recommended)
Boolean answer to "I would recommend this to a friend".
|
void |
setReviewId(String reviewId)
The id of the review that a comment is being submitted on for a comment request.
|
void |
setReviewText(String reviewText)
Contains the text of an review for a review submission.
|
void |
setSendEmailAlertWhenCommented(boolean sendEmailAlertWhenCommented)
Boolean indicating whether or not the user wants to be notified when a comment is posted on the content.
|
void |
setSendEmailAlertWhenPublished(boolean sendEmailAlertWhenPublished)
Boolean indicating whether or not the user wants to be notified when his/her content is published.
|
void |
setStoryId(String storyId)
The id of the story that a comment is being submitted on for a story comment request.
|
void |
setStoryText(String storyText)
The text of the story for a story request.
|
void |
setTitle(String title)
Content title text.
|
void |
setUserAuthString(String userAuthString) |
void |
setUserEmail(String userEmail)
User's email address.
|
void |
setUserId(String userId)
User's external ID.
|
void |
setUserLocation(String userLocation)
User location text.
|
void |
setUserNickname(String userNickname)
User nickname display text.
|
void |
setVote(FeedbackVoteType feedbackVoteType)
Helpfulness vote for this content (positive or negative).
|
protected String |
toURL(String apiVersion,
String passKey)
Convert the class into a url parameters string.
|
addMultipartParameter, addMultipartParameter, addMultipartParameter, addNthURLParamsFromList, addToMap, addURLParameter, addURLParameter, addURLParameter, encode, getMediapublic Action getAction()
public void setAction(Action action)
action - an action typepublic Boolean getAgreedToTermsAndConditions()
public void setAgreedToTermsAndConditions(boolean agreedToTermsAndConditions)
agreedToTermsAndConditions - true for yes, false for nopublic String getCampaignId()
public void setCampaignId(String campaignId)
campaignId - a campaign idpublic String getLocale()
public void setLocale(String locale)
locale - a localepublic Boolean getSendEmailAlertWhenPublished()
public void setSendEmailAlertWhenPublished(boolean sendEmailAlertWhenPublished)
sendEmailAlertWhenPublished - true for yes, false for nopublic String getUserEmail()
public void setUserEmail(String userEmail)
userEmail - an email addresspublic String getUserId()
public void setUserId(String userId)
userId - a user idpublic String getUserLocation()
public void setUserLocation(String userLocation)
userLocation - a user location.public String getUserNickname()
public void setUserNickname(String userNickname)
userNickname - a user nicknamepublic void addContextDataValue(String dimensionExternalId, String value)
dimensionExternalId - the dimensionExternalId of the context data valuevalue - a parameter valuepublic void addPhotoCaption(String photoCaption)
Usage:
For each photo added, the caption must be added in the same order. i.e.
addPhotoUrl(photo1);
addPhotoUrl(photo2);
addPhotoCaption(captionfor1);
addPhotoCaption(captionfor2);
photoCaption - a photo captionpublic void addPhotoUrl(String photoUrl)
photoUrl - the url of a photo hosted by Bazaarvoice (uploaded though the
API)public void addProductRecommendationId(String productId)
productId - a product idpublic void addVideoCaption(String videoCaption)
Usage:
For each video added, the caption must be added in the same order. i.e.
addVideoUrl(video1);
addVideoUrl(video2);
addVideoCaption(captionfor1);
addVideoCaption(captionfor2);
videoCaption - a video captionpublic void addVideoUrl(String videoUrl)
videoUrl - the url of a video hosted by either YouTube or Bazaarvoice
(Uploaded through the API)public void addAdditionalField(String id, String value)
id - the id of the additional fieldvalue - a valuepublic String getProductId()
public void setProductId(String productId)
productId - public void addTagForDimensionExternalId(String dimensionExternalId, String value)
dimensionExternalId - dimension external id for this tagvalue - tag value.public void addTagIdForDimensionExternalId(String dimensionExternalId, Boolean value)
dimensionExternalId - dimension external id for this tagvalue - tag value.public String getTitle()
public void setTitle(String title)
title - a titlepublic String getCategoryId()
public void setCategoryId(String categoryId)
categoryId - a category idpublic Boolean getRecommended()
public void setRecommended(boolean recommended)
recommended - true for yes, false for nopublic String getNetPromoterComment()
public void setNetPromoterComment(String netPromoterComment)
netPromoterComment - a net promoter commentpublic Integer getNetPromoterScore()
public void setNetPromoterScore(int netPromoterScore)
netPromoterScore - a net promoter scorepublic Integer getRating()
public void setRating(int rating)
rating - a ratingpublic String getReviewText()
public void setReviewText(String reviewText)
reviewText - text of a reviewpublic void addRatingForDimensionExternalId(String dimensionExternalId, String value)
dimensionExternalId - the dimension idvalue - a ratingpublic Boolean getIsUserAnonymous()
public void setIsUserAnonymous(boolean userAnonymous)
userAnonymous - true for yes, false for nopublic String getQuestionSummary()
public void setQuestionSummary(String questionSummary)
questionSummary - a question summary (single line of text)public String getQuestionDetails()
public void setQuestionDetails(String questionDetails)
questionDetails - the question detailspublic String getAnswerText()
public void setAnswerText(String answerText)
answerText - an answer textpublic String getQuestionId()
public void setQuestionId(String questionId)
questionId - a question idpublic Boolean getSendEmailAlertWhenCommented()
public void setSendEmailAlertWhenCommented(boolean sendEmailAlertWhenCommented)
sendEmailAlertWhenCommented - true for yes, false for nopublic String getStoryText()
public void setStoryText(String storyText)
storyText - a storypublic String getReviewId()
public void setReviewId(String reviewId)
reviewId - a review idpublic String getStoryId()
public void setStoryId(String storyId)
storyId - a story idpublic String getCommentText()
public void setCommentText(String commentText)
commentText - a commentpublic String getContentId()
public void setContentId(String contentId)
contentId - id to setpublic FeedbackContentType getContentType()
public void setContentType(FeedbackContentType contentType)
contentType - type of feedback contentpublic FeedbackType getFeedbackType()
public String getFingerprint()
public void setFeedbackType(FeedbackType feedbackType)
feedbackType - type of feedbackpublic void setFingerprint(String fingerprint)
fingerprint - Iovation authenticity fingerprintpublic String getReasonText()
public void setReasonText(String reasonText)
reasonText - text reasonpublic FeedbackVoteType getVote()
public void setVote(FeedbackVoteType feedbackVoteType)
feedbackVoteType - vote typepublic String getHostedAuthEmail()
public void setHostedAuthEmail(String hostedAuthEmail)
hostedAuthEmail - This parameter tells the Bazaarvoice platform where to send the email that will contain the authentication link.
HostedAuthentication_AuthenticationEmail overrides anything submitted in the 'useremail' field.
For further info, please refer to: https://developer.bazaarvoice.com/apis/conversations/tutorials/bazaarvoice_mastered_authenticationpublic String getHostedAuthCallbackUrl()
public void setHostedAuthCallbackUrl(String hostedAuthCallbackUrl)
hostedAuthCallbackUrl - This URL will be used as the front-end to your authentication service.
The HostedAuthentication_CallbackURL does not appear in the API response as an available field because it does not represent a user facing question.
You should submit this value with no input from content authors. This URL must be white-listed.
For further info, please refer to: https://developer.bazaarvoice.com/apis/conversations/tutorials/bazaarvoice_mastered_authenticationpublic String getUserAuthString()
public void setUserAuthString(String userAuthString)
userAuthString - When using Hosted Authentication to confirm posts with the Conversations API,
use the Bazaarvoice-provided User Authentication String to tie the deivce to the user ID so the user can make authenticated POSTs.
For further info, please refer to: https://developer.bazaarvoice.com/apis/conversations/tutorials/bazaarvoice_mastered_authenticationprotected String toURL(String apiVersion, String passKey)
BazaarParamstoURL in class BazaarParamsapiVersion - Conversations API VersionpassKey - Conversations API Keyprotected void addPostParameters(String apiVersion, String passKey, BazaarRequest request)
BazaarParamsaddPostParameters in class BazaarParamsapiVersion - Conversations API VersionpassKey - Conversations API Keyrequest - Request that params should be added toCopyright © 2016. All Rights Reserved.