Class PaginatedListRequest<T extends ContentRequest,C extends AssetObject>
java.lang.Object
com.oracle.content.sdk.request.core.ContentRequest<T,C>
com.oracle.content.sdk.request.core.PaginatedListRequest<T,C>
- Direct Known Subclasses:
GetPublishChannelsRequest
,GetTaxonomiesRequest
,GetTaxonomyCategoriesRequest
,SearchAssetsRequest
public abstract class PaginatedListRequest<T extends ContentRequest,C extends AssetObject>
extends ContentRequest<T,C>
Base request for any paginated list request, such as
SearchAssetsRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected Boolean
protected Integer
protected Integer
protected String
protected Boolean
Fields inherited from class com.oracle.content.sdk.request.core.ContentRequest
client, links, objectClass
-
Constructor Summary
ConstructorsConstructorDescriptionPaginatedListRequest
(ContentDeliveryClient client, Class objectClass) Construct request to search for content items. -
Method Summary
Modifier and TypeMethodDescriptionSpecify whether to expand fields.Specifies a list of fields to expand during the request.Just like callingexpand
with "all" as the parameter.Restrict the results to fields that match.Will generate the comma-delimited list of fields based on a list of string field values.Same as a call tofields
specifying "HTTP", so all fields will be returned in search results.protected String
getOrderByParam
(String sortByField) limit
(int limit) Maximum number of items that can come from the request.offset
(int offset) Starting offset to request items fromsortByField
(String sortField) The server will sort the results based on the field which can either by "name" or one of the custom data fields on the content item.sortOrderDescending
(boolean descending) Sort order, specified true for descending or false for ascending order.totalResults
(boolean includeTotalCount) Accepts a Boolean value.Methods inherited from class com.oracle.content.sdk.request.core.ContentRequest
deserializeObject, fetch, fetchAsync, fetchResult, getCacheControl, getCall, getThis, gson, links, linksNone, noCache, observable, observableResult
-
Field Details
-
limit
-
offset
-
sortByField
-
sortOrderDescending
-
includeTotalCount
-
fields
-
expand
-
-
Constructor Details
-
PaginatedListRequest
Construct request to search for content items.- Parameters:
client
- Valid delivery clientobjectClass
- class for result object to deserialize
-
-
Method Details
-
limit
Maximum number of items that can come from the request.- Parameters:
limit
- number of items to return- Returns:
- this
-
totalResults
Accepts a Boolean value. Setting it to true displays the total results field in the response The default is false.- Parameters:
includeTotalCount
- true to include total result count in query- Returns:
- this
-
offset
Starting offset to request items from- Parameters:
offset
- Starting offset to request items- Returns:
- this
-
sortByField
The server will sort the results based on the field which can either by "name" or one of the custom data fields on the content item.- Parameters:
sortField
- The string field to use for sorting on the server- Returns:
- this
-
sortOrderDescending
Sort order, specified true for descending or false for ascending order. Use in conjunction with sortByField. Default sort order if not specified is ascending.- Parameters:
descending
- set to true to set sort order to descending- Returns:
- this
-
fields
Restrict the results to fields that match. This list can be a comma separated list of fields. It is recommended to usefields(List)
to generate this list as it will prefix non-reserved field names with "fields." Note that "id" is always returned.- Parameters:
fields
- Specify the fields to return in the query- Returns:
- this
-
fields
Will generate the comma-delimited list of fields based on a list of string field values.- Parameters:
fieldList
- list of fields- Returns:
- this
-
fieldsAll
Same as a call tofields
specifying "HTTP", so all fields will be returned in search results.- Returns:
- this
-
expand
Specify whether to expand fields. Can be a value such as "fields.field_name" to expand a specific item reference. Note that by default this is not set. See alsoexpandAll()
- Parameters:
field
- expand field value (e.g. "all") or null to not expand references- Returns:
- Builder object
-
expand
Specifies a list of fields to expand during the request.- Parameters:
expandFields
- list of string fields to expand- Returns:
- Builder object
-
expandAll
Just like callingexpand
with "all" as the parameter. Will expand all item reference fields.- Returns:
- Builder object.
-
getOrderByParam
-