public class NewsDefinition extends Object implements Comparable<NewsDefinition>
| Constructor and Description |
|---|
NewsDefinition()
Default constructor.
|
NewsDefinition(Long id,
String className,
String name) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isPredefined() |
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() |
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 boolean isPredefined()
public Map<String,String> getParameters()
public void setParameters(Map<String,String> parameters)
parameters - parameter mappublic void addParameter(String name, String value)
name - parameter name (key)value - value to be storedpublic int compareTo(NewsDefinition def)
compareTo in interface Comparable<NewsDefinition>Copyright © 2009-2016 Apereo. All Rights Reserved.