public class DateBlockContextProvider extends Object implements CacheableContextProvider
Constructor and Description |
---|
DateBlockContextProvider(FieldVisibilityManager fieldVisibilityManager,
JiraAuthenticationContext authenticationContext,
DateTimeFormatterFactory dateTimeFormatterFactory,
FieldScreenRendererFactory fieldScreenRendererFactory,
DateFieldFormat dateFieldFormat) |
Modifier and Type | Method and Description |
---|---|
protected String |
formatDate(Date date) |
protected String |
formatDateIso8601(Date date) |
protected String |
formatDateTimeIso8601(Date dateTime) |
protected String |
formatDateTimeTitle(Date dateTime) |
Map<String,Object> |
getContextMap(Map<String,Object> context) |
protected String |
getI18nText(String key) |
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 DateBlockContextProvider(FieldVisibilityManager fieldVisibilityManager, JiraAuthenticationContext authenticationContext, DateTimeFormatterFactory dateTimeFormatterFactory, FieldScreenRendererFactory fieldScreenRendererFactory, DateFieldFormat dateFieldFormat)
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.Copyright © 2002-2015 Atlassian. All Rights Reserved.