public class PluginContentHibernateDao extends AbstractContentEntityObjectHibernateDao<CustomContentEntityObject> implements CustomContentDao, org.springframework.beans.factory.InitializingBean
HibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
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> |
findAllContainedOfType(long containerContentId,
String pluginContentKey) |
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)
Deprecated.
|
<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) |
Class<CustomContentEntityObject> |
getPersistentClass()
Gets the type of
EntityObject this Dao works with. |
void |
setConfluenceHibernateConfig(ConfluenceHibernateConfig confluenceHibernateConfig) |
void |
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) |
countContentBySpaceIdAndStatus, findAllDraftsFor, findAllLegacyDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getByClassId, getById, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getTrashedContents, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationData
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findByQueryAndFilter
countContentBySpaceIdAndStatus, findAllDraftsFor, findAllLegacyDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getById, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getTrashedContents, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
afterPropertiesSet
findContentBySpaceIdAndStatusAndFilter
saveEntity
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public Class<CustomContentEntityObject> getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal<CustomContentEntityObject>
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
@Deprecated public <T> PageResponse<T> findByQuery(ContentQuery<T> contentQuery, boolean cacheable, LimitedRequest limitedRequest, com.google.common.base.Predicate<T> predicate)
CustomContentDao.findByQueryAndFilter(ContentQuery, boolean, LimitedRequest, java.util.function.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
public Iterator<CustomContentEntityObject> findAllContainedOfType(long containerContentId, String pluginContentKey)
findAllContainedOfType
in interface CustomContentDao
Copyright © 2003–2020 Atlassian. All rights reserved.