public interface RestAttachmentManager
AttachmentEntity objects.
This manager responsible for conversion from Confluence's API objects (eg Attachment,
to a REST level AttachmentEntity. It also checks if user has permissions to view the attachments.
| Modifier and Type | Method and Description |
|---|---|
AttachmentEntity |
convertToAttachmentEntity(Attachment attachment)
Convert a Confluence model object into its REST representation.
|
AttachmentEntityList |
createAttachmentEntityListForContent(ContentEntityObject object)
Create a
AttachmentEntityList object for the given ContentEntityObject |
AttachmentEntity |
getAttachmentEntity(Long attachmentId)
Gets the
AttachmentEntity object for the given id. |
AttachmentEntity getAttachmentEntity(Long attachmentId)
AttachmentEntity object 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 retrieveAttachmentEntity convertToAttachmentEntity(Attachment attachment)
attachment - AttachmentEntityList createAttachmentEntityListForContent(ContentEntityObject object)
AttachmentEntityList object for the given ContentEntityObjectobject - Copyright © 2003–2019 Atlassian. All rights reserved.