|
||||||||||
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. |
long |
getBlogPostCount(java.lang.String spaceKey,
java.util.Calendar postingDate,
int period)
Get total number of blogPost. |
java.util.List<java.util.Date> |
getBlogPostDates(java.lang.String spaceKey)
Returns a list of creation dates for all the blog posts in a space. |
java.util.List<java.util.Date> |
getBlogPostDates(java.lang.String spaceKey,
java.util.Calendar date,
int period)
Returns a list of creation dates for all the blog posts in a space for a particular period. |
java.util.List<BlogPost> |
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. |
java.util.List |
getBlogPosts(java.lang.String spaceKey,
java.util.Calendar postingDate,
int period,
int startIndex,
int maxResultCount)
Get list of blogPost by Date. |
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, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
BlogPost getById(long id)
BlogPost getBlogPostByTitle(java.lang.String spaceKey, java.lang.String title)
spaceKey
- the spacetitle
- the 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 ignoredBlogPost 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 ignoredjava.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<BlogPost> getBlogPosts(Space space, boolean currentOnly)
java.util.List<java.util.Date> getBlogPostDates(java.lang.String spaceKey)
java.util.List<java.util.Date> getBlogPostDates(java.lang.String spaceKey, java.util.Calendar date, int period)
spaceKey
- the space to look for posts in.date
- 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.YEAR, Calendar.MONTH and Calendar.DATE are supported
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)
java.util.List getBlogPosts(java.lang.String spaceKey, java.util.Calendar postingDate, int period, int startIndex, int maxResultCount)
spaceKey
- the space to look for posts inpostingDate
- 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 supportedstartIndex
- start number of postsmaxResultCount
- Maximum number of posts to return
long getBlogPostCount(java.lang.String spaceKey, java.util.Calendar postingDate, int period)
spaceKey
- the space to look for posts inpostingDate
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |