Class ListOffersRequest
- java.lang.Object
-
- com.day.cq.analytics.testandtarget.ListOffersRequest
-
public class ListOffersRequest extends java.lang.ObjectA 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
Constructors Constructor Description ListOffersRequest()Constructs aListOffersRequestusing the default values (includeContent is false)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ListFilter>getFilters()Retrieves the list of filters of this request objectListSortergetSorter()Returns the sorter for this listbooleanincludeContent()Returns true if this offers request has been instructed to also retrieve the offer's contentListOffersRequestincludeContent(boolean include)Sets the includeContent flag on this requestListOffersRequestwithFilter(ListFilter filter)Adds a filter to this requests filter list.ListOffersRequestwithSorter(ListSorter sorter)Adds a sorter to this request.
-
-
-
Constructor Detail
-
ListOffersRequest
public ListOffersRequest()
Constructs aListOffersRequestusing the default values (includeContent is false)
-
-
Method Detail
-
includeContent
public ListOffersRequest includeContent(boolean include)
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
public ListOffersRequest withFilter(ListFilter filter)
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
public ListOffersRequest withSorter(ListSorter sorter)
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
public java.util.List<ListFilter> getFilters()
Retrieves the list of filters of this request object- Returns:
- a list of
ListFilterobjects
-
getSorter
public ListSorter getSorter()
Returns the sorter for this list- Returns:
- a
ListSorterobject
-
-