public class TimeZoneServiceCachingDecorator extends Object implements TimeZoneService
JIRA, SYSTEM| Constructor and Description |
|---|
TimeZoneServiceCachingDecorator(TimeZoneService timeZoneService)
Creates a new TimeZoneServiceCachingDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearDefaultTimeZone(JiraServiceContext serviceContext)
Reset the default time zone to the JVM time zone.
|
void |
clearUserDefaultTimeZone(JiraServiceContext serviceContext)
Resets the time zone for this user to the JIRA default time zone.
|
TimeZoneInfo |
getDefaultTimeZoneInfo(JiraServiceContext serviceContext)
Returns the default time zone which is globally configured.
|
String |
getDefaultTimeZoneRegionKey()
Return the region key of the current default time zone.
|
TimeZoneInfo |
getJVMTimeZoneInfo(JiraServiceContext serviceContext)
Returns the time zone of the JVM
|
List<TimeZoneInfo> |
getTimeZoneInfos(JiraServiceContext serviceContext)
Retrieves all time zones.
|
List<RegionInfo> |
getTimeZoneRegions(JiraServiceContext serviceContext)
Returns all time zone regions.
|
TimeZoneInfo |
getUserTimeZoneInfo(JiraServiceContext serviceContext)
Return the time zone for this user.
|
void |
setDefaultTimeZone(String timeZoneId,
JiraServiceContext serviceContext)
Allows to set the default time zone.
|
void |
setUserDefaultTimeZone(String timeZoneId,
JiraServiceContext serviceContext)
Sets the default time zone for this user.
|
boolean |
usesJiraTimeZone(JiraServiceContext serviceContext)
Returns true if this user is using the JIRA default time zone or false if the user has is using a custom time zone.
|
boolean |
useSystemTimeZone()
Returns true if the JVM time zone is used, otherwise false.
|
public TimeZoneServiceCachingDecorator(TimeZoneService timeZoneService)
timeZoneService - a TimeZoneServicepublic void setUserDefaultTimeZone(String timeZoneId, JiraServiceContext serviceContext)
TimeZoneServicesetUserDefaultTimeZone in interface TimeZoneServicetimeZoneId - the time zone idserviceContext - JIRA Service Context containing the user.public void clearUserDefaultTimeZone(JiraServiceContext serviceContext)
TimeZoneServiceclearUserDefaultTimeZone in interface TimeZoneServiceserviceContext - JIRA Service Context containing the user.public void setDefaultTimeZone(String timeZoneId, JiraServiceContext serviceContext)
TimeZoneServicesetDefaultTimeZone in interface TimeZoneServicetimeZoneId - the id of the time zone.serviceContext - JIRA Service Context containing the user that changing the default time zone.public void clearDefaultTimeZone(JiraServiceContext serviceContext)
TimeZoneServiceclearDefaultTimeZone in interface TimeZoneServiceserviceContext - JIRA Service Context containing the user that changing the default time zone.public TimeZoneInfo getUserTimeZoneInfo(JiraServiceContext serviceContext)
TimeZoneServicegetUserTimeZoneInfo in interface TimeZoneServiceserviceContext - JIRA Service Context containing the user.public TimeZoneInfo getJVMTimeZoneInfo(JiraServiceContext serviceContext)
TimeZoneServicegetJVMTimeZoneInfo in interface TimeZoneServiceserviceContext - JIRA Service Context containing the user that is retrieving the time zone information.public TimeZoneInfo getDefaultTimeZoneInfo(JiraServiceContext serviceContext)
TimeZoneServicegetDefaultTimeZoneInfo in interface TimeZoneServiceserviceContext - JIRA Service Context containing the user that is retrieving the time zone information.public List<RegionInfo> getTimeZoneRegions(JiraServiceContext serviceContext)
TimeZoneServicegetTimeZoneRegions in interface TimeZoneServiceserviceContext - JIRA Service Context containing the user that is retrieving the time zone information.public List<TimeZoneInfo> getTimeZoneInfos(JiraServiceContext serviceContext)
TimeZoneServicegetTimeZoneInfos in interface TimeZoneServiceserviceContext - JIRA Service Context containing the user that is retrieving the time zone information.public String getDefaultTimeZoneRegionKey()
TimeZoneServicegetDefaultTimeZoneRegionKey in interface TimeZoneServicepublic boolean useSystemTimeZone()
TimeZoneServiceuseSystemTimeZone in interface TimeZoneServicepublic boolean usesJiraTimeZone(JiraServiceContext serviceContext)
TimeZoneServiceusesJiraTimeZone in interface TimeZoneServiceCopyright © 2002-2018 Atlassian. All Rights Reserved.