|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlogEntryManager
| Method Summary | |
|---|---|
void |
createBlogPost(String email,
String title,
String blogText,
List<String> tags)
Create a blog posting. |
Entry |
findBlogEntryByTitle(String title)
Find a specific blog entry by title. |
List<? extends BlogEntry> |
getAllBlogEntries()
Retrieve all blog entries. |
List<? extends BlogEntry> |
getBlogEntries(int firstPostIndex,
int noOfPosts)
Get N posts from the database starting at post number X |
List<? extends BlogEntry> |
getBlogEntriesModifiedBetween(String startDate,
String endDate)
Retrieve all blog entries created between a specified date range. |
BlogEntry |
getBlogPost(long id)
Get the specified blog posting. |
List<? extends BlogEntry> |
getBlogsForAuthor(String emailAddress)
Retrieve all blog entries for a specific author. |
int |
getNoOfPosts()
Get the total number of blog entries in the database |
void |
removeBlogEntry(BlogAuthor author,
String title,
String publishDate)
Remove a specific blog entry. |
void |
updateBlogEntry(BlogEntry originalEntry,
BlogAuthor a,
String title,
String publishDate,
String blogText,
List<String> tags)
Update a blog entry. |
| Method Detail |
|---|
void createBlogPost(String email,
String title,
String blogText,
List<String> tags)
email - the author's emailtitle - the title of the entryblogText - the text of the entrytags - tags associated with the blog entryEntry findBlogEntryByTitle(String title)
title - the title to search for
List<? extends BlogEntry> getAllBlogEntries()
List<? extends BlogEntry> getBlogsForAuthor(String emailAddress)
emailAddress - the email address of the author in question
List<? extends BlogEntry> getBlogEntriesModifiedBetween(String startDate,
String endDate)
throws ParseException
startDate - the start dateendDate - the end date
ParseException
List<? extends BlogEntry> getBlogEntries(int firstPostIndex,
int noOfPosts)
firstPostIndex - the first post to retrievenoOfPosts - the number of posts to retrieve in total
int getNoOfPosts()
void removeBlogEntry(BlogAuthor author,
String title,
String publishDate)
throws ParseException
a - the author of the blog entrytitle - the title of the blog entrypublishDate - the publication date of the blog entry
ParseException
void updateBlogEntry(BlogEntry originalEntry,
BlogAuthor a,
String title,
String publishDate,
String blogText,
List<String> tags)
throws ParseException
originalEntry - the original blog entrya - the author of the blog entrytitle - the title of the blog entrypublishDate - the publication date of the blog entryblogText - the text content of the blog entrytags - any assocaited tags for the blog entry
ParseExceptionBlogEntry getBlogPost(long id)
id - the id of the blog posting
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||