public class DisplayParams extends BazaarParams
media| Constructor and Description |
|---|
DisplayParams()
Creates a DisplayParams instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String attribute)
Attributes to be included when returning content.
|
void |
addFilter(String attribute,
Equality equality,
String value)
Filter criteria for primary content of the query.
|
void |
addFilter(String attribute,
Equality equality,
String[] values)
Filter criteria for primary content of the query.
|
void |
addFilterOnIncludedType(IncludeType filterType,
String attribute,
Equality equality,
String value)
Add a "Filter_[TYPE]" parameter to the request.
|
void |
addFilterOnIncludedType(IncludeType filterType,
String attribute,
Equality equality,
String[] values)
Add a "Filter_[TYPE]" parameter to the request.
|
void |
addInclude(IncludeType type)
Related subjects to be included (e.g.
|
void |
addLimitOnIncludedType(IncludeType type,
int limitVal)
Add a "Limit_[TYPE]" parameter to the request.
|
protected void |
addPostParameters(String apiVersion,
String passKey,
BazaarRequest request)
Add multipart parameters to the Http request
|
void |
addSearchOnIncludedType(IncludeType type,
String searchString)
Search query for included content.
|
void |
addSort(String attribute,
boolean asc)
Add an attribute to the "Sort" parameter list.
|
void |
addSortOnIncludedType(IncludeType type,
String attribute,
boolean asc)
Add a "Sort_[TYPE]" parameter to the request.
|
void |
addStats(IncludeStatsType type)
Add a content type to the "Stats" parameter.
|
List<String> |
getAttributes() |
Boolean |
getExcludeFamily()
Get the excludeFamily parameter
|
List<String> |
getFilters() |
List<String> |
getIncludes() |
Integer |
getLimit()
Get the limit Parameter
|
List<String> |
getLimitType() |
String |
getLocale()
Get the "Locale" parameter if it has been set.
|
Integer |
getOffset()
Get the offset Parameter
|
String |
getSearch()
Get the search term
|
List<String> |
getSearchType() |
List<String> |
getSort() |
List<String> |
getSortType() |
List<String> |
getStats() |
void |
setExcludeFamily(Boolean excludeFamily)
Boolean flag indicating whether to exclude content (reviews, questions, etc.) from other products in the same family as the requested product.
|
void |
setLimit(int limit)
Limits the maximum number of results that may be returned.
|
void |
setLocale(String locale)
Locale to display Labels, Configuration, Product Attributes and Category Attributes in.
|
void |
setOffset(int offset)
Changes the index at which to begin returning results.
|
void |
setSearch(String search)
Set the search term to query.
|
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 String getSearch()
public void setSearch(String search)
search - the earch termspublic String getLocale()
public void setLocale(String locale)
locale - the localepublic Integer getLimit()
public void setLimit(int limit)
limit - new limitpublic Integer getOffset()
public void setOffset(int offset)
offset - new offsetpublic Boolean getExcludeFamily()
public void setExcludeFamily(Boolean excludeFamily)
"&filter=productid:eq:1101&include=reviews&excludeFamily=true" limits returned review content to just that of product 1101 and not any of the products in the same family. If a value is not defined, content on all products in the family is returned.public void addInclude(IncludeType type)
type - the type to includepublic void addAttribute(String attribute)
attribute - the new attributepublic void addSort(String attribute, boolean asc)
attribute - the attribute nameasc - true for ascending, false for descendingpublic void addStats(IncludeStatsType type)
type - the type of content for which to add statspublic void addSearchOnIncludedType(IncludeType type, String searchString)
Note: Be sure to remove any leading or trailing white space as it could interfere with search performance.
type - the type to search: comments, reviews, etcsearchString - the string to search forpublic void addSortOnIncludedType(IncludeType type, String attribute, boolean asc)
type - the type to sort: comments, reviews, etcattribute - the attribute nameasc - true for ascending, false for descendingpublic void addLimitOnIncludedType(IncludeType type, int limitVal)
type - the type to limit: comments, reviews, etclimitVal - the number to limitpublic void addFilter(String attribute, Equality equality, String value)
attribute - what to filter on, i.e. Rating or ProductIdequality - comparison for filtering, greater than, equals etcvalue - the value for the filterpublic void addFilter(String attribute, Equality equality, String[] values)
attribute - what to filter on, i.e. Rating or ProductIdequality - comparison for filtering, greater than, equals etcvalues - the values for the filterpublic void addFilterOnIncludedType(IncludeType filterType, String attribute, Equality equality, String value)
filterType - the type to filter, i.e. Comments for Reviews. If null this is
a regular filterattribute - what to filter on, i.e. Rating or ProductIdequality - comparison for filtering, greater than, equals etcvalue - the value for the filterpublic void addFilterOnIncludedType(IncludeType filterType, String attribute, Equality equality, String[] values)
Allows multiple values.
filterType - the type to filter, i.e. Comments for Reviews.attribute - what to filter on, i.e. Rating or ProductIdequality - comparison for filtering, greater than, equals etcvalues - the values for the filterprotected 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.