java.lang.Object | |
↳ | com.atlassian.jira.web.action.issue.TemporaryAttachmentsMonitor |
This class is deprecated.
Use TemporaryWebAttachmentManager
instead. Since v6.4
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds temporary attachments to the interally maintained list of temporary attachements
| |||||||||||
Removes all temporary attachments for the given formToken.
| |||||||||||
This method is deprecated.
since 6.3 use
clearEntriesForFormToken(String) instead.
| |||||||||||
Returns all temporary attachments, which were bound to given form token.
| |||||||||||
Returns matching temporary attachment by attachment id.
| |||||||||||
This method is deprecated.
since 6.3 use
getByFormToken(String) instead.
| |||||||||||
When this object is unbount from the HttpSession, it's responsible for cleanup.
|
[Expand]
Inherited Methods | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||
![]() |
Adds temporary attachments to the interally maintained list of temporary attachements
temporaryAttachment | the attachment to add |
---|
Removes all temporary attachments for the given formToken. Form token may not be null;
formToken | The formToken of the form to remove entries for. May not be null. |
---|
This method is deprecated.
since 6.3 use clearEntriesForFormToken(String)
instead.
Removes all temporary attachments for the given issue. The issueId may be null to indicate a newly created issue, that doesn't have an id yet.
issueId | The id of the issue to remove entries for. May be null. |
---|
Returns all temporary attachments, which were bound to given form token. Form token may not be null.
Returns matching temporary attachment by attachment id.
id | the id of the temporary attachment |
---|
This method is deprecated.
since 6.3 use getByFormToken(String)
instead.
Returns all currently matching temporary attachments for a particular issue. If a null issue id is provided, this should be interpreted as a newly created issue that doesn't have an id yet.
issueId | The id of the issue to get attachmetns for. May be null |
---|
When this object is unbount from the HttpSession, it's responsible for cleanup. Any temporary attachments not converted to real attachments by now should be deleted to save disk space!