public class DefaultRestContentManager extends Object implements RestContentManager
| Constructor and Description |
|---|
DefaultRestContentManager(ContentEntityManager contentEntityManager,
PermissionManager permissionManager,
PageManager pageManager,
RestAttachmentManager restAttachmentManager,
EntityBuilderFactory entityBuilderFactory) |
| Modifier and Type | Method and Description |
|---|---|
ContentEntity |
convertToContentEntity(ContentEntityObject object)
Convert a Confluence model object into its REST representation.
|
ContentEntity |
expand(ContentEntity contentEntity)
Expands and returns the given
ContentEntity. |
ContentEntity |
getContentEntity(Long id,
boolean expand)
Gets the
ContentEntity object for the given id and expands it if requested to. |
PermissionManager |
getPermissionManager() |
public DefaultRestContentManager(ContentEntityManager contentEntityManager, PermissionManager permissionManager, PageManager pageManager, RestAttachmentManager restAttachmentManager, EntityBuilderFactory entityBuilderFactory)
public ContentEntity expand(ContentEntity contentEntity)
RestContentManagerContentEntity.expand in interface RestContentManagercontentEntity - the content entity to expandpublic ContentEntity getContentEntity(Long id, boolean expand)
RestContentManagerContentEntity object for the given id and expands it if requested to. A
convenience method that packages up retrieving the Confluence content, converting it to a REST
object and then optionally expanding it.
null is returned if the current user is not permitted to view the content or
if no content object can be found for the given id
getContentEntity in interface RestContentManagerid - the id of the content entity to retrievepublic ContentEntity convertToContentEntity(ContentEntityObject object)
RestContentManagerconvertToContentEntity in interface RestContentManagerobject - the ContentEntityObject representation of some Confluence contentpublic PermissionManager getPermissionManager()
Copyright © 2003–2022 Atlassian. All rights reserved.