public class

PeopleBlockContextProvider

extends Object
implements CacheableContextProvider
java.lang.Object
   ↳ com.atlassian.jira.plugin.viewissue.PeopleBlockContextProvider

Class Overview

Context Provider for the People Block pnn view issue

Summary

Nested Classes
class PeopleBlockContextProvider.CustomFieldHelper  
Public Constructors
PeopleBlockContextProvider(ApplicationProperties applicationProperties, AvatarService avatarService, JiraAuthenticationContext authenticationContext, FieldScreenRendererFactory fieldScreenRendererFactory, FieldVisibilityManager fieldVisibilityManager, IssueManager issueManager, PermissionManager permissionManager, UserFormatManager userFormatManager, VoteManager voteManager, WatcherManager watcherManager)
Public Methods
String getAssigneeDisplayHtml(Issue issue)
Construct an HTML string to display an issue's assignee.
Map<StringObject> getContextMap(Map<StringObject> context)
String getReporterDisplayHtml(Issue issue)
Construct an HTML string to display an issue's reporter.
String getUniqueContextKey(Map<StringObject> context)
Return a key that is unique for the scope that this context should be scoped.
void init(Map<StringString> params)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.webfragment.CacheableContextProvider
From interface com.atlassian.plugin.web.ContextProvider

Public Constructors

public PeopleBlockContextProvider (ApplicationProperties applicationProperties, AvatarService avatarService, JiraAuthenticationContext authenticationContext, FieldScreenRendererFactory fieldScreenRendererFactory, FieldVisibilityManager fieldVisibilityManager, IssueManager issueManager, PermissionManager permissionManager, UserFormatManager userFormatManager, VoteManager voteManager, WatcherManager watcherManager)

Public Methods

public String getAssigneeDisplayHtml (Issue issue)

Construct an HTML string to display an issue's assignee.

Parameters
issue The issue whose assignee is to be rendered.
Returns
  • an HTML string that displays issue's assignee.

public Map<StringObject> getContextMap (Map<StringObject> context)

public String getReporterDisplayHtml (Issue issue)

Construct an HTML string to display an issue's reporter.

Parameters
issue The issue whose reporter is to be rendered.
Returns
  • an HTML string that displays issue's reporter.

public String getUniqueContextKey (Map<StringObject> context)

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"

Parameters
context the context passed into the getContextMap method.
Returns
  • a key that is unique for the scope that this context

public void init (Map<StringString> params)