public class PageInfo
extends java.lang.Object
Constructor and Description |
---|
PageInfo(SocialCollectionComponent component,
ClientUtilities clientUtils,
CollectionPagination pagination) |
PageInfo(SocialCollectionComponent component,
ClientUtilities clientUtils,
CollectionPagination pagination,
java.lang.String params) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBasePageURL()
Returns the base page URL based on the current social component.
|
long |
getCurrentIndex()
The current offset into the index that is being used for the pages.
|
boolean |
getHasMultiplePages()
Gets the flag if pages are available in this component.
|
boolean |
getHasNextPage()
Gets info if next page exists.
|
boolean |
getHasPreviousPage()
Gets info if previous page exists.
|
java.lang.String |
getIncludedPath() |
long |
getLastPage()
Gets the index of last page in this component.
|
java.lang.String |
getNextPageURL()
A simple function for getting the next page in the results.
|
java.lang.String |
getNextSuffix() |
long |
getPageSize()
Gets the current configuration for the size of a page.
|
java.lang.String |
getPreviousPageURL()
A simple function for getting the next page in the results.
|
java.lang.String |
getPreviousSuffix() |
long |
getSelectedPage()
Gets the current page number.
|
java.lang.String |
getSortIndex()
The current offset into the index that is being used for the pages.
|
long |
getTotalPages()
Gets the total number of pages in this component.
|
java.lang.String |
getURLPattern()
Gets the url pattern for fetching other pages with two tokens ${startIndex} and ${size} which determine where
to start the next page from and how many entries to fetch.
|
boolean |
isOrderReversed() |
public PageInfo(SocialCollectionComponent component, ClientUtilities clientUtils, CollectionPagination pagination)
public PageInfo(SocialCollectionComponent component, ClientUtilities clientUtils, CollectionPagination pagination, java.lang.String params)
public java.lang.String getURLPattern()
public long getSelectedPage()
public long getTotalPages()
public boolean getHasMultiplePages()
public long getLastPage()
public long getPageSize()
public boolean getHasNextPage()
public boolean getHasPreviousPage()
public long getCurrentIndex()
public java.lang.String getNextPageURL()
public java.lang.String getPreviousPageURL()
public java.lang.String getNextSuffix()
public java.lang.String getPreviousSuffix()
public java.lang.String getSortIndex()
public java.lang.String getBasePageURL()
public java.lang.String getIncludedPath()
public boolean isOrderReversed()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"