Class ContentMultiPageParams.ContentPageParams

java.lang.Object
de.espirit.firstspirit.access.store.PageParams
de.espirit.firstspirit.access.store.sitestore.ContentMultiPageParams.ContentPageParams
All Implemented Interfaces:
Iterable<Entity>
Enclosing class:
ContentMultiPageParams

public class ContentMultiPageParams.ContentPageParams extends PageParams implements Iterable<Entity>
Specialized page parameters on records.
Since:
4.0.17
  • Method Details

    • isLast

      public boolean isLast()
      Indicates this parameters container to represent the last range of parameters.
      Overrides:
      isLast in class PageParams
      Returns:
      true, if it is the last.
      Since:
      4.0.17
    • getOffset

      public int getOffset()
      Provides the offset.
      Returns:
      The offset.
      Since:
      4.0.17
    • getAll

      public EntityList getAll()
      Provides all records for the overall parameters definition.
      Returns:
      A list of records.
      Since:
      4.0.19
    • getData

      public List<Entity> getData()
      Provides the records defined by this range restricted parameters definition.
      Returns:
      A list of records.
      Since:
      4.0.17
    • getSize

      public int getSize()
      A single page may render multiple containers, e.g. datasets, on one page - this method delivers the number of instances.
      Overrides:
      getSize in class PageParams
      Returns:
      number of inner elements
      Since:
      5.0.3
    • getLastChangeDate

      public long getLastChangeDate(long after)
      Calculate the last change date after the provided timestamp. The default implementation returns the provided timestamp.
      Overrides:
      getLastChangeDate in class PageParams
      Since:
      4.2.
      See Also:
    • iterator

      public Iterator<Entity> iterator()
      Provides an iterator over records retrieved with use of this parameters.
      Specified by:
      iterator in interface Iterable<Entity>
      Returns:
      An iterator.
      Since:
      4.0.17
    • get

      public Entity get(int index)
      Provides a single record stored at the given position.
      Parameters:
      index - The index.
      Returns:
      A record.
      Since:
      4.0.17