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)
RestContentManager
ContentEntity
.expand
in interface RestContentManager
contentEntity
- the content entity to expandpublic ContentEntity getContentEntity(Long id, boolean expand)
RestContentManager
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 idgetContentEntity
in interface RestContentManager
id
- the id of the content entity to retrievepublic ContentEntity convertToContentEntity(ContentEntityObject object)
RestContentManager
convertToContentEntity
in interface RestContentManager
object
- the ContentEntityObject representation of some Confluence contentpublic PermissionManager getPermissionManager()
Copyright © 2003–2015 Atlassian. All rights reserved.