org.jasig.portlet.newsreader
Class NewsConfiguration

java.lang.Object
  extended by 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.

Author:
Anthony Colebourne, Jen Bourey

Constructor Summary
NewsConfiguration()
           
 
Method Summary
 int compareTo(NewsConfiguration config)
           
 Long getId()
          Get the unique ID for this NewsConfiguration.
 NewsDefinition getNewsDefinition()
          Get the NewsDefinition for the news being configured.
 NewsSet getNewsSet()
           
 boolean isActive()
          Determine whether this feed is active.
 boolean isDisplayed()
          Determine whether this news should be displayed or hidden.
 void setActive(boolean active)
          Set whether this feed should be displayed or hidden.
 void setDisplayed(boolean displayed)
          Set whether this news should be displayed or hidden.
 void setId(Long id)
          Set the unique ID for this NewsConfiguration.
 void setNewsDefinition(NewsDefinition definition)
          Set the NewsDefinition for the news being configured.
 void setNewsSet(NewsSet newsSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsConfiguration

public NewsConfiguration()
Method Detail

isActive

public boolean isActive()
Determine whether this feed is active.

Returns:

setActive

public void setActive(boolean active)
Set whether this feed should be displayed or hidden.

Parameters:
active -

isDisplayed

public boolean isDisplayed()
Determine whether this news should be displayed or hidden.

Returns:

setDisplayed

public void setDisplayed(boolean displayed)
Set whether this news should be displayed or hidden.

Parameters:
displayed -

getId

public Long getId()
Get the unique ID for this NewsConfiguration.

Returns:

setId

public void setId(Long id)
Set the unique ID for this NewsConfiguration.

Parameters:
id -

getNewsDefinition

public NewsDefinition getNewsDefinition()
Get the NewsDefinition for the news being configured.

Returns:

setNewsDefinition

public void setNewsDefinition(NewsDefinition definition)
Set the NewsDefinition for the news being configured.

Parameters:
definition -

getNewsSet

public NewsSet getNewsSet()

setNewsSet

public void setNewsSet(NewsSet newsSet)

compareTo

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


Copyright © 2009-2011 Jasig. All Rights Reserved.