|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlogPostDao
| Method Summary | |
|---|---|
BlogPost |
getBlogPost(java.lang.String spaceKey,
java.lang.String title,
java.util.Calendar day)
Get the blog post by name and date. |
BlogPost |
getBlogPost(java.lang.String spaceKey,
java.lang.String title,
java.util.Calendar day,
boolean eagerLoadComments)
Get the blog post by name and date. |
BlogPost |
getBlogPostByTitle(java.lang.String spaceKey,
java.lang.String title)
Get a blog post by name. |
java.util.List |
getBlogPosts(Space space,
boolean currentOnly)
Return an iterator for the specified space. |
java.util.List |
getBlogPosts(java.lang.String spaceKey,
java.util.Calendar date,
int period)
Get the blog posts in a space for a particular period. |
BlogPost |
getById(long id)
Get a blog post by id. |
BlogPost |
getFirstPostAfter(BlogPost post)
Used for finding the "previous" post to an existing post. |
BlogPost |
getFirstPostAfter(java.lang.String spaceKey,
java.util.Date creationDate)
Used for finding the "previous" post to an existing post |
BlogPost |
getFirstPostBefore(BlogPost post)
Used for finding the "previous" post to an existing post. |
BlogPost |
getFirstPostBefore(java.lang.String spaceKey,
java.util.Date creationDate)
Used for finding the "previous" post to an existing post |
BlogPost |
getMostRecentBlogPost(java.lang.String spaceKey)
|
java.util.List |
getRecentlyAddedBlogPosts(int maxPosts,
java.util.Date timeSince,
java.lang.String spaceKey)
|
java.util.List |
getRecentlyAddedBlogPosts(int maxCount,
java.lang.String spaceKey)
Get list of recently created blog posts. |
| Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao |
|---|
findLatestVersionsCount, findLatestVersionsIterator, save |
| Methods inherited from interface bucket.core.persistence.ObjectDao |
|---|
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
| Method Detail |
|---|
BlogPost getById(long id)
BlogPost getBlogPostByTitle(java.lang.String spaceKey,
java.lang.String title)
spaceKey - title -
BlogPost getBlogPost(java.lang.String spaceKey,
java.lang.String title,
java.util.Calendar day)
spaceKey - the space to look for the post intitle - the title of the post we are looking forday - the DAY the post was created on. Any part of the calendar more specific than
a day will be ignored
BlogPost getBlogPost(java.lang.String spaceKey,
java.lang.String title,
java.util.Calendar day,
boolean eagerLoadComments)
spaceKey - the space to look for the post intitle - the title of the post we are looking forday - the DAY the post was created on. Any part of the calendar more specific than
a day will be ignored
java.util.List getBlogPosts(java.lang.String spaceKey,
java.util.Calendar date,
int period)
spaceKey - the space to look for posts indate - a calendar object representing the date range we are looking for. Any part of
the calendar more specific than the supplied period will be ignored.period - one of the Calendar constants specifying the granularity of the search.
currently, only Calendar.MONTH and Calendar.DATE are supported
java.util.List getBlogPosts(Space space,
boolean currentOnly)
space -
java.util.List getRecentlyAddedBlogPosts(int maxCount,
java.lang.String spaceKey)
maxCount - Maximum number of posts to returnspaceKey - the spaceKey to look for the posts in. If this key is null, we look acrosns
all spaces
BlogPost getFirstPostBefore(java.lang.String spaceKey,
java.util.Date creationDate)
spaceKey - the space to look increationDate - the date the post must be before
BlogPost getFirstPostAfter(java.lang.String spaceKey,
java.util.Date creationDate)
spaceKey - the space to look increationDate - the date the post must be after
BlogPost getFirstPostBefore(BlogPost post)
post - the blog post that this must preceed
BlogPost getFirstPostAfter(BlogPost post)
post - the blog post that this must be after
java.util.List getRecentlyAddedBlogPosts(int maxPosts,
java.util.Date timeSince,
java.lang.String spaceKey)
BlogPost getMostRecentBlogPost(java.lang.String spaceKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||