Class ASerializablePage<TResource extends Serializable>
java.lang.Object
de.xima.fc.api.rest.impl.common.resource.response.ASerializablePage<TResource>
- Type Parameters:
TResource- type of REST API resource.
- All Implemented Interfaces:
ISerializablePage<TResource>, Serializable
- Direct Known Subclasses:
AResourcePage, FormRecordStateHistoryEntryResourcePage, FormTagResourcePage
public abstract class ASerializablePage<TResource extends Serializable>
extends Object
implements ISerializablePage<TResource>
Abstract base model representing a page of
serializables provided by the PUBLIC REST API.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionASerializablePage(List<TResource> results, int page, int offset, int pageSize, int totalCount, javax.ws.rs.core.UriInfo uriInfo, Locale locale, Map<String, List<Serializable>> parameters) -
Method Summary
-
Constructor Details
-
ASerializablePage
-
-
Method Details
-
getLinks
- Specified by:
getLinksin interfaceISerializablePage<TResource extends Serializable>- Returns:
- Links to other pages.
-
getOffset
public int getOffset()- Specified by:
getOffsetin interfaceISerializablePage<TResource extends Serializable>- Returns:
- Offset of the first resource in the results list.
-
getPage
public int getPage()- Specified by:
getPagein interfaceISerializablePage<TResource extends Serializable>- Returns:
- Current page number.
-
getPageSize
public int getPageSize()- Specified by:
getPageSizein interfaceISerializablePage<TResource extends Serializable>- Returns:
- Number of resources per page.
-
getResultCount
public int getResultCount()- Specified by:
getResultCountin interfaceISerializablePage<TResource extends Serializable>- Returns:
- Number of resources in the paginated results list.
-
getResults
- Specified by:
getResultsin interfaceISerializablePage<TResource extends Serializable>- Returns:
- Paginated list of requested resources.
-
getTotalCount
- Specified by:
getTotalCountin interfaceISerializablePage<TResource extends Serializable>- Returns:
- Total number of resources. Is null/not present if not requested.
-
getTotalPages
- Specified by:
getTotalPagesin interfaceISerializablePage<TResource extends Serializable>- Returns:
- Total number of pages. Is null/not present if total count is not requested.
-