Package com.atlassian.confluence.dmz
Interface ContentEntityManagerInternal
- All Superinterfaces:
ContentDraftManagerInternal
,ContentEntityManager
- All Known Implementing Classes:
DefaultCommentManager
,DefaultContentEntityManager
,DefaultCustomContentManager
,DefaultPageManager
@ParametersAreNonnullByDefault
public interface ContentEntityManagerInternal
extends ContentEntityManager, ContentDraftManagerInternal
DMZ version of the
ContentEntityManager
interface; see the package-info.java for rationale.- Since:
- 9.0
-
Field Summary
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager
ITERATE_ALL
-
Method Summary
Modifier and TypeMethodDescriptionint
countContentBySpaceIdAndStatus
(long spaceId, String status) Retrieve the count of specific content type for a given space with a particular status.@Nullable ContentEntityObject
@Nullable ContentEntityObject
@NonNull PageResponse<ContentEntityObject>
getByIdsAndFilters
(List<ContentId> contentIds, LimitedRequest limitedRequest, Predicate<? super ContentEntityObject> filter) Deprecated.@NonNull PageResponse<VersionHistorySummary>
getVersionHistorySummaries
(ContentId contentId, LimitedRequest limitedRequest) Get a VersionHistorySummary for all previous versions of a ContentEntityObject, list is ordered by Version number descending.Methods inherited from interface com.atlassian.confluence.dmz.ContentDraftManagerInternal
createDraft, findAllDraftsFor, findAllDraftsWithUnpublishedChangesForUser, findDraftFor, findDraftFor, findUnpublishedContentWithUserContributions
Methods inherited from interface com.atlassian.confluence.core.ContentEntityManager
getById, getContributionStatusByUser, getNextVersion, getOtherVersion, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getVersionHistorySummaries, getVersionsLastEditedByUser, refreshContentEntity, removeContentEntity, removeHistoricalVersion, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, saveNewVersion, saveNewVersion
-
Method Details
-
getById
- Returns:
- the ContentEntityObject with the corresponding id or null if the object with that id does not exist
- Throws:
UnsupportedOperationException
- if the ContentId does not map to a ContentEntityObject
-
getById
- Parameters:
id
- the id of the last version CEO. Previous version ids will make this method return null- Returns:
- the ContentEntityObject with the corresponding id and version or null if the object with that id and version does not exist. null will also be returned if the id points to a CEO which version is not the last one.
- Throws:
UnsupportedOperationException
- if the ContentId does not map to a ContentEntityObject
-
getByIdsAndFilters
@NonNull PageResponse<ContentEntityObject> getByIdsAndFilters(List<ContentId> contentIds, LimitedRequest limitedRequest, Predicate<? super ContentEntityObject> filter) - Parameters:
contentIds
- the contentIds of the candidate ContentEntityObjectslimitedRequest
- the page request to applyfilter
- an optional predicate- Returns:
- fetch multiple contentEntityObjects by id that match the provided predicate
- Since:
- 7.0.1
-
getVersionHistorySummaries
@NonNull PageResponse<VersionHistorySummary> getVersionHistorySummaries(ContentId contentId, LimitedRequest limitedRequest) Get a VersionHistorySummary for all previous versions of a ContentEntityObject, list is ordered by Version number descending. e.g. the list is started with the most recent content version as item 0.- Parameters:
contentId
- the entity Id of the object to return the version history of- Returns:
- the full version history of that object, as VersionHistorySummary objects.
-
countContentBySpaceIdAndStatus
Retrieve the count of specific content type for a given space with a particular status.- Parameters:
spaceId
- the id of the spacestatus
- the status of the content being retrieved (e.g.ContentEntityObject.DELETED
- Returns:
- the number of content objects with that status in that space
- Since:
- 9.2.5
-
getContentAuthoredByUser
Deprecated.since 9.5 useContentService
- Since:
- 9.5
- See Also:
-
ContentByUserMacro
-
ContentService