|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.newsreader.NewsDefinition
public class NewsDefinition
NewsDefinition represents the base class for news registrations. Information required to retrieve the news, such as the news's URL or important default system-wide configuration information may be stored in the parameters map. In order to add this news for a specific user, a NewsConfiguration referencing this news definition must be created.
| Constructor Summary | |
|---|---|
NewsDefinition()
Default constructor. |
|
NewsDefinition(Long id,
String className,
String name)
|
|
| Method Summary | |
|---|---|
void |
addParameter(String name,
String value)
Add an individual news parameter. |
int |
compareTo(NewsDefinition def)
|
String |
getClassName()
Returns the name of the adapter class for this news which will determine how the news is retrieved. |
Long |
getId()
Return the unique id of this news. |
String |
getName()
Return the display name for this news. |
Map<String,String> |
getParameters()
Return the map of news parameters. |
void |
setClassName(String className)
Set the name of the adapter class for this news which will determine how the news is retrieved. |
void |
setId(Long id)
Set the unique id for this news. |
void |
setName(String name)
Set the display name for this news. |
void |
setParameters(Map<String,String> parameters)
Set the map of news parameters. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NewsDefinition()
public NewsDefinition(Long id,
String className,
String name)
| Method Detail |
|---|
public Long getId()
public void setId(Long id)
id - public String getClassName()
public void setClassName(String className)
className - public String getName()
public void setName(String name)
name - public Map<String,String> getParameters()
public void setParameters(Map<String,String> parameters)
parameters - parameter map
public void addParameter(String name,
String value)
name - parameter name (key)value - value to be storedpublic String toString()
toString in class Objectpublic int compareTo(NewsDefinition def)
compareTo in interface Comparable<NewsDefinition>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||