@ParametersAreNonnullByDefault public class DefaultTemporaryWebAttachmentsMonitor extends Object implements javax.servlet.http.HttpSessionBindingListener, TemporaryWebAttachmentsMonitor
Constructor and Description |
---|
DefaultTemporaryWebAttachmentsMonitor(StreamAttachmentStore attachmentStore) |
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.
|
com.atlassian.fugue.Option<TemporaryWebAttachment> |
getById(String temporaryAttachmentId)
Retrieves temporary attachment by id.
|
com.atlassian.fugue.Option<TemporaryWebAttachment> |
removeById(String temporaryAttachmentId)
Removes temporary attachment with given id from monitor.
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event) |
public DefaultTemporaryWebAttachmentsMonitor(StreamAttachmentStore attachmentStore)
public com.atlassian.fugue.Option<TemporaryWebAttachment> getById(String temporaryAttachmentId)
TemporaryWebAttachmentsMonitor
getById
in interface TemporaryWebAttachmentsMonitor
temporaryAttachmentId
- temporary attachment id.public com.atlassian.fugue.Option<TemporaryWebAttachment> removeById(String temporaryAttachmentId)
TemporaryWebAttachmentsMonitor
removeById
in interface TemporaryWebAttachmentsMonitor
temporaryAttachmentId
- Temporary Attachment Id which will be removed.public void add(TemporaryWebAttachment temporaryAttachment)
TemporaryWebAttachmentsMonitor
add
in interface TemporaryWebAttachmentsMonitor
temporaryAttachment
- temporary attachment.public Collection<TemporaryWebAttachment> getByFormToken(String formToken)
TemporaryWebAttachmentsMonitor
getByFormToken
in interface TemporaryWebAttachmentsMonitor
formToken
- form tokenpublic void cleanByFormToken(String formToken)
TemporaryWebAttachmentsMonitor
cleanByFormToken
in interface TemporaryWebAttachmentsMonitor
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
Copyright © 2002-2016 Atlassian. All Rights Reserved.