Class PeopleBlockContextProvider
java.lang.Object
com.atlassian.jira.plugin.viewissue.PeopleBlockContextProvider
- All Implemented Interfaces:
CacheableContextProvider,com.atlassian.plugin.web.ContextProvider
Context Provider for the People Block pnn view issue
- Since:
- v4.4
-
Constructor Summary
ConstructorsConstructorDescriptionPeopleBlockContextProvider(ApplicationProperties applicationProperties, AvatarService avatarService, JiraAuthenticationContext authenticationContext, FieldScreenRendererFactory fieldScreenRendererFactory, FieldVisibilityManager fieldVisibilityManager, IssueManager issueManager, PermissionManager permissionManager, UserFormatManager userFormatManager, VoteManager voteManager, WatcherManager watcherManager, FieldModelFactory fieldModelFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetArchiverDisplayHtml(Issue issue) Construct an HTML string to display an issue's archiver.getAssigneeDisplayHtml(Issue issue) Construct an HTML string to display an issue's assignee.getContextMap(Map<String, Object> context) getReporterDisplayHtml(Issue issue) Construct an HTML string to display an issue's reporter.getUniqueContextKey(Map<String, Object> context) Return a key that is unique for the scope that this context should be scoped.void
-
Constructor Details
-
PeopleBlockContextProvider
public PeopleBlockContextProvider(ApplicationProperties applicationProperties, AvatarService avatarService, JiraAuthenticationContext authenticationContext, FieldScreenRendererFactory fieldScreenRendererFactory, FieldVisibilityManager fieldVisibilityManager, IssueManager issueManager, PermissionManager permissionManager, UserFormatManager userFormatManager, VoteManager voteManager, WatcherManager watcherManager, FieldModelFactory fieldModelFactory)
-
-
Method Details
-
init
- Specified by:
initin interfacecom.atlassian.plugin.web.ContextProvider- Throws:
com.atlassian.plugin.PluginParseException
-
getContextMap
- Specified by:
getContextMapin interfacecom.atlassian.plugin.web.ContextProvider
-
getUniqueContextKey
Description copied from interface:CacheableContextProviderReturn 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:
getUniqueContextKeyin interfaceCacheableContextProvider- Parameters:
context- the context passed into the getContextMap method.- Returns:
- a key that is unique for the scope that this context
-
getAssigneeDisplayHtml
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
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
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.
-