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. |
void |
setConfluenceHibernateConfig(ConfluenceHibernateConfig confluenceHibernateConfig) |
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, 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, 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)
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 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 CustomContentDaoCopyright © 2003–2021 Atlassian. All rights reserved.