|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.domain.BlogService
public class BlogService
Service that encompasses all functionality related to getting, putting and removing blog entries and static pages.
| Constructor Summary | |
|---|---|
BlogService()
|
|
| Method Summary | |
|---|---|
java.util.List<BlogEntry> |
getBlogEntries(Blog blog)
Gets all blog entries for the specified blog. |
java.util.List<BlogEntry> |
getBlogEntries(Blog blog,
int year,
int month)
|
java.util.List<BlogEntry> |
getBlogEntries(Blog blog,
int year,
int month,
int day)
|
BlogEntry |
getBlogEntry(Blog blog,
java.lang.String blogEntryId)
Gets the blog entry with the specified id. |
Response |
getResponse(Blog blog,
java.lang.String responseId)
Gets the blog entry with the specified id. |
StaticPage |
getStaticPageById(Blog blog,
java.lang.String pageId)
Gets the page with the specified id. |
StaticPage |
getStaticPageByName(Blog blog,
java.lang.String name)
Gets the static page with the specified name. |
java.util.List<StaticPage> |
getStaticPages(Blog blog)
Gets the list of static pages for the given blog. |
void |
putBlogEntry(BlogEntry blogEntry)
Puts the blog entry with the specified id. |
void |
putStaticPage(StaticPage staticPage)
Puts the static page. |
void |
removeBlogEntry(BlogEntry blogEntry)
Removes this blog entry. |
void |
removeStaticPage(StaticPage staticPage)
Removes a static page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlogService()
| Method Detail |
|---|
public BlogEntry getBlogEntry(Blog blog,
java.lang.String blogEntryId)
throws BlogServiceException
blogEntryId - the id of the blog entry
BlogServiceException
public java.util.List<BlogEntry> getBlogEntries(Blog blog,
int year,
int month,
int day)
throws BlogServiceException
BlogServiceException
public java.util.List<BlogEntry> getBlogEntries(Blog blog,
int year,
int month)
throws BlogServiceException
BlogServiceException
public java.util.List<BlogEntry> getBlogEntries(Blog blog)
throws BlogServiceException
BlogServiceException
public void putBlogEntry(BlogEntry blogEntry)
throws BlogServiceException
BlogServiceException
public void removeBlogEntry(BlogEntry blogEntry)
throws BlogServiceException
BlogServiceException
public Response getResponse(Blog blog,
java.lang.String responseId)
throws BlogServiceException
responseId - the id of the response
BlogServiceException
public java.util.List<StaticPage> getStaticPages(Blog blog)
throws BlogServiceException
blog - the Blog
BlogServiceException
public StaticPage getStaticPageById(Blog blog,
java.lang.String pageId)
throws BlogServiceException
pageId - the id of the blog entryblog - the Blog
BlogServiceException
public StaticPage getStaticPageByName(Blog blog,
java.lang.String name)
throws BlogServiceException
name - the name of the static pageblog - the Blog
BlogServiceException
public void putStaticPage(StaticPage staticPage)
throws BlogServiceException
BlogServiceException
public void removeStaticPage(StaticPage staticPage)
throws BlogServiceException
BlogServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||