Class NewsConfiguration

java.lang.Object
org.jasig.portlet.newsreader.NewsConfiguration
All Implemented Interfaces:
Comparable<NewsConfiguration>
Direct Known Subclasses:
PredefinedNewsConfiguration, UserDefinedNewsConfiguration

public class NewsConfiguration extends Object implements Comparable<NewsConfiguration>
NewsConfiguration represents a user-specific registration and configuration for a NewsDefinition.
Since:
5.1.1
Author:
Anthony Colebourne, Jen Bourey
  • Constructor Details

    • NewsConfiguration

      public NewsConfiguration()
  • Method Details

    • isActive

      public boolean isActive()
      Determine whether this feed is active.
      Returns:
      a boolean
    • setActive

      public void setActive(boolean active)
      Set whether this feed should be displayed or hidden.
      Parameters:
      active - a boolean
    • isDisplayed

      public boolean isDisplayed()
      Determine whether this news should be displayed or hidden.
      Returns:
      a boolean
    • setDisplayed

      public void setDisplayed(boolean displayed)
      Set whether this news should be displayed or hidden.
      Parameters:
      displayed - a boolean
    • getId

      public Long getId()
      Get the unique ID for this NewsConfiguration.
      Returns:
      a Long object
    • setId

      public void setId(Long id)
      Set the unique ID for this NewsConfiguration.
      Parameters:
      id - a Long object
    • getNewsDefinition

      public NewsDefinition getNewsDefinition()
      Get the NewsDefinition for the news being configured.
      Returns:
      a NewsDefinition object
    • setNewsDefinition

      public void setNewsDefinition(NewsDefinition definition)
      Set the NewsDefinition for the news being configured.
      Parameters:
      definition - a NewsDefinition object
    • getNewsSet

      public NewsSet getNewsSet()

      Getter for the field newsSet.

      Returns:
      a NewsSet object
    • setNewsSet

      public void setNewsSet(NewsSet newsSet)

      Setter for the field newsSet.

      Parameters:
      newsSet - a NewsSet object
    • compareTo

      public int compareTo(NewsConfiguration config)
      Specified by:
      compareTo in interface Comparable<NewsConfiguration>