@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)
AttachmentStatusManager
updateAttachmentStatus
in interface AttachmentStatusManager
id
- id of attachmentstatus
- AttachmentStatus
to updatepublic Optional<AttachmentStatus> getAttachmentStatus(long id)
AttachmentStatusManager
getAttachmentStatus
in interface AttachmentStatusManager
id
- id of attachmentAttachmentStatus
or empty result if there is no status for given version of attachment in
the storageCopyright © 2003–2021 Atlassian. All rights reserved.