|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao
com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateBlogPostDao
public class HibernateBlogPostDao
Hibernate implementation of the BlogPost DAO
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
cacheFactory, log |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernateBlogPostDao()
|
|
| 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.lang.Class |
getPersistentClass()
|
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 class com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao |
|---|
findByQuery |
| Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, setCacheFactory, updateModificationData |
| Methods inherited from class com.atlassian.hibernate.HibernateObjectDao |
|---|
findAll, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao |
|---|
findLatestVersionsCount, findLatestVersionsIterator, save |
| Methods inherited from interface bucket.core.persistence.ObjectDao |
|---|
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
| Constructor Detail |
|---|
public HibernateBlogPostDao()
| Method Detail |
|---|
public java.lang.Class getPersistentClass()
getPersistentClass in interface bucket.core.persistence.ObjectDaopublic BlogPost getById(long id)
BlogPostDao
getById in interface BlogPostDao
public BlogPost getBlogPostByTitle(java.lang.String spaceKey,
java.lang.String title)
BlogPostDao
getBlogPostByTitle in interface BlogPostDao
public BlogPost getBlogPost(java.lang.String spaceKey,
java.lang.String title,
java.util.Calendar day)
BlogPostDao
getBlogPost 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
public BlogPost getBlogPost(java.lang.String spaceKey,
java.lang.String title,
java.util.Calendar day,
boolean eagerLoadComments)
BlogPostDao
getBlogPost 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
public java.util.List getBlogPosts(java.lang.String spaceKey,
java.util.Calendar date,
int period)
BlogPostDao
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 supported
public java.util.List getBlogPosts(Space space,
boolean currentOnly)
BlogPostDao
getBlogPosts in interface BlogPostDao
public java.util.List getRecentlyAddedBlogPosts(int maxCount,
java.lang.String spaceKey)
BlogPostDao
getRecentlyAddedBlogPosts 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 spaces
public BlogPost getFirstPostBefore(java.lang.String spaceKey,
java.util.Date creationDate)
BlogPostDao
getFirstPostBefore in interface BlogPostDaospaceKey - the space to look increationDate - the date the post must be before
public BlogPost getFirstPostAfter(java.lang.String spaceKey,
java.util.Date creationDate)
BlogPostDao
getFirstPostAfter in interface BlogPostDaospaceKey - the space to look increationDate - the date the post must be after
public BlogPost getFirstPostBefore(BlogPost post)
BlogPostDao
getFirstPostBefore in interface BlogPostDaopost - the blog post that this must preceed
public BlogPost getFirstPostAfter(BlogPost post)
BlogPostDao
getFirstPostAfter in interface BlogPostDaopost - the blog post that this must be after
public java.util.List getRecentlyAddedBlogPosts(int maxPosts,
java.util.Date timeSince,
java.lang.String spaceKey)
getRecentlyAddedBlogPosts in interface BlogPostDaopublic BlogPost getMostRecentBlogPost(java.lang.String spaceKey)
getMostRecentBlogPost in interface BlogPostDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||