|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.web.action.issue.TemporaryAttachmentsMonitor
@PublicApi public class TemporaryAttachmentsMonitor
This class maintains a list of temporary attachments uploaded by a user. When the user's session expires or the user logs out, it is responsible of deleting any temporary files that were not converted to proper attachments.
Constructor Summary | |
---|---|
TemporaryAttachmentsMonitor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemporaryAttachmentsMonitor()
Method Detail |
---|
public void add(TemporaryAttachment temporaryAttachment)
temporaryAttachment
- the attachment to addpublic TemporaryAttachment getById(Long id)
id
- the id of the temporary attachment
public Collection<TemporaryAttachment> getByIssueId(Long issueId)
issueId
- The id of the issue to get attachmetns for. May be null
public 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |