public interface RestAttachmentManager
This manager responsible for conversion from Confluence's API objects (eg
to a REST level
AttachmentEntity. It also checks if user has permissions to view the attachments.
|Modifier and Type||Method and Description|
Convert a Confluence model object into its REST representation.
AttachmentEntity getAttachmentEntity(Long attachmentId)
AttachmentEntityobject for the given id. A convenience method that packages up retrieving the Confluence attachment and converting it to a REST object.
null is returned if the current user is not permitted to view the attachment or
if no attachment object can be found for the given id
attachmentId- the id of the attahcment to retrieve
AttachmentEntity convertToAttachmentEntity(Attachment attachment)
AttachmentEntityList createAttachmentEntityListForContent(ContentEntityObject object)
AttachmentEntityListobject for the given ContentEntityObject
Copyright © 2003–2016 Atlassian. All rights reserved.