public class AttachmentBlockContextProvider extends Object implements CacheableContextProvider
| Constructor and Description |
|---|
AttachmentBlockContextProvider(AttachmentManager attachmentManager,
JiraAuthenticationContext authenticationContext,
AttachmentBlockContextHelper helper,
AttachmentViewDtoConverter viewDtoConverter) |
| Modifier and Type | Method and Description |
|---|---|
protected Comparator<Attachment> |
attachmentComparator() |
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, AttachmentBlockContextHelper helper, AttachmentViewDtoConverter viewDtoConverter)
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
init in interface com.atlassian.plugin.web.ContextProvidercom.atlassian.plugin.PluginParseExceptionpublic Map<String,Object> getContextMap(Map<String,Object> context)
getContextMap in interface com.atlassian.plugin.web.ContextProviderprotected Comparator<Attachment> attachmentComparator()
public String getUniqueContextKey(Map<String,Object> context)
CacheableContextProvidergetUniqueContextKey in interface CacheableContextProvidercontext - the context passed into the getContextMap method.Copyright © 2002-2020 Atlassian. All Rights Reserved.