public class DefaultRestAttachmentManager extends Object implements RestAttachmentManager
Constructor and Description |
---|
DefaultRestAttachmentManager(AttachmentManager attachmentManager,
PermissionManager permissionManager,
SettingsManager settingsManager,
ThumbnailManager thumbnailManager,
DateEntityFactory dateEntityFactory) |
DefaultRestAttachmentManager(AttachmentManager attachmentManager,
PermissionManager permissionManager,
SettingsManager settingsManager,
ThumbnailManager thumbnailManager,
DateEntityHelper dateEntityHelper)
Deprecated.
since 4.3. DateEntityFactory replaces DateEntityHelper.
|
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. |
@Deprecated public DefaultRestAttachmentManager(AttachmentManager attachmentManager, PermissionManager permissionManager, SettingsManager settingsManager, ThumbnailManager thumbnailManager, DateEntityHelper dateEntityHelper)
attachmentManager
- permissionManager
- settingsManager
- thumbnailManager
- dateEntityHelper
- public DefaultRestAttachmentManager(AttachmentManager attachmentManager, PermissionManager permissionManager, SettingsManager settingsManager, ThumbnailManager thumbnailManager, DateEntityFactory dateEntityFactory)
public AttachmentEntity convertToAttachmentEntity(Attachment attachment)
RestAttachmentManager
convertToAttachmentEntity
in interface RestAttachmentManager
public AttachmentEntity getAttachmentEntity(Long attachmentId)
RestAttachmentManager
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
getAttachmentEntity
in interface RestAttachmentManager
attachmentId
- the id of the attahcment to retrievepublic AttachmentEntityList createAttachmentEntityListForContent(ContentEntityObject object)
RestAttachmentManager
AttachmentEntityList
object for the given ContentEntityObjectcreateAttachmentEntityListForContent
in interface RestAttachmentManager
Copyright © 2003–2016 Atlassian. All rights reserved.