com.atlassian.jira.timezone
Interface TimeZoneResolver

All Known Implementing Classes:
NoDatabaseTimeZoneResolver, TimeZoneServiceImpl

public interface TimeZoneResolver

Internal interface used for resolving the TimeZoneInfo to use. These are normally implemented by the TimeZoneService, except when JIRA is still bootstrapping.

Since:
v5.0

Method Summary
 TimeZone getDefaultTimeZone(JiraServiceContext serviceContext)
          Returns the JIRA default time zone.
 TimeZone getUserTimeZone(JiraServiceContext serviceContext)
          Returns a user's effective time zone.
 

Method Detail

getDefaultTimeZone

TimeZone getDefaultTimeZone(JiraServiceContext serviceContext)
Returns the JIRA default time zone.

Parameters:
serviceContext - a JiraServiceContext
Returns:
a TimeZone
See Also:
TimeZoneService.getDefaultTimeZoneInfo(com.atlassian.jira.bc.JiraServiceContext)

getUserTimeZone

TimeZone getUserTimeZone(JiraServiceContext serviceContext)
Returns a user's effective time zone.

Parameters:
serviceContext - a JiraServiceContext
Returns:
a TimeZone
See Also:
TimeZoneService.getUserTimeZoneInfo(com.atlassian.jira.bc.JiraServiceContext)


Copyright © 2002-2012 Atlassian. All Rights Reserved.