com.atlassian.confluence.pages
Class AttachmentDownloadPathCache

java.lang.Object
  extended by com.atlassian.confluence.pages.AttachmentDownloadPathCache

public class AttachmentDownloadPathCache
extends java.lang.Object

Cache for attachment download paths. Includes negative value caching.

Since:
4.3

Nested Class Summary
static class AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey
           
 
Constructor Summary
AttachmentDownloadPathCache(com.atlassian.cache.CacheFactory cacheFactory)
           
 
Method Summary
 Option<java.lang.String> get(AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key)
           
 void put(AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key, Option<java.lang.String> path)
           
 void remove(AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key)
           
 AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(Attachment attachment)
           
 AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(ContentEntityObject content, java.lang.String attachmentFileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentDownloadPathCache

public AttachmentDownloadPathCache(com.atlassian.cache.CacheFactory cacheFactory)
Method Detail

toKey

public AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(Attachment attachment)

toKey

public AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(ContentEntityObject content,
                                                                        java.lang.String attachmentFileName)

get

public Option<java.lang.String> get(AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key)

put

public void put(AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key,
                Option<java.lang.String> path)

remove

public void remove(AttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key)


Copyright © 2003-2014 Atlassian. All Rights Reserved.