Class PageQuery

java.lang.Object
cz.metacentrum.perun.core.api.PageQuery
Direct Known Subclasses:
ApplicationsPageQuery, BlockedLoginsPageQuery, GroupsPageQuery, InvitationsPageQuery, MembersPageQuery, MessagesPageQuery, UsersPageQuery

public abstract class PageQuery extends Object
  • Constructor Details

    • PageQuery

      public PageQuery()
    • PageQuery

      public PageQuery(int pageSize, int offset, SortingOrder order)
  • Method Details

    • getPageSize

      public int getPageSize()
    • setPageSize

      public void setPageSize(int pageSize)
    • getOffset

      public int getOffset()
    • setOffset

      public void setOffset(int offset)
    • getOrder

      public SortingOrder getOrder()
    • setOrder

      public void setOrder(SortingOrder order)
    • recalculateOffset

      public 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. 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object