com.atlassian.jira.timezone
Class NoDatabaseTimeZoneResolver
java.lang.Object
com.atlassian.jira.timezone.NoDatabaseTimeZoneResolver
- All Implemented Interfaces:
- TimeZoneResolver
public class NoDatabaseTimeZoneResolver
- extends Object
- implements TimeZoneResolver
Time zone resolver used during the bootstrap process. Because there is no database access at this point, this
resolver is not able to look up the time zone that each user has configured. Therefore, it always returns the system
time zone.
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoDatabaseTimeZoneResolver
public NoDatabaseTimeZoneResolver()
getDefaultTimeZone
public TimeZone getDefaultTimeZone(JiraServiceContext serviceContext)
- Returns the system default time zone.
- Specified by:
getDefaultTimeZone
in interface TimeZoneResolver
- Parameters:
serviceContext
- a JiraServiceContext
- Returns:
- a TimeZone
- See Also:
TimeZoneService.getDefaultTimeZoneInfo(com.atlassian.jira.bc.JiraServiceContext)
getUserTimeZone
public TimeZone getUserTimeZone(JiraServiceContext serviceContext)
- Returns the system default time zone.
- Specified by:
getUserTimeZone
in interface TimeZoneResolver
- Parameters:
serviceContext
- a JiraServiceContext
- Returns:
- a TimeZone
- See Also:
TimeZoneService.getUserTimeZoneInfo(com.atlassian.jira.bc.JiraServiceContext)
Copyright © 2002-2012 Atlassian. All Rights Reserved.