Class PaginableEntity<E>

  • Type Parameters:
    E - The underlying entity type.
    All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Audit, Documents, Groups, Users

    public class PaginableEntity<E>
    extends Entity
    Paginable entity is meant for entity using paginable mechanism.
    Since:
    3.0
    See Also:
    Serialized Form
    • Field Detail

      • entries

        protected java.util.List<E> entries
      • resultsCount

        protected int resultsCount
      • pageSize

        protected int pageSize
      • maxPageSize

        protected int maxPageSize
      • currentPageSize

        protected int currentPageSize
      • currentPageIndex

        protected int currentPageIndex
      • numberOfPages

        protected int numberOfPages
      • totalSize

        protected int totalSize
      • pageIndex

        protected int pageIndex
      • pageCount

        protected int pageCount
      • isPaginable

        protected java.lang.Boolean isPaginable
      • isPreviousPageAvailable

        protected java.lang.Boolean isPreviousPageAvailable
      • isNextPageAvailable

        protected java.lang.Boolean isNextPageAvailable
      • isLastPageAvailable

        protected java.lang.Boolean isLastPageAvailable
      • isSortable

        protected java.lang.Boolean isSortable
      • hasError

        protected java.lang.Boolean hasError
      • errorMessage

        protected java.lang.String errorMessage
    • Constructor Detail

      • PaginableEntity

        public PaginableEntity​(java.lang.String entityType)
    • Method Detail

      • getEntries

        public java.util.List<E> getEntries()
      • streamEntries

        public java.util.stream.Stream<E> streamEntries()
      • getEntry

        public E getEntry​(int index)
      • size

        public int size()
      • getResultsCount

        public int getResultsCount()
      • getPageSize

        public int getPageSize()
      • getMaxPageSize

        public int getMaxPageSize()
      • getCurrentPageSize

        public int getCurrentPageSize()
      • getCurrentPageIndex

        public int getCurrentPageIndex()
      • getNumberOfPages

        public int getNumberOfPages()
      • getTotalSize

        public int getTotalSize()
      • getPageIndex

        public int getPageIndex()
      • getPageCount

        public int getPageCount()
      • isPaginable

        public boolean isPaginable()
      • isPreviousPageAvailable

        public boolean isPreviousPageAvailable()
      • isNextPageAvailable

        public boolean isNextPageAvailable()
      • isLastPageAvailable

        public boolean isLastPageAvailable()
      • isSortable

        public boolean isSortable()
      • hasError

        public boolean hasError()
      • getErrorMessage

        public java.lang.String getErrorMessage()
      • isTrue

        public static boolean isTrue​(java.lang.Boolean bool)