public class AttachmentBlockContextProvider extends Object implements CacheableContextProvider
Modifier and Type | Class and Description |
---|---|
class |
AttachmentBlockContextProvider.IconGenerator |
class |
AttachmentBlockContextProvider.SimpleAttachment |
Constructor and Description |
---|
AttachmentBlockContextProvider(AttachmentManager attachmentManager,
JiraAuthenticationContext authenticationContext,
ThumbnailManager thumbnailManager,
UserManager userManager,
FileIconUtil fileIconUtil,
DateTimeFormatter dateTimeFormatter,
AttachmentBlockContextHelper helper) |
Modifier and Type | Method and Description |
---|---|
protected Comparator<Attachment> |
attachmentComparator() |
protected List<AttachmentBlockContextProvider.SimpleAttachment> |
convertToSimpleAttachments(Issue issue,
AttachmentItems items,
boolean zipEnabled,
ApplicationUser user) |
Map<String,Object> |
getContextMap(Map<String,Object> context) |
String |
getUniqueContextKey(Map<String,Object> context)
Return a key that is unique for the scope that this context should be scoped.
|
void |
init(Map<String,String> params) |
public AttachmentBlockContextProvider(AttachmentManager attachmentManager, JiraAuthenticationContext authenticationContext, ThumbnailManager thumbnailManager, UserManager userManager, FileIconUtil fileIconUtil, DateTimeFormatter dateTimeFormatter, AttachmentBlockContextHelper helper)
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.web.ContextProvider
com.atlassian.plugin.PluginParseException
public Map<String,Object> getContextMap(Map<String,Object> context)
getContextMap
in interface com.atlassian.plugin.web.ContextProvider
protected Comparator<Attachment> attachmentComparator()
protected List<AttachmentBlockContextProvider.SimpleAttachment> convertToSimpleAttachments(Issue issue, AttachmentItems items, boolean zipEnabled, ApplicationUser user)
public String getUniqueContextKey(Map<String,Object> context)
CacheableContextProvider
getUniqueContextKey
in interface CacheableContextProvider
context
- the context passed into the getContextMap method.Copyright © 2002-2015 Atlassian. All Rights Reserved.