@ParametersAreNonnullByDefault public class DefaultTemporaryWebAttachmentsMonitor extends Object implements TemporaryWebAttachmentsMonitor, Startable
| Constructor and Description |
|---|
DefaultTemporaryWebAttachmentsMonitor(StreamAttachmentStore attachmentStore,
TemporaryAttachmentMonitorStore temporaryAttachmentMonitorStore,
com.atlassian.scheduler.SchedulerService schedulerService) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(TemporaryWebAttachment temporaryAttachment)
Adds new temporary attachment.
|
void |
cleanByFormToken(String formToken)
Removes all attachments from monitor and from attachment store, matched by form token.
|
Collection<TemporaryWebAttachment> |
getByFormToken(String formToken)
Gets all temporary attachments with given from token.
|
io.atlassian.fugue.Option<TemporaryWebAttachment> |
getById(String temporaryAttachmentId)
Retrieves temporary attachment by id.
|
io.atlassian.fugue.Option<TemporaryWebAttachment> |
removeById(String temporaryAttachmentId)
Removes temporary attachment with given id from monitor.
|
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public DefaultTemporaryWebAttachmentsMonitor(StreamAttachmentStore attachmentStore, TemporaryAttachmentMonitorStore temporaryAttachmentMonitorStore, com.atlassian.scheduler.SchedulerService schedulerService)
public void start()
throws Exception
Startablepublic io.atlassian.fugue.Option<TemporaryWebAttachment> getById(String temporaryAttachmentId)
TemporaryWebAttachmentsMonitorgetById in interface TemporaryWebAttachmentsMonitortemporaryAttachmentId - temporary attachment id.public io.atlassian.fugue.Option<TemporaryWebAttachment> removeById(String temporaryAttachmentId)
TemporaryWebAttachmentsMonitorremoveById in interface TemporaryWebAttachmentsMonitortemporaryAttachmentId - Temporary Attachment Id which will be removed.public void add(TemporaryWebAttachment temporaryAttachment)
TemporaryWebAttachmentsMonitoradd in interface TemporaryWebAttachmentsMonitortemporaryAttachment - temporary attachment.public Collection<TemporaryWebAttachment> getByFormToken(String formToken)
TemporaryWebAttachmentsMonitorgetByFormToken in interface TemporaryWebAttachmentsMonitorformToken - form tokenpublic void cleanByFormToken(String formToken)
TemporaryWebAttachmentsMonitorcleanByFormToken in interface TemporaryWebAttachmentsMonitorCopyright © 2002-2023 Atlassian. All Rights Reserved.