public interface PagingStrategy
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
executeCollectionTypePaging(PageInfoCtx pagingInfo,
java.lang.Object value)
Deprecated.
after CollectionTypes will be replaced with RelationTypes(since 5.0.0) this method will be useless.
There will be no need to implement this method. The executeRelationTypePaging method will be used
instead of this.
|
java.lang.Object |
executeRelationTypePaging(PageInfoCtx pagingInfo,
RelationDescriptorModel relDesc,
java.lang.Object model)
Returns a paginated collection which is specified by pagingInfo and comes from N:M relation OR a paginated
collection which comes from 1:N relation.
|
java.lang.Object |
executeRootCollectionPaging(PageInfoCtx pagingInfo,
java.lang.String typeName)
Returns a collection which comes from Root Resource(possibly paginated).
|
PageInfoCtx |
findPageContext(java.lang.String collectionPropertyName,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> queryParams)
Returns page context if query parameters and collection property name suit each other.
|
PageInfoCtx findPageContext(java.lang.String collectionPropertyName, java.util.Map<java.lang.String,java.util.List<java.lang.String>> queryParams)
collectionPropertyName - The Name of the collection property.queryParams - Query parameters which comes from requested URL.java.lang.Object executeRootCollectionPaging(PageInfoCtx pagingInfo, java.lang.String typeName)
pagingInfo - Holds all required information about paging settings.typeCode - The requested type code of collection elements.java.lang.Object executeRelationTypePaging(PageInfoCtx pagingInfo, RelationDescriptorModel relDesc, java.lang.Object model)
pagingInfo - Holds all required information about paging settings.relDesc - The relation descriptor.model - The instance of model which holds the returned collection.@Deprecated java.lang.Object executeCollectionTypePaging(PageInfoCtx pagingInfo, java.lang.Object value)
pagingInfo - Holds all required information about paging settings.value - The collection which will be paginated.Copyright © 2018 SAP SE. All Rights Reserved.