public abstract class ReviewDisplayRequestBuilder<BuilderType,RequestType>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
limit |
protected int |
offset |
protected java.lang.String |
productId |
protected java.util.List<ReviewIncludeType> |
reviewIncludeTypes |
protected java.lang.String |
searchPhrase |
protected java.util.List<com.bazaarvoice.bvandroidsdk.Sort> |
sorts |
protected java.util.ArrayList<PDPContentType> |
statistics |
| Constructor and Description |
|---|
ReviewDisplayRequestBuilder(ReviewOptions.PrimaryFilter filterBy,
java.lang.String id,
int limit,
int offset) |
ReviewDisplayRequestBuilder(java.lang.String productId,
int limit,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
BuilderType |
addAdditionalField(java.lang.String key,
java.lang.String value)
Deprecated.
In order to avoid confusion with the unrelated
Review Submission specific
BaseReviewBuilder.addAdditionalField(String, String),
use addCustomDisplayParameter(String, String) instead.
This method adds extra user provided query parameters to a display request, and will be urlencoded. |
BuilderType |
addCustomDisplayParameter(java.lang.String key,
java.lang.String value)
This method adds extra user provided query parameters to a
display request, and will be urlencoded.
|
protected void |
addFilter(com.bazaarvoice.bvandroidsdk.Filter filter) |
BuilderType |
addFilter(ReviewOptions.Filter filter,
EqualityOperator equalityOperator,
java.util.List<java.lang.String> values) |
BuilderType |
addFilter(ReviewOptions.Filter filter,
EqualityOperator equalityOperator,
java.lang.String value) |
BuilderType |
addIncludeContent(ReviewIncludeType... reviewIncludeTypes) |
BuilderType |
addIncludeContent(ReviewIncludeType reviewIncludeType) |
BuilderType |
addPDPContentType(PDPContentType... pdpContentTypes) |
BuilderType |
addPDPContentType(PDPContentType pdpContentType) |
BuilderType |
addSort(ReviewOptions.Sort sort,
SortOrder sortOrder) |
protected void |
addSort(com.bazaarvoice.bvandroidsdk.Sort sort) |
abstract RequestType |
build() |
BuilderType |
includeSearchPhrase(java.lang.String search) |
protected final java.lang.String productId
protected final java.util.List<com.bazaarvoice.bvandroidsdk.Sort> sorts
protected final int limit
protected final int offset
protected final java.util.ArrayList<PDPContentType> statistics
protected java.lang.String searchPhrase
protected java.util.List<ReviewIncludeType> reviewIncludeTypes
public ReviewDisplayRequestBuilder(@NonNull
java.lang.String productId,
int limit,
int offset)
public ReviewDisplayRequestBuilder(ReviewOptions.PrimaryFilter filterBy, java.lang.String id, int limit, int offset)
public BuilderType addPDPContentType(PDPContentType pdpContentType)
public BuilderType addPDPContentType(PDPContentType... pdpContentTypes)
public BuilderType addIncludeContent(ReviewIncludeType reviewIncludeType)
public BuilderType addIncludeContent(ReviewIncludeType... reviewIncludeTypes)
public BuilderType addSort(ReviewOptions.Sort sort, SortOrder sortOrder)
public BuilderType addFilter(ReviewOptions.Filter filter, EqualityOperator equalityOperator, java.lang.String value)
public BuilderType addFilter(ReviewOptions.Filter filter, EqualityOperator equalityOperator, java.util.List<java.lang.String> values)
public BuilderType includeSearchPhrase(java.lang.String search)
public abstract RequestType build()
protected void addFilter(@NonNull
com.bazaarvoice.bvandroidsdk.Filter filter)
protected void addSort(@NonNull
com.bazaarvoice.bvandroidsdk.Sort sort)
public BuilderType addAdditionalField(@NonNull
java.lang.String key,
@Nullable
java.lang.String value)
BaseReviewBuilder.addAdditionalField(String, String),
use addCustomDisplayParameter(String, String) instead.
key - Custom non-encoded url query param keyvalue - Custom non-encoded url query param valuepublic BuilderType addCustomDisplayParameter(@NonNull
java.lang.String key,
@Nullable
java.lang.String value)
key - Custom non-encoded url query param keyvalue - Custom non-encoded url query param value