Class PaginatingNewsFeed

java.lang.Object
org.jasig.portlet.newsreader.model.NewsFeed
org.jasig.portlet.newsreader.model.PaginatingNewsFeed
All Implemented Interfaces:
Serializable

public class PaginatingNewsFeed extends NewsFeed

PaginatingNewsFeed class.

Since:
5.1.1
Author:
Chris White (christopher.white@manchester.ac.uk)
See Also:
  • Constructor Details

    • PaginatingNewsFeed

      public PaginatingNewsFeed(int entriesPerPage)

      Constructor for PaginatingNewsFeed.

      Parameters:
      entriesPerPage - a int
    • PaginatingNewsFeed

      public PaginatingNewsFeed(int entriesPerPage, int initialPage)

      Constructor for PaginatingNewsFeed.

      Parameters:
      entriesPerPage - a int
      initialPage - a int
  • Method Details

    • getPage

      public int getPage()

      Getter for the field page.

      Returns:
      a int
    • setPage

      public void setPage(int p)

      Setter for the field page.

      Parameters:
      p - a int
    • getPageCount

      public double getPageCount()

      getPageCount.

      Returns:
      a double
    • setMaxStories

      public void setMaxStories(int maxStories)

      Setter for the field maxStories.

      Parameters:
      maxStories - a int
    • getMaxStories

      public int getMaxStories()

      Getter for the field maxStories.

      Returns:
      a int
    • getEntries

      public List<NewsFeedItem> getEntries()

      Getter for the field entries.

      Overrides:
      getEntries in class NewsFeed
      Returns:
      a List object