public class PluginContentHibernateDao extends ContentEntityObjectHibernateDao implements CustomContentDao, org.springframework.beans.factory.InitializingBean
HibernateObjectDao.CacheabilityONE_DAYconfluenceUserDaoNON_CACHEABLE| Constructor and Description |
|---|
PluginContentHibernateDao() |
| Modifier and Type | Method and Description |
|---|---|
long |
countChildrenOfType(long parentId,
String pluginModuleKey) |
Map<String,Integer> |
countContained(long containerContentId)
Count contained custom content for each content type
|
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) |
PageResponse<CustomContentEntityObject> |
findAllInContainerWithTitle(String pluginModuleKey,
long contentId,
String title,
List<ContentStatus> status,
LimitedRequest request,
com.google.common.base.Predicate<? super CustomContentEntityObject> predicate) |
Iterator<CustomContentEntityObject> |
findAllInSpace(long spaceId) |
Iterator<CustomContentEntityObject> |
findAllInSpace(String pluginModuleKey,
long spaceId) |
Iterator<CustomContentEntityObject> |
findAllInSpaceWithAttachments(long spaceId) |
Iterator<CustomContentEntityObject> |
findAllInSpaceWithAttachments(String pluginModuleKey,
long spaceId) |
PageResponse<CustomContentEntityObject> |
findAllInSpaceWithTitle(String pluginModuleKey,
long spaceId,
String title,
List<ContentStatus> status,
LimitedRequest request,
com.google.common.base.Predicate<? super CustomContentEntityObject> predicate) |
Iterator<CustomContentEntityObject> |
findAllWithAttachments(String pluginContentKey)
Retrieves an iterator of
CustomContentEntityObject with the specified pluginContentKey. |
PageResponse<CustomContentEntityObject> |
findAllWithTitle(String pluginModuleKey,
String title,
List<ContentStatus> status,
LimitedRequest request,
com.google.common.base.Predicate predicate) |
<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) |
List<CustomContentEntityObject> |
getFirstContained(long containerContentId)
Get first contained custom content for each content type
|
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, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUserfindAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, save, setConfluenceUserDao, updateModificationDatafindAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResultcheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUserfindLatestVersionsCount, findLatestVersionsIterator, savefindAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRawpublic CustomContentEntityObject getById(long id)
getById in interface ContentEntityObjectDaogetById in class ContentEntityObjectHibernateDaoprotected CustomContentEntityObject getByClassId(long id)
HibernateObjectDaogetByClassId in class ContentEntityObjectHibernateDaoid - the id of the object to look uppublic Class getPersistentClass()
getPersistentClass in interface ObjectDaogetPersistentClass in class ContentEntityObjectHibernateDaopublic 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 CustomContentDaopublic <T> PageResponse<T> findByQuery(ContentQuery<T> contentQuery, boolean cacheable, LimitedRequest limitedRequest, com.google.common.base.Predicate<T> 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 PageResponse<CustomContentEntityObject> findAllInSpaceWithTitle(String pluginModuleKey, long spaceId, String title, List<ContentStatus> status, LimitedRequest request, com.google.common.base.Predicate<? super CustomContentEntityObject> predicate)
findAllInSpaceWithTitle in interface CustomContentDaopublic PageResponse<CustomContentEntityObject> findAllInContainerWithTitle(String pluginModuleKey, long contentId, String title, List<ContentStatus> status, LimitedRequest request, com.google.common.base.Predicate<? super CustomContentEntityObject> predicate)
findAllInContainerWithTitle in interface CustomContentDaopublic PageResponse<CustomContentEntityObject> findAllWithTitle(String pluginModuleKey, String title, List<ContentStatus> status, LimitedRequest request, com.google.common.base.Predicate predicate)
findAllWithTitle 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 List<CustomContentEntityObject> getFirstContained(long containerContentId)
CustomContentDaogetFirstContained in interface CustomContentDaocontainerContentId - Id of the containerpublic Map<String,Integer> countContained(long containerContentId)
CustomContentDaocountContained in interface CustomContentDaocontainerContentId - Id of the containerpublic 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–2016 Atlassian. All rights reserved.