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
  • Method Details

    • getById

      @Nullable ContentEntityObject getById(ContentId id)
      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

      @Nullable ContentEntityObject getById(ContentId id, int version)
      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 ContentEntityObjects
      limitedRequest - the page request to apply
      filter - 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

      int countContentBySpaceIdAndStatus(long spaceId, String status)
      Retrieve the count of specific content type for a given space with a particular status.
      Parameters:
      spaceId - the id of the space
      status - 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") List<ContentEntityObject> getContentAuthoredByUser(ConfluenceUser user)
      Deprecated.
      since 9.5 use ContentService
      Since:
      9.5
      See Also:
      • ContentByUserMacro