Class DefaultRestContentManager
java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.manager.DefaultRestContentManager
- All Implemented Interfaces:
 RestContentManager
- 
Constructor Summary
ConstructorsConstructorDescriptionDefaultRestContentManager(ContentEntityManager contentEntityManager, PermissionManager permissionManager, PageManager pageManager, RestAttachmentManager restAttachmentManager, EntityBuilderFactory entityBuilderFactory)  - 
Method Summary
Modifier and TypeMethodDescriptionConvert a Confluence model object into its REST representation.expand(ContentEntity contentEntity) Expands and returns the givenContentEntity.getContentEntity(Long id, boolean expand) Gets theContentEntityobject for the given id and expands it if requested to. 
- 
Constructor Details
- 
DefaultRestContentManager
public DefaultRestContentManager(ContentEntityManager contentEntityManager, PermissionManager permissionManager, PageManager pageManager, RestAttachmentManager restAttachmentManager, EntityBuilderFactory entityBuilderFactory)  
 - 
 - 
Method Details
- 
expand
Description copied from interface:RestContentManagerExpands and returns the givenContentEntity.- Specified by:
 expandin interfaceRestContentManager- Parameters:
 contentEntity- the content entity to expand- Returns:
 - the expanded content entity
 
 - 
getContentEntity
Description copied from interface:RestContentManagerGets theContentEntityobject 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.nullis returned if the current user is not permitted to view the content or if no content object can be found for the given id- Specified by:
 getContentEntityin interfaceRestContentManager- Parameters:
 id- the id of the content entity to retrieve- Returns:
 - the converted content object or null if not permitted or doesn't exist
 
 - 
convertToContentEntity
Description copied from interface:RestContentManagerConvert a Confluence model object into its REST representation. The ContentEntity returned from this method will not be expanded.- Specified by:
 convertToContentEntityin interfaceRestContentManager- Parameters:
 object- the ContentEntityObject representation of some Confluence content- Returns:
 - the equivalent unexpanded ContentEntity
 
 - 
getPermissionManager
 
 -