Package cz.metacentrum.perun.core.api
Class PageQuery
java.lang.Object
cz.metacentrum.perun.core.api.PageQuery
- Direct Known Subclasses:
ApplicationsPageQuery
,BlockedLoginsPageQuery
,GroupsPageQuery
,InvitationsPageQuery
,MembersPageQuery
,MessagesPageQuery
,UsersPageQuery
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getOrder()
int
int
hashCode()
void
recalculateOffset
(Integer filteredCount) This method recalculates sets the correct offset if the offset requested from the client is bigger than the total count of the found entities.void
setOffset
(int offset) void
setOrder
(SortingOrder order) void
setPageSize
(int pageSize)
-
Constructor Details
-
PageQuery
public PageQuery() -
PageQuery
-
-
Method Details
-
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int pageSize) -
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
getOrder
-
setOrder
-
recalculateOffset
This method recalculates sets the correct offset if the offset requested from the client is bigger than the total count of the found entities. In this case we will want to change the offset to display the last found page (considering the given page size).- Parameters:
filteredCount
- total count of filtered entities
-
equals
-
hashCode
public int hashCode()
-