|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimezoneService
Method Summary | |
---|---|
long |
getTimezoneOffsetFromServerTime(org.joda.time.DateTimeZone dtz)
|
String |
getUserTimezone()
Fetch user time zone of the current on-context user. |
String |
getUserTimezone(String principalId)
(this call may be cached) Fetch the users timezone, Data on: Principal Calendar > Job/Location > System Default |
org.joda.time.DateTimeZone |
getUserTimezoneWithFallback()
Returns the DateTimeZone object for the current user OR the system default timezone if there is no current user / a time zone is missing. |
boolean |
isSameTimezone()
Determine if Timezone is same as server timezone |
void |
translateForTimezone(List<TimeBlock> timeBlocks)
|
List<TimeBlock> |
translateForTimezone(List<TimeBlock> timeBlocks,
org.joda.time.DateTimeZone timezone)
Translate TimeBlocks to a given timezone |
Method Detail |
---|
org.joda.time.DateTimeZone getUserTimezoneWithFallback()
String getUserTimezone()
@Cacheable(value="KPME/Global", key="\'{UserTimezone}\' + \'principalId=\' + #p0") String getUserTimezone(String principalId)
principalId
- The principal you are looking for.
List<TimeBlock> translateForTimezone(List<TimeBlock> timeBlocks, org.joda.time.DateTimeZone timezone)
timeBlocks
- timezone
-
void translateForTimezone(List<TimeBlock> timeBlocks)
boolean isSameTimezone()
long getTimezoneOffsetFromServerTime(org.joda.time.DateTimeZone dtz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |