java.lang.Object | |
↳ | com.atlassian.confluence.pages.attachments.AttachmentCache |
Caches the IDs of current attachments by the normal lookup mechanism: content ID +
file name. The returned ID can be used for a second-level cache lookup in
Hibernate via get(Class, java.io.Serializable)
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the cache contains the composite key of content ID + file
name.
| |||||||||||
Returns the ID of the attachment with the given content ID, file name
and version, or null if no attachment is in the cache.
| |||||||||||
Caches the ID of the current version of an attachment (which should
never change) against its content ID + file name.
| |||||||||||
Removes the given attachment from the cache.
| |||||||||||
Removes all entries from the cache.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Returns true if the cache contains the composite key of content ID + file name.
Returns the ID of the attachment with the given content ID, file name and version, or null if no attachment is in the cache.
Caches the ID of the current version of an attachment (which should never change) against its content ID + file name. If the provided attachment is null or is not the latest version of that attachment, does nothing.
IllegalArgumentException | if the attachment's content reference is null. |
---|
Removes the given attachment from the cache. Does nothing if the attachment is not in the cache, or the attachment is not the latest version of that attachment.
IllegalArgumentException | if the attachment's content reference is null. |
---|
Removes all entries from the cache.