Class PeopleBlockContextProvider

java.lang.Object
com.atlassian.jira.plugin.viewissue.PeopleBlockContextProvider
All Implemented Interfaces:
CacheableContextProvider, com.atlassian.plugin.web.ContextProvider

public class PeopleBlockContextProvider extends Object implements CacheableContextProvider
Context Provider for the People Block pnn view issue
Since:
v4.4
  • Constructor Details

  • Method Details

    • 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
    • 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
    • getAssigneeDisplayHtml

      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.
    • getReporterDisplayHtml

      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.
    • getArchiverDisplayHtml

      public String getArchiverDisplayHtml(Issue issue)
      Construct an HTML string to display an issue's archiver.
      Parameters:
      issue - The issue whose archiver is to be rendered.
      Returns:
      an HTML string that displays issue's archiver.