|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.hr.time.timezone.service.TimezoneServiceImpl
public class TimezoneServiceImpl
Constructor Summary | |
---|---|
TimezoneServiceImpl()
|
Method Summary | |
---|---|
long |
getTimezoneOffsetFromServerTime(org.joda.time.DateTimeZone dtz)
|
String |
getUserTimezone()
Used to determine if an override condition exists for a user timezone |
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,
String timezone)
Translation needed for UI Display |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimezoneServiceImpl()
Method Detail |
---|
public String getUserTimezone(String principalId)
TimezoneService
getUserTimezone
in interface TimezoneService
principalId
- The principal you are looking for.
public String getUserTimezone()
getUserTimezone
in interface TimezoneService
public org.joda.time.DateTimeZone getUserTimezoneWithFallback()
TimezoneService
getUserTimezoneWithFallback
in interface TimezoneService
public List<TimeBlock> translateForTimezone(List<TimeBlock> timeBlocks, String timezone)
translateForTimezone
in interface TimezoneService
timeBlocks
- timezone
-
public void translateForTimezone(List<TimeBlock> timeBlocks)
translateForTimezone
in interface TimezoneService
public boolean isSameTimezone()
TimezoneService
isSameTimezone
in interface TimezoneService
public long getTimezoneOffsetFromServerTime(org.joda.time.DateTimeZone dtz)
getTimezoneOffsetFromServerTime
in interface TimezoneService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |