com.atlassian.jira.plugin.headernav.customcontentlinks.admin
Class SummaryContextProvider

java.lang.Object
  extended by com.atlassian.jira.plugin.headernav.customcontentlinks.admin.SummaryContextProvider
All Implemented Interfaces:
CacheableContextProvider, com.atlassian.plugin.web.ContextProvider

public class SummaryContextProvider
extends Object
implements CacheableContextProvider

Created with IntelliJ IDEA. User: tdavies Date: 19/11/12 Time: 2:44 PM To change this template use File | Settings | File Templates.


Constructor Summary
SummaryContextProvider(ProjectManager projectManager, CustomContentLinkServiceFactory customContentLinkServiceFactory, VelocityRequestContextFactory requestContextFactory, ContentLinkAdminDescriptionProvider contentLinkAdminDescriptionProvider)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SummaryContextProvider

public SummaryContextProvider(ProjectManager projectManager,
                              CustomContentLinkServiceFactory customContentLinkServiceFactory,
                              VelocityRequestContextFactory requestContextFactory,
                              ContentLinkAdminDescriptionProvider contentLinkAdminDescriptionProvider)
Method Detail

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

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.