public class HibernateBlogPostDao extends ConfluenceHibernateObjectDao implements BlogPostDao
HibernateObjectDao.CacheabilityconfluenceUserDaoNON_CACHEABLE| Constructor and Description |
|---|
HibernateBlogPostDao() |
| Modifier and Type | Method and Description |
|---|---|
BlogPost |
getBlogPost(Space space,
String title,
Calendar day,
boolean eagerLoadComments)
Get the blog post by name and date.
|
BlogPost |
getBlogPost(String spaceKey,
String title,
Calendar day)
Deprecated.
|
BlogPost |
getBlogPost(String spaceKey,
String title,
Calendar day,
boolean eagerLoadComments)
Deprecated.
|
BlogPost |
getBlogPostByTitle(String spaceKey,
String title)
Get a blog post by name.
|
int |
getBlogPostCount()
Counts the total number of blog posts, for all spaces and posting dates.
|
long |
getBlogPostCount(String spaceKey,
Calendar date,
int period)
Get total number of blogPost.
|
List<Date> |
getBlogPostDates(Space space)
Returns a list of creation dates for all the blog posts in a space.
|
List<Date> |
getBlogPostDates(String spaceKey)
Deprecated.
|
List<Date> |
getBlogPostDates(String spaceKey,
Calendar date,
int period)
Returns a list of creation dates for all the blog posts in a space for a particular period.
|
List<BlogPost> |
getBlogPosts(Space space,
boolean currentOnly)
Return an iterator for the specified space.
|
List |
getBlogPosts(Space space,
Calendar date,
int period)
Get the blog posts in a space for a particular period.
|
List |
getBlogPosts(Space space,
Calendar date,
int period,
int startIndex,
int maxResultCount)
Get list of blogPost by Date.
|
List |
getBlogPosts(String spaceKey,
Calendar date,
int period)
Deprecated.
|
List |
getBlogPosts(String spaceKey,
Calendar date,
int period,
int startIndex,
int maxResultCount)
Deprecated.
|
protected BlogPost |
getByClassId(long id)
Retrieve the object with a particular id from the database.
|
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(String spaceKey,
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(String spaceKey,
Date creationDate)
Used for finding the "previous" post to an existing post
|
BlogPost |
getMostRecentBlogPost(String spaceKey) |
Class |
getPersistentClass() |
List |
getRecentlyAddedBlogPosts(int maxPosts,
Date timeSince,
String spaceKey) |
List |
getRecentlyAddedBlogPosts(int maxCount,
String spaceKey)
Get list of recently created blog posts.
|
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setConfluenceUserDao, updateModificationDatafindAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResultcheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindLatestVersionsCount, findLatestVersionsIterator, savefindAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRawpublic Class getPersistentClass()
getPersistentClass in interface ObjectDaopublic BlogPost getById(long id)
BlogPostDaogetById in interface BlogPostDaoprotected BlogPost getByClassId(long id)
HibernateObjectDaogetByClassId in class HibernateObjectDaoid - the id of the object to look uppublic BlogPost getBlogPostByTitle(String spaceKey, String title)
BlogPostDaogetBlogPostByTitle in interface BlogPostDaospaceKey - the spacetitle - the title@Deprecated @Nullable public BlogPost getBlogPost(String spaceKey, String title, Calendar day)
BlogPostDaogetBlogPost in interface BlogPostDaospaceKey - 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@Deprecated @Nullable public BlogPost getBlogPost(String spaceKey, String title, Calendar day, boolean eagerLoadComments)
BlogPostDaogetBlogPost in interface BlogPostDaospaceKey - 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@Nullable public BlogPost getBlogPost(@Nonnull Space space, @Nonnull String title, @Nonnull Calendar day, boolean eagerLoadComments)
BlogPostDaogetBlogPost in interface BlogPostDaospace - 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@Deprecated public List getBlogPosts(String spaceKey, Calendar date, int period)
BlogPostDaoTODO: add Calendar.WEEK range support.
getBlogPosts in interface BlogPostDaospaceKey - 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 supportedpublic List getBlogPosts(@Nonnull Space space, @Nonnull Calendar date, int period)
BlogPostDaoTODO: add Calendar.WEEK range support.
getBlogPosts in interface BlogPostDaospace - 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@Deprecated public List getBlogPosts(String spaceKey, Calendar date, int period, int startIndex, int maxResultCount)
BlogPostDaogetBlogPosts in interface BlogPostDaospaceKey - 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 supportedstartIndex - start number of postsmaxResultCount - Maximum number of posts to returnpublic List getBlogPosts(@Nonnull Space space, @Nonnull Calendar date, int period, int startIndex, int maxResultCount)
BlogPostDaogetBlogPosts in interface BlogPostDaospace - 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 supportedstartIndex - start number of postsmaxResultCount - Maximum number of posts to returnpublic long getBlogPostCount(String spaceKey, Calendar date, int period)
BlogPostDaogetBlogPostCount in interface BlogPostDaospaceKey - 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@Deprecated public List<Date> getBlogPostDates(String spaceKey)
BlogPostDaogetBlogPostDates in interface BlogPostDaopublic List<Date> getBlogPostDates(@Nonnull Space space)
BlogPostDaogetBlogPostDates in interface BlogPostDaopublic List<Date> getBlogPostDates(String spaceKey, Calendar date, int period)
BlogPostDaogetBlogPostDates in interface BlogPostDaospaceKey - 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 supportedpublic List<BlogPost> getBlogPosts(Space space, boolean currentOnly)
BlogPostDaogetBlogPosts in interface BlogPostDaopublic List getRecentlyAddedBlogPosts(int maxCount, @Nullable String spaceKey)
BlogPostDaogetRecentlyAddedBlogPosts in interface BlogPostDaomaxCount - Maximum number of posts to returnspaceKey - the spaceKey to look for the posts in. If this key is null, we look acrosns
all spacespublic BlogPost getFirstPostBefore(String spaceKey, Date creationDate)
BlogPostDaogetFirstPostBefore in interface BlogPostDaospaceKey - the space to look increationDate - the date the post must be beforepublic BlogPost getFirstPostAfter(String spaceKey, Date creationDate)
BlogPostDaogetFirstPostAfter in interface BlogPostDaospaceKey - the space to look increationDate - the date the post must be afterpublic BlogPost getFirstPostBefore(BlogPost post)
BlogPostDaogetFirstPostBefore in interface BlogPostDaopost - the blog post that this must preceedpublic BlogPost getFirstPostAfter(BlogPost post)
BlogPostDaogetFirstPostAfter in interface BlogPostDaopost - the blog post that this must be afterpublic List getRecentlyAddedBlogPosts(int maxPosts, Date timeSince, String spaceKey)
getRecentlyAddedBlogPosts in interface BlogPostDaopublic BlogPost getMostRecentBlogPost(String spaceKey)
getMostRecentBlogPost in interface BlogPostDaopublic int getBlogPostCount()
BlogPostDaogetBlogPostCount in interface BlogPostDaoCopyright © 2003–2016 Atlassian. All rights reserved.