@ParametersAreNonnullByDefault public class DefaultAttachmentStatusManager extends Object implements AttachmentStatusManager
ATTACHMENT_STATUS| Constructor and Description |
|---|
DefaultAttachmentStatusManager(AttachmentDao attachmentDao) |
| Modifier and Type | Method and Description |
|---|---|
Optional<AttachmentStatus> |
getAttachmentStatus(long id)
Get attachment status for given attachment version.
|
void |
updateAttachmentStatus(long id,
AttachmentStatus status)
Update attachment status.
|
public DefaultAttachmentStatusManager(AttachmentDao attachmentDao)
public void updateAttachmentStatus(long id,
AttachmentStatus status)
AttachmentStatusManagerupdateAttachmentStatus in interface AttachmentStatusManagerid - id of attachmentstatus - AttachmentStatus to updatepublic Optional<AttachmentStatus> getAttachmentStatus(long id)
AttachmentStatusManagergetAttachmentStatus in interface AttachmentStatusManagerid - id of attachmentAttachmentStatus or empty result if there is no status for given version of attachment in
the storageCopyright © 2003–2017 Atlassian. All rights reserved.