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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintgetOrder()intinthashCode()voidrecalculateOffset(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.voidsetOffset(int offset) voidsetOrder(SortingOrder order) voidsetPageSize(int pageSize) 
- 
Constructor Details- 
PageQuerypublic PageQuery()
- 
PageQuery
 
- 
- 
Method Details- 
getPageSizepublic int getPageSize()
- 
setPageSizepublic void setPageSize(int pageSize) 
- 
getOffsetpublic int getOffset()
- 
setOffsetpublic void setOffset(int offset) 
- 
getOrder
- 
setOrder
- 
recalculateOffsetThis 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
- 
hashCodepublic int hashCode()
 
-