Class ReadThroughAttachmentDownloadPathCache
java.lang.Object
com.atlassian.confluence.impl.pages.attachments.ReadThroughAttachmentDownloadPathCache
Cache for attachment download paths. Caches null results as well as actual results.
- Since:
- 7.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(com.atlassian.cache.CacheFactory cacheFactory) getAttachmentDownloadPath
(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key, Supplier<String> pathSupplier) void
toKey
(ContentEntityObject content, String attachmentFileName) toKey
(Attachment attachment)
-
Method Details
-
create
public static ReadThroughAttachmentDownloadPathCache create(com.atlassian.cache.CacheFactory cacheFactory) -
toKey
public ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(Attachment attachment) -
toKey
public ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(ContentEntityObject content, String attachmentFileName) -
getAttachmentDownloadPath
public @NonNull Optional<String> getAttachmentDownloadPath(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key, Supplier<String> pathSupplier) -
remove
-