Interface CustomContentDao
-
- All Superinterfaces:
ContentEntityObjectDao<CustomContentEntityObject>
,ObjectDao
,VersionedObjectDao<CustomContentEntityObject>
- All Known Implementing Classes:
PluginContentHibernateDao
public interface CustomContentDao extends ContentEntityObjectDao<CustomContentEntityObject>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description long
countChildrenOfType(long id, String contentModuleKey)
Iterator<CustomContentEntityObject>
findAll(String pluginContentKey)
Retrieves an iterator ofCustomContentEntityObject
with the specified pluginContentKeyIterator<CustomContentEntityObject>
findAllChildren(long id)
Retrieves all children of the specified content.Iterator<CustomContentEntityObject>
findAllContainedOfType(long containerContentId, String pluginContentKey)
Iterator<CustomContentEntityObject>
findAllInSpace(long spaceId)
Iterator<CustomContentEntityObject>
findAllInSpace(String pluginContentKey, long spaceId)
Iterator<CustomContentEntityObject>
findAllInSpaceWithAttachments(long spaceId)
Iterator<CustomContentEntityObject>
findAllInSpaceWithAttachments(String pluginContentKey, long spaceId)
Iterator<CustomContentEntityObject>
findAllWithAttachments(String pluginContentKey)
Retrieves an iterator ofCustomContentEntityObject
with the specified pluginContentKey.<T> PageResponse<T>
findByQuery(ContentQuery<T> query, boolean cacheable, LimitedRequest request, com.google.common.base.Predicate<T> predicate)
Deprecated.since 7.0.1.<T> Iterator<T>
findByQuery(ContentQuery<T> query, int offset, int maxResults)
default <T> PageResponse<T>
findByQueryAndFilter(ContentQuery<T> query, boolean cacheable, LimitedRequest request, Predicate<T> predicate)
Iterator<CustomContentEntityObject>
findChildrenOfType(long id, String pluginContentKey, 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)
<T> List<T>
queryForList(ContentQuery<T> query)
It is strongly recommended that thequeryForList(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> query, int offset, int maxResults)
-
Methods inherited from interface com.atlassian.confluence.core.persistence.ContentEntityObjectDao
countContentBySpaceIdAndStatus, 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, getTrashedContents, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew
-
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao
findLatestVersionsCount, findLatestVersionsIterator, save
-
-
-
-
Method Detail
-
findByQuery
<T> Iterator<T> findByQuery(ContentQuery<T> query, int offset, int maxResults)
-
queryForList
<T> List<T> queryForList(ContentQuery<T> query, int offset, int maxResults)
- Since:
- 7.14
-
queryForList
<T> List<T> queryForList(ContentQuery<T> query)
It is strongly recommended that thequeryForList(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.- Since:
- 7.16
-
findByQuery
@Deprecated <T> PageResponse<T> findByQuery(ContentQuery<T> query, boolean cacheable, LimitedRequest request, com.google.common.base.Predicate<T> predicate)
Deprecated.
-
findByQueryAndFilter
default <T> PageResponse<T> findByQueryAndFilter(ContentQuery<T> query, boolean cacheable, LimitedRequest request, Predicate<T> predicate)
- Since:
- 7.0.1
-
findTotalInSpace
int findTotalInSpace(long spaceId, String pluginModuleKey)
-
findCurrentInSpace
Iterator<CustomContentEntityObject> findCurrentInSpace(long spaceId, String pluginModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
-
findAllInSpaceWithAttachments
Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(String pluginContentKey, long spaceId)
-
findAllInSpace
Iterator<CustomContentEntityObject> findAllInSpace(String pluginContentKey, long spaceId)
-
findAllInSpaceWithAttachments
Iterator<CustomContentEntityObject> findAllInSpaceWithAttachments(long spaceId)
-
findAllInSpace
Iterator<CustomContentEntityObject> findAllInSpace(long spaceId)
-
findAll
Iterator<CustomContentEntityObject> findAll(String pluginContentKey)
Retrieves an iterator ofCustomContentEntityObject
with the specified pluginContentKey- Parameters:
pluginContentKey
- CustomContentEntityObject with this plugin content key will be returned- Returns:
- iterator of
CustomContentEntityObject
-
findAllWithAttachments
Iterator<CustomContentEntityObject> findAllWithAttachments(String pluginContentKey)
Retrieves an iterator ofCustomContentEntityObject
with the specified pluginContentKey. We are loading- Parameters:
pluginContentKey
- CustomContentEntityObject with this plugin content key will be returned- Returns:
- iterator of
CustomContentEntityObject
-
findAllChildren
Iterator<CustomContentEntityObject> findAllChildren(long id)
Retrieves all children of the specified content.- Parameters:
id
- children of this content entity will be returned- Returns:
- iterator of
CustomContentEntityObject
-
findChildrenOfType
Iterator<CustomContentEntityObject> findChildrenOfType(long id, String pluginContentKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
-
countChildrenOfType
long countChildrenOfType(long id, String contentModuleKey)
-
findAllContainedOfType
Iterator<CustomContentEntityObject> findAllContainedOfType(long containerContentId, String pluginContentKey)
-
-