public class PluginContentHibernateDao extends ContentEntityObjectHibernateDao implements CustomContentDao, org.springframework.beans.factory.InitializingBean
HibernateObjectDao.Cacheability
ONE_DAY
cacheFactory, confluenceUserDao
NON_CACHEABLE
Constructor and Description |
---|
PluginContentHibernateDao() |
Modifier and Type | Method and Description |
---|---|
long |
countChildrenOfType(long parentId,
String pluginModuleKey) |
Iterator<CustomContentEntityObject> |
findAll(String pluginContentKey)
Retrieves an iterator of
CustomContentEntityObject with the specified pluginContentKey |
Iterator<CustomContentEntityObject> |
findAllChildren(long parentId)
Retrieves all children of the specified content.
|
Iterator<CustomContentEntityObject> |
findAllInSpace(long spaceId) |
Iterator<CustomContentEntityObject> |
findAllInSpace(String pluginModuleKey,
long spaceId) |
Iterator<CustomContentEntityObject> |
findAllInSpaceWithAttachments(long spaceId) |
Iterator<CustomContentEntityObject> |
findAllInSpaceWithAttachments(String pluginModuleKey,
long spaceId) |
Iterator<CustomContentEntityObject> |
findAllWithAttachments(String pluginContentKey)
Retrieves an iterator of
CustomContentEntityObject with the specified pluginContentKey. |
<T> PageResponse<T> |
findByQuery(ContentQuery<T> contentQuery,
boolean cacheable,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<T> predicate) |
<T> Iterator<T> |
findByQuery(ContentQuery<T> contentQuery,
int offset,
int maxResults) |
Iterator<CustomContentEntityObject> |
findChildrenOfType(long parentId,
String pluginModuleKey,
int offset,
int maxResults,
CustomContentManager.SortField sortField,
CustomContentManager.SortOrder sortOrder) |
Iterator<CustomContentEntityObject> |
findCurrentInSpace(long spaceId,
String pluginModuleKey,
int offset,
int maxResults,
CustomContentManager.SortField sortField,
CustomContentManager.SortOrder sortOrder) |
int |
findTotalInSpace(long spaceId,
String pluginModuleKey) |
protected CustomContentEntityObject |
getByClassId(long id)
Retrieve the object with a particular id from the database.
|
CustomContentEntityObject |
getById(long id) |
Class |
getPersistentClass() |
void |
setConfluenceHibernateConfig(ConfluenceHibernateConfig confluenceHibernateConfig) |
void |
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) |
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary, getVersionsLastEditedByUser
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationData
findAll, 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, uniqueResult
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary, getVersionsLastEditedByUser
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
public CustomContentEntityObject getById(long id)
getById
in interface ContentEntityObjectDao
getById
in class ContentEntityObjectHibernateDao
protected CustomContentEntityObject getByClassId(long id)
HibernateObjectDao
getByClassId
in class ContentEntityObjectHibernateDao
id
- the id of the object to look uppublic Class getPersistentClass()
getPersistentClass
in interface ObjectDao
getPersistentClass
in class ContentEntityObjectHibernateDao
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
public void setConfluenceHibernateConfig(ConfluenceHibernateConfig confluenceHibernateConfig)
public <T> Iterator<T> findByQuery(ContentQuery<T> contentQuery, int offset, int maxResults)
findByQuery
in interface CustomContentDao
public <T> PageResponse<T> findByQuery(ContentQuery<T> contentQuery, boolean cacheable, LimitedRequest limitedRequest, com.google.common.base.Predicate<T> predicate)
findByQuery
in interface CustomContentDao
public int findTotalInSpace(long spaceId, String pluginModuleKey)
findTotalInSpace
in interface CustomContentDao
public Iterator<CustomContentEntityObject> findCurrentInSpace(long spaceId, String pluginModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
findCurrentInSpace
in interface CustomContentDao
public Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(String pluginModuleKey, long spaceId)
findAllInSpaceWithAttachments
in interface CustomContentDao
public Iterator<CustomContentEntityObject> findAllInSpace(String pluginModuleKey, long spaceId)
findAllInSpace
in interface CustomContentDao
public Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(long spaceId)
findAllInSpaceWithAttachments
in interface CustomContentDao
public Iterator<CustomContentEntityObject> findAllInSpace(long spaceId)
findAllInSpace
in interface CustomContentDao
public Iterator<CustomContentEntityObject> findAll(String pluginContentKey)
CustomContentDao
CustomContentEntityObject
with the specified pluginContentKeyfindAll
in interface CustomContentDao
pluginContentKey
- CustomContentEntityObject with this plugin content key will be returnedCustomContentEntityObject
public Iterator<CustomContentEntityObject> findAllWithAttachments(String pluginContentKey)
CustomContentDao
CustomContentEntityObject
with the specified pluginContentKey.
We are loadingfindAllWithAttachments
in interface CustomContentDao
pluginContentKey
- CustomContentEntityObject with this plugin content key will be returnedCustomContentEntityObject
public Iterator<CustomContentEntityObject> findAllChildren(long parentId)
CustomContentDao
findAllChildren
in interface CustomContentDao
parentId
- children of this content entity will be returnedCustomContentEntityObject
public Iterator<CustomContentEntityObject> findChildrenOfType(long parentId, String pluginModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
findChildrenOfType
in interface CustomContentDao
public long countChildrenOfType(long parentId, String pluginModuleKey)
countChildrenOfType
in interface CustomContentDao
Copyright © 2003–2016 Atlassian. All rights reserved.