All Implemented Interfaces:
Freezable<Node>, Comparable<News>

public class News extends Element implements Comparable<News>
Models one news entry.
  • Constructor Details

    • News

      public News()
  • Method Details

    • compareTo

      public int compareTo(News o)
      Ordered by pubDate desc, page.
      Specified by:
      compareTo in interface Comparable<News>
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in class Node
    • isHidden

      public boolean isHidden()
      News elements are not part of the content directly, so are hidden from tree views.
      Overrides:
      isHidden in class Element
    • getBook

      public String getBook()
    • setBook

      public void setBook(String book)
    • getTargetPage

      public String getTargetPage()
    • setTargetPage

      public void setTargetPage(String targetPage)
    • getElement

      public String getElement()
    • setElement

      public void setElement(String element)
    • getView

      public String getView()
    • setView

      public void setView(String view)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getPubDate

      public DateTime getPubDate()
    • setPubDate

      public void setPubDate(ReadableDateTime pubDate)
    • getAllowRobots

      public Boolean getAllowRobots()
      Gets the allowRobots setting.
      • null (The default) - Inherit setting from page
      • true - Robots allowed
      • false - Robots not allowed
    • setAllowRobots

      public void setAllowRobots(Boolean allowRobots)
    • getDefaultIdPrefix

      protected String getDefaultIdPrefix()
      Specified by:
      getDefaultIdPrefix in class Element