|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.showcase.jsf.data.ArticleRegistry
Registers and manages articles
| Method Summary | |
boolean |
addArticle(Article article)
Adds an article to the article list. |
boolean |
addComment(Article article,
java.lang.String comment)
Adds a comment to an article. |
Article |
getArticle(java.lang.String name,
java.lang.String category)
|
java.util.List |
getArticles()
|
static ArticleRegistry |
getInstance()
|
boolean |
removeArticle(Article article)
Removes an article from the article list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ArticleRegistry getInstance()
public boolean addArticle(Article article)
article - the article to savepublic java.util.List getArticles()
public Article getArticle(java.lang.String name,
java.lang.String category)
name - category -
public boolean removeArticle(Article article)
article - the article to remove
public boolean addComment(Article article,
java.lang.String comment)
article - the article to save
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||