public interface RestContentManager
ContentEntity
objects.
This manager responsible for
Page
,
BlogPost
) to a REST level ContentEntity
.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. |
ContentEntity getContentEntity(Long id, boolean expand)
ContentEntity
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
id
- the id of the content entity to retrieveContentEntity convertToContentEntity(ContentEntityObject object)
object
- the ContentEntityObject representation of some Confluence contentContentEntity expand(ContentEntity contentEntity)
ContentEntity
.contentEntity
- the content entity to expandCopyright © 2003–2019 Atlassian. All rights reserved.