|
||||||||||
| 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(java.lang.Long id,
java.lang.String className,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addParameter(java.lang.String name,
java.lang.String value)
Add an individual news parameter. |
int |
compareTo(NewsDefinition def)
|
java.lang.String |
getClassName()
Returns the name of the adapter class for this news which will determine how the news is retrieved. |
java.lang.Long |
getId()
Return the unique id of this news. |
java.lang.String |
getName()
Return the display name for this news. |
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Return the map of news parameters. |
void |
setClassName(java.lang.String className)
Set the name of the adapter class for this news which will determine how the news is retrieved. |
void |
setId(java.lang.Long id)
Set the unique id for this news. |
void |
setName(java.lang.String name)
Set the display name for this news. |
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Set the map of news parameters. |
java.lang.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(java.lang.Long id,
java.lang.String className,
java.lang.String name)
| Method Detail |
|---|
public java.lang.Long getId()
public void setId(java.lang.Long id)
id - public java.lang.String getClassName()
public void setClassName(java.lang.String className)
className - public java.lang.String getName()
public void setName(java.lang.String name)
name - public java.util.Map<java.lang.String,java.lang.String> getParameters()
public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - parameter map
public void addParameter(java.lang.String name,
java.lang.String value)
name - parameter name (key)value - value to be storedpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(NewsDefinition def)
compareTo in interface java.lang.Comparable<NewsDefinition>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||