Class ListOffersRequest
java.lang.Object
com.day.cq.analytics.testandtarget.ListOffersRequest
A request object used to retrieve a list of offers from Adobe Target.
This class is currently a no-op, but it will be upgraded to support filtering when the Target API
offers will support this
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aListOffersRequestusing the default values (includeContent is false) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of filters of this request objectReturns the sorter for this listbooleanReturns true if this offers request has been instructed to also retrieve the offer's contentincludeContent(boolean include) Sets the includeContent flag on this requestwithFilter(ListFilter filter) Adds a filter to this requests filter list.withSorter(ListSorter sorter) Adds a sorter to this request.
-
Constructor Details
-
ListOffersRequest
public ListOffersRequest()Constructs aListOffersRequestusing the default values (includeContent is false)
-
-
Method Details
-
includeContent
Sets the includeContent flag on this request- Parameters:
include- if set to true, the response object(s) will also include the content of the offers, otherwise they won't- Returns:
- the current
ListOffersRequestobject
-
includeContent
public boolean includeContent()Returns true if this offers request has been instructed to also retrieve the offer's content- Returns:
- true if the includeContent flag is set, false otherwise.
-
withFilter
Adds a filter to this requests filter list. This filter is used to generate a query string that searches for specific offers- Parameters:
filter- aListFilterobject- Returns:
- a reference to this object
-
withSorter
Adds a sorter to this request. This sorter is used to generate the "sortBy" element of the query string- Parameters:
sorter- aListSorterobject- Returns:
- an instance to this object
-
getFilters
Retrieves the list of filters of this request object- Returns:
- a list of
ListFilterobjects
-
getSorter
Returns the sorter for this list- Returns:
- a
ListSorterobject
-