Interface ContentEntityObjectDaoInternal
- Type Parameters:
T
- The type of ContentEntityObject this Dao works with.
- All Superinterfaces:
ContentEntityObjectDao
- All Known Implementing Classes:
ContentEntityObjectHibernateDao
A Dao for ContentEntityObjects.
- Since:
- 6.10.0
-
Method Summary
Modifier and TypeMethodDescriptionfindByClassIds
(Set<Long> ids, LimitedRequest limitedRequest) default PageResponse<SpaceContentEntityObject>
findContentBySpaceIdAndStatusAndFilter
(long spaceId, String status, LimitedRequest limitedRequest, Predicate<? super SpaceContentEntityObject> predicate) Retrieve content for a given space with a particular status.getTrashedEntities
(long contentIdOffset, int limit) Retrieve a batch of trashed content entitiesvoid
refresh
(ContentEntityObject contentEntityObject) void
remove
(ContentEntityObject contentEntityObject) void
saveRaw
(ContentEntityObject contentEntityObject) saves the object.void
saveRawWithoutReindex
(com.atlassian.core.bean.EntityObject objectToSave) This is for internal use only, Do not rely on it as a public API.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, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getTrashedContents, getTrashedContents, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew, save, save
-
Method Details
-
findContentBySpaceIdAndStatusAndFilter
@Transactional(readOnly=true) default PageResponse<SpaceContentEntityObject> findContentBySpaceIdAndStatusAndFilter(long spaceId, String status, LimitedRequest limitedRequest, Predicate<? super SpaceContentEntityObject> predicate) Retrieve content for a given space with a particular status. Results will be sorted by descending date of last modification.- Parameters:
spaceId
- the id of the spacestatus
- the status of the content being retrieved (e.g.ContentEntityObject.DELETED
limitedRequest
- - the start and offset of the pages to retrievepredicate
- - a predicate to filter the returned results by- Returns:
- a PageResponse of ContentEntityObjects in the space with the given status
- Since:
- 7.0.1
-
getTrashedEntities
@Transactional(readOnly=true) List<SpaceContentEntityObject> getTrashedEntities(long contentIdOffset, int limit) Retrieve a batch of trashed content entities- Parameters:
contentIdOffset
- ids of returned entities must be greater than or equal to this valuelimit
- maximum number of entities to return- Since:
- 7.14.0
-
saveRawWithoutReindex
void saveRawWithoutReindex(com.atlassian.core.bean.EntityObject objectToSave) This 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.
-
findByClassIds
-
remove
-
refresh
-
saveRaw
saves the object. if the object is new, this won't set the creation date on the object. if it already exists, then it won't set the date that it was updated.
-