public class PeopleBlockContextProvider extends Object implements CacheableContextProvider
Constructor and Description |
---|
PeopleBlockContextProvider(ApplicationProperties applicationProperties,
AvatarService avatarService,
JiraAuthenticationContext authenticationContext,
FieldScreenRendererFactory fieldScreenRendererFactory,
FieldVisibilityManager fieldVisibilityManager,
IssueManager issueManager,
PermissionManager permissionManager,
UserFormatManager userFormatManager,
VoteManager voteManager,
WatcherManager watcherManager,
FieldModelFactory fieldModelFactory) |
Modifier and Type | Method and Description |
---|---|
String |
getAssigneeDisplayHtml(Issue issue)
Construct an HTML string to display an issue's assignee.
|
Map<String,Object> |
getContextMap(Map<String,Object> context) |
String |
getReporterDisplayHtml(Issue issue)
Construct an HTML string to display an issue's reporter.
|
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 PeopleBlockContextProvider(ApplicationProperties applicationProperties, AvatarService avatarService, JiraAuthenticationContext authenticationContext, FieldScreenRendererFactory fieldScreenRendererFactory, FieldVisibilityManager fieldVisibilityManager, IssueManager issueManager, PermissionManager permissionManager, UserFormatManager userFormatManager, VoteManager voteManager, WatcherManager watcherManager, FieldModelFactory fieldModelFactory)
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
public String getUniqueContextKey(Map<String,Object> context)
CacheableContextProvider
getUniqueContextKey
in interface CacheableContextProvider
context
- the context passed into the getContextMap method.public String getAssigneeDisplayHtml(Issue issue)
issue
- The issue whose assignee is to be rendered.issue
's assignee.Copyright © 2002-2017 Atlassian. All Rights Reserved.