com.atlassian.confluence.api.impl.sal.timezone
Class ConfluenceTimeZoneManager

java.lang.Object
  extended by com.atlassian.confluence.api.impl.sal.timezone.ConfluenceTimeZoneManager
All Implemented Interfaces:
com.atlassian.sal.api.timezone.TimeZoneManager

public class ConfluenceTimeZoneManager
extends Object
implements com.atlassian.sal.api.timezone.TimeZoneManager


Constructor Summary
ConfluenceTimeZoneManager(UserAccessor userAccessor, SettingsManager settingsManager, TenantRegistry tenantRegistry)
           
 
Method Summary
 TimeZone getDefaultTimeZone()
          This implementation will lookup the default timezone for the current tenant in SettingsManager, falling back to JDK default Timezone.
 TimeZone getUserTimeZone()
           
 TimeZone getUserTimeZone(com.atlassian.sal.api.user.UserKey userKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceTimeZoneManager

public ConfluenceTimeZoneManager(UserAccessor userAccessor,
                                 SettingsManager settingsManager,
                                 TenantRegistry tenantRegistry)
Method Detail

getUserTimeZone

@Nonnull
public TimeZone getUserTimeZone()
Specified by:
getUserTimeZone in interface com.atlassian.sal.api.timezone.TimeZoneManager

getUserTimeZone

@Nonnull
public TimeZone getUserTimeZone(com.atlassian.sal.api.user.UserKey userKey)
Specified by:
getUserTimeZone in interface com.atlassian.sal.api.timezone.TimeZoneManager

getDefaultTimeZone

@Nonnull
public TimeZone getDefaultTimeZone()
This implementation will lookup the default timezone for the current tenant in SettingsManager, falling back to JDK default Timezone.

Specified by:
getDefaultTimeZone in interface com.atlassian.sal.api.timezone.TimeZoneManager


Copyright © 2003–2015 Atlassian. All rights reserved.