com.atlassian.jira.plugin.viewissue
Class AttachmentBlockContextProvider
java.lang.Object
com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider
- All Implemented Interfaces:
- CacheableContextProvider, com.atlassian.plugin.web.ContextProvider
public class AttachmentBlockContextProvider
- extends Object
- implements CacheableContextProvider
Provides context for the Attachments block on the View Issue page.
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentBlockContextProvider
public AttachmentBlockContextProvider(AttachmentManager attachmentManager,
JiraAuthenticationContext authenticationContext,
VelocityRequestContextFactory velocityRequestContextFactory,
ThumbnailManager thumbnailManager,
UserManager userManager,
ApplicationProperties applicationProperties,
FileIconUtil fileIconUtil,
IssueManager issueManager,
PermissionManager permissionManager,
DateTimeFormatter dateTimeFormatter)
init
public void init(Map<String,String> params)
throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interface com.atlassian.plugin.web.ContextProvider
- Throws:
com.atlassian.plugin.PluginParseException
getContextMap
public Map<String,Object> getContextMap(Map<String,Object> context)
- Specified by:
getContextMap
in interface com.atlassian.plugin.web.ContextProvider
attachmentComparator
protected Comparator<Attachment> attachmentComparator()
- Returns:
- a Comparator<Attachment> according to the user's selection.
getUniqueContextKey
public String getUniqueContextKey(Map<String,Object> context)
- Description copied from interface:
CacheableContextProvider
- Return a key that is unique for the scope that this context should be scoped. E.g. If the context is unique per
issue, per user return "JRA-11234:nmenere"
- Specified by:
getUniqueContextKey
in interface CacheableContextProvider
- Parameters:
context
- the context passed into the getContextMap method.
- Returns:
- a key that is unique for the scope that this context
Copyright © 2002-2012 Atlassian. All Rights Reserved.