Package com.skava.auth.util
Class PaginationUtil
java.lang.Object
com.skava.auth.util.PaginationUtil
This class has the utility methods for page details manipulation.
- Author:
- Infosys Equinox
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Integer
getPageNumber
(Integer offset, Integer limit, Integer page, boolean hasOffset) This method calculate page number by offset and limit.static RequestData
getRequestDataWithPageDetails
(Integer offset, Integer limit, Integer page, Integer size, boolean loadPrivileges) THis method construct the get all roles request with pagination details.
-
Field Details
-
DEFAULT_PAGE_SIZE
default pagination limit.- See Also:
-
DEFAULT_PAGE_NUMBER
default page number.- See Also:
-
DEFAULT_SIZE_WITHPRIVILEGES
public static final int DEFAULT_SIZE_WITHPRIVILEGESdefault page size for loading roles with privileges.- See Also:
-
-
Method Details
-
getRequestDataWithPageDetails
public static RequestData getRequestDataWithPageDetails(Integer offset, Integer limit, Integer page, Integer size, boolean loadPrivileges) THis method construct the get all roles request with pagination details. -
getPageNumber
This method calculate page number by offset and limit.
-