@ParametersAreNonnullByDefault public class ReadThroughAttachmentDownloadPathCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey |
Modifier and Type | Method and Description |
---|---|
static ReadThroughAttachmentDownloadPathCache |
create(com.atlassian.cache.CacheFactory cacheFactory) |
@NonNull Optional<String> |
getAttachmentDownloadPath(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key,
Supplier<String> pathSupplier) |
void |
remove(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key) |
ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey |
toKey(Attachment attachment) |
ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey |
toKey(ContentEntityObject content,
String attachmentFileName) |
public static ReadThroughAttachmentDownloadPathCache create(com.atlassian.cache.CacheFactory cacheFactory)
public ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(Attachment attachment)
public ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(ContentEntityObject content, String attachmentFileName)
public @NonNull Optional<String> getAttachmentDownloadPath(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key, Supplier<String> pathSupplier)
public void remove(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key)
Copyright © 2003–2021 Atlassian. All rights reserved.