public class PluginContentHibernateDao extends AbstractContentEntityObjectHibernateDao<CustomContentEntityObject> implements CustomContentDao, org.springframework.beans.factory.InitializingBean
HibernateObjectDao.CacheabilitycacheFactory, 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. |
<T,R> R |
query(ContentQuery<T> contentQuery,
int offset,
int maxResults,
Function<org.hibernate.query.Query<T>,R> f) |
<T> List<T> |
queryForList(ContentQuery<T> contentQuery)
It is strongly recommended that the
CustomContentDao.queryForList(ContentQuery, int, int) method be used
in preference to this one, as this method does not apply pagination limits to the result set. |
<T> List<T> |
queryForList(ContentQuery<T> contentQuery,
int offset,
int maxResults) |
void |
saveRawWithoutReindex(com.atlassian.core.bean.EntityObject objectToSave)
This is for internal use only, Do not rely on it as a public API.
|
void |
setConfluenceHibernateConfig(ConfluenceHibernateConfig confluenceHibernateConfig)
Deprecated.
since 7.20
|
void |
setDatabaseCapabilities(HibernateDatabaseCapabilities databaseCapabilities) |
void |
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) |
countContentBySpaceIdAndStatus, findAllDraftsFor, findAllLegacyDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findDraftsWithUnpublishedChangesForUser, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getAllModifiers, getByClassId, getById, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getTrashedContents, getTrashedEntities, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNewfindAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationDataapplyTransactionTimeout, 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, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindByQueryAndFiltercountContentBySpaceIdAndStatus, findAllDraftsFor, findAllLegacyDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findDraftsWithUnpublishedChangesForUser, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getAllModifiers, getAllModifiers, getById, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getTrashedContents, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNewfindLatestVersionsCount, findLatestVersionsIterator, savefindAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRawafterPropertiesSetfindContentBySpaceIdAndStatusAndFiltersaveEntityfindAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntitypublic Class<CustomContentEntityObject> getPersistentClass()
ObjectDaoInternalEntityObject this Dao works with.getPersistentClass in interface ObjectDaogetPersistentClass in interface ObjectDaoInternal<CustomContentEntityObject>public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
@Deprecated public void setConfluenceHibernateConfig(ConfluenceHibernateConfig confluenceHibernateConfig)
public void setDatabaseCapabilities(HibernateDatabaseCapabilities databaseCapabilities)
public <T> Iterator<T> findByQuery(ContentQuery<T> contentQuery, int offset, int maxResults)
findByQuery in interface CustomContentDaopublic <T> List<T> queryForList(ContentQuery<T> contentQuery, int offset, int maxResults)
queryForList in interface CustomContentDaopublic <T,R> R query(ContentQuery<T> contentQuery, int offset, int maxResults, Function<org.hibernate.query.Query<T>,R> f)
public <T> List<T> queryForList(ContentQuery<T> contentQuery)
CustomContentDaoCustomContentDao.queryForList(ContentQuery, int, int) method be used
in preference to this one, as this method does not apply pagination limits to the result set. This can
result in excessive memory pressure. This method should only be used when the query is self-limiting,
or when the size of the result set is otherwise known in advance.queryForList 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 CustomContentDaopublic int findTotalInSpace(long spaceId,
String pluginModuleKey)
findTotalInSpace in interface CustomContentDaopublic Iterator<CustomContentEntityObject> findCurrentInSpace(long spaceId, String pluginModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
findCurrentInSpace in interface CustomContentDaopublic Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(String pluginModuleKey, long spaceId)
findAllInSpaceWithAttachments in interface CustomContentDaopublic Iterator<CustomContentEntityObject> findAllInSpace(String pluginModuleKey, long spaceId)
findAllInSpace in interface CustomContentDaopublic Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(long spaceId)
findAllInSpaceWithAttachments in interface CustomContentDaopublic Iterator<CustomContentEntityObject> findAllInSpace(long spaceId)
findAllInSpace in interface CustomContentDaopublic Iterator<CustomContentEntityObject> findAll(String pluginContentKey)
CustomContentDaoCustomContentEntityObject with the specified pluginContentKeyfindAll in interface CustomContentDaopluginContentKey - CustomContentEntityObject with this plugin content key will be returnedCustomContentEntityObjectpublic Iterator<CustomContentEntityObject> findAllWithAttachments(String pluginContentKey)
CustomContentDaoCustomContentEntityObject with the specified pluginContentKey.
We are loadingfindAllWithAttachments in interface CustomContentDaopluginContentKey - CustomContentEntityObject with this plugin content key will be returnedCustomContentEntityObjectpublic Iterator<CustomContentEntityObject> findAllChildren(long parentId)
CustomContentDaofindAllChildren in interface CustomContentDaoparentId - children of this content entity will be returnedCustomContentEntityObjectpublic Iterator<CustomContentEntityObject> findChildrenOfType(long parentId, String pluginModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
findChildrenOfType in interface CustomContentDaopublic long countChildrenOfType(long parentId,
String pluginModuleKey)
countChildrenOfType in interface CustomContentDaopublic Iterator<CustomContentEntityObject> findAllContainedOfType(long containerContentId, String pluginContentKey)
findAllContainedOfType in interface CustomContentDaopublic void saveRawWithoutReindex(com.atlassian.core.bean.EntityObject objectToSave)
ContentEntityObjectDaoInternalThis is for internal use only, Do not rely on it as a public API.
Perform a saveRaw but without performing the re-index; it is unnecessary in the context of a migration or upgrade.
saveRawWithoutReindex in interface ContentEntityObjectDaoInternal<CustomContentEntityObject>Copyright © 2003–2022 Atlassian. All rights reserved.