|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.plugins.rest.manager.DefaultRestAttachmentManager
public class DefaultRestAttachmentManager
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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(java.lang.Long attachmentId)
Gets the AttachmentEntity object for the given id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@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)
Method Detail |
---|
public AttachmentEntity convertToAttachmentEntity(Attachment attachment)
RestAttachmentManager
convertToAttachmentEntity
in interface RestAttachmentManager
public AttachmentEntity getAttachmentEntity(java.lang.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 retrieve
public AttachmentEntityList createAttachmentEntityListForContent(ContentEntityObject object)
RestAttachmentManager
AttachmentEntityList
object for the given ContentEntityObject
createAttachmentEntityListForContent
in interface RestAttachmentManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |