com.atlassian.jira.timezone
Class NoDatabaseTimeZoneResolver

java.lang.Object
  extended by 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

Constructor Summary
NoDatabaseTimeZoneResolver()
           
 
Method Summary
 TimeZone getDefaultTimeZone(JiraServiceContext serviceContext)
          Returns the system default time zone.
 TimeZone getUserTimeZone(JiraServiceContext serviceContext)
          Returns the system default time zone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoDatabaseTimeZoneResolver

public NoDatabaseTimeZoneResolver()
Method Detail

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-2013 Atlassian. All Rights Reserved.