public class DisplayParams extends BazaarParams
media| Constructor and Description |
|---|
DisplayParams()
Creates a DisplayParams instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String attribute)
Attributes to be included when returning content.
|
void |
addFilter(java.lang.String attribute,
Equality equality,
java.lang.String value)
Filter criteria for primary content of the query.
|
void |
addFilter(java.lang.String attribute,
Equality equality,
java.lang.String[] values)
Filter criteria for primary content of the query.
|
void |
addFilterOnIncludedType(IncludeType filterType,
java.lang.String attribute,
Equality equality,
java.lang.String value)
Add a "Filter_[TYPE]" parameter to the request.
|
void |
addFilterOnIncludedType(IncludeType filterType,
java.lang.String attribute,
Equality equality,
java.lang.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(java.lang.String apiVersion,
java.lang.String passKey,
BazaarRequest request)
Add multipart parameters to the Http request
|
void |
addSearchOnIncludedType(IncludeType type,
java.lang.String searchString)
Search query for included content.
|
void |
addSort(java.lang.String attribute,
boolean asc)
Add an attribute to the "SortOrder" parameter list.
|
void |
addSortOnIncludedType(IncludeType type,
java.lang.String attribute,
boolean asc)
Add a "Sort_[TYPE]" parameter to the request.
|
void |
addStats(IncludeStatsType type)
Add a content type to the "Stats" parameter.
|
java.util.List<java.lang.String> |
getAttributes() |
java.lang.Boolean |
getExcludeFamily()
Get the excludeFamily parameter
|
java.util.List<java.lang.String> |
getFilters() |
java.util.List<java.lang.String> |
getIncludes() |
java.lang.Integer |
getLimit()
Get the limit Parameter
|
java.util.List<java.lang.String> |
getLimitType() |
java.lang.String |
getLocale()
Get the "Locale" parameter if it has been set.
|
java.lang.Integer |
getOffset()
Get the offset Parameter
|
java.lang.String |
getSearch()
Get the search term
|
java.util.List<java.lang.String> |
getSearchType() |
java.util.List<java.lang.String> |
getSort() |
java.util.List<java.lang.String> |
getSortType() |
java.util.List<java.lang.String> |
getStats() |
void |
setExcludeFamily(java.lang.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(java.lang.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(java.lang.String search)
Set the search term to query.
|
protected java.lang.String |
toURL(java.lang.String apiVersion,
java.lang.String passKey)
Convert the class into a url parameters string.
|
addMultipartParameter, addMultipartParameter, addMultipartParameter, addNthURLParamsFromList, addToMap, addURLParameter, addURLParameter, addURLParameter, encode, getMediapublic java.lang.String getSearch()
public void setSearch(java.lang.String search)
search - the earch termspublic java.lang.String getLocale()
public void setLocale(java.lang.String locale)
locale - the localepublic java.lang.Integer getLimit()
public void setLimit(int limit)
limit - new limitpublic java.lang.Integer getOffset()
public void setOffset(int offset)
offset - new offsetpublic java.lang.Boolean getExcludeFamily()
public void setExcludeFamily(java.lang.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 java.util.List<java.lang.String> getIncludes()
public void addAttribute(java.lang.String attribute)
attribute - the new attributepublic java.util.List<java.lang.String> getAttributes()
public void addSort(java.lang.String attribute,
boolean asc)
attribute - the attribute nameasc - true for ascending, false for descendingpublic java.util.List<java.lang.String> getSort()
public void addStats(IncludeStatsType type)
type - the type of content for which to add statspublic java.util.List<java.lang.String> getStats()
public void addSearchOnIncludedType(IncludeType type, java.lang.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 java.util.List<java.lang.String> getSearchType()
public void addSortOnIncludedType(IncludeType type, java.lang.String attribute, boolean asc)
type - the type to sort: comments, reviews, etcattribute - the attribute nameasc - true for ascending, false for descendingpublic java.util.List<java.lang.String> getSortType()
public void addLimitOnIncludedType(IncludeType type, int limitVal)
type - the type to limit: comments, reviews, etclimitVal - the number to limitpublic java.util.List<java.lang.String> getLimitType()
public java.util.List<java.lang.String> getFilters()
public void addFilter(java.lang.String attribute,
Equality equality,
java.lang.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(java.lang.String attribute,
Equality equality,
java.lang.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, java.lang.String attribute, Equality equality, java.lang.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, java.lang.String attribute, Equality equality, java.lang.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 java.lang.String toURL(java.lang.String apiVersion,
java.lang.String passKey)
BazaarParamstoURL in class BazaarParamsapiVersion - Conversations API VersionpassKey - Conversations API Keyprotected void addPostParameters(java.lang.String apiVersion,
java.lang.String passKey,
BazaarRequest request)
BazaarParamsaddPostParameters in class BazaarParamsapiVersion - Conversations API VersionpassKey - Conversations API Keyrequest - Request that params should be added to