public class

DateBlockContextProvider

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

Class Overview

Context Provider for Date Block on View Issue page.

Summary

Public Constructors
DateBlockContextProvider(FieldVisibilityManager fieldVisibilityManager, JiraAuthenticationContext authenticationContext, DateTimeFormatterFactory dateTimeFormatterFactory, FieldScreenRendererFactory fieldScreenRendererFactory, DateFieldFormat dateFieldFormat)
Public Methods
Map<StringObject> getContextMap(Map<StringObject> context)
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)
Protected Methods
String formatDate(Date date)
String formatDateIso8601(Date date)
String formatDateTimeIso8601(Date dateTime)
String formatDateTimeTitle(Date dateTime)
String getI18nText(String key)
[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 DateBlockContextProvider (FieldVisibilityManager fieldVisibilityManager, JiraAuthenticationContext authenticationContext, DateTimeFormatterFactory dateTimeFormatterFactory, FieldScreenRendererFactory fieldScreenRendererFactory, DateFieldFormat dateFieldFormat)

Public Methods

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

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)

Protected Methods

protected String formatDate (Date date)

protected String formatDateIso8601 (Date date)

protected String formatDateTimeIso8601 (Date dateTime)

protected String formatDateTimeTitle (Date dateTime)

protected String getI18nText (String key)