|
geekblog 0.0.1-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static java.lang.String |
KEY
Key to use when storing the DataManager in the ServletContext. |
Method Summary | |
void |
destroy(javax.servlet.ServletContext context)
Tear everything down |
java.util.Collection |
findEntries(java.lang.String text)
Find all entries containing some text expression |
java.util.Collection |
getAllEntries()
Retrieve every single last one. |
java.util.Collection |
getArticleEntries()
Retrieve a list of all the entries marked as articles. |
int |
getCommentCountForEntry(long entryID)
Retrieve the list of comments for a given entry. |
java.util.Collection |
getCommentsForEntry(long entryID)
Retrieve the list of comments for a given entry. |
java.util.Collection |
getEntriesForDate(java.util.Date date)
Retrieve a list of entries for a given date. |
java.util.Collection |
getEntriesForMonth(java.util.Date date)
Retrieve a list of entries for a given month/year. |
BlogEntry |
getEntry(long entryID)
Retrieve an entry by ID. |
int |
getEntryCountForDate(java.util.Date date)
Retrieve a count of the entries for a given date. |
int |
getEntryCountForMonth(java.util.Date date)
Retrieve a count of the entries for a given month. |
java.util.Collection |
getLastNEntries(int n)
Retrieve the last "n" entries. |
void |
init(javax.servlet.ServletContext context)
Set everything up |
void |
markAsArticle(BlogEntry entry)
Mark an entry as an article. |
void |
postComment(long entryID,
BlogComment comment)
Post a comment to an entry. |
void |
postEntry(BlogEntry entry)
Post an entry (either new or edited). |
void |
removeEntry(long entryID)
Remove an entry. |
Field Detail |
public static final java.lang.String KEY
Method Detail |
public void init(javax.servlet.ServletContext context)
public void destroy(javax.servlet.ServletContext context)
public BlogEntry getEntry(long entryID)
public java.util.Collection getAllEntries()
public java.util.Collection getLastNEntries(int n)
public java.util.Collection getEntriesForDate(java.util.Date date)
date
- Day/month/year tuple to find entries for.
Ignores hour, minutes, seconds.public java.util.Collection getEntriesForMonth(java.util.Date date)
date
- Month/year tuple to find entries for.
Ignores day, hour, minutes, seconds.public int getEntryCountForDate(java.util.Date date)
date
- Day/month/year to find count of entries for.
Ignores hour, minutes, seconds.public int getEntryCountForMonth(java.util.Date date)
date
- Month and year to find count of entries for.
Ignores day, hour, minutes, seconds.public void markAsArticle(BlogEntry entry)
public java.util.Collection getArticleEntries()
public java.util.Collection findEntries(java.lang.String text)
public void postEntry(BlogEntry entry)
entry
- The BlogEntry to mark as an article.public void removeEntry(long entryID)
entryID
- The ID of the entry to remove.public int getCommentCountForEntry(long entryID)
public java.util.Collection getCommentsForEntry(long entryID)
public void postComment(long entryID, BlogComment comment)
|
geekblog 0.0.1-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |