@PublicApi public class TemporaryAttachmentsMonitor extends Object implements javax.servlet.http.HttpSessionBindingListener
Constructor and Description |
---|
TemporaryAttachmentsMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
add(TemporaryAttachment temporaryAttachment)
Adds temporary attachments to the interally maintained list of temporary attachements
|
void |
clearEntriesForIssue(Long issueId)
Removes all temporary attachments for the given issue.
|
TemporaryAttachment |
getById(Long id)
Returns matching temporary attachment by attachment id.
|
Collection<TemporaryAttachment> |
getByIssueId(Long issueId)
Returns all currently matchign temporary attachments for a particular issue.
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
When this object is unbount from the HttpSession, it's responsible for cleanup.
|
public void add(TemporaryAttachment temporaryAttachment)
temporaryAttachment
- the attachment to addpublic TemporaryAttachment getById(Long id)
id
- the id of the temporary attachmentpublic Collection<TemporaryAttachment> getByIssueId(Long issueId)
issueId
- The id of the issue to get attachmetns for. May be nullpublic void clearEntriesForIssue(Long issueId)
issueId
- The id of the issue to remove entries for. May be null.public void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
httpSessionBindingEvent
- Copyright © 2002-2012 Atlassian. All Rights Reserved.