public interface TimezoneService
Modifier and Type | Method and Description |
---|---|
String |
getApproverTimezone(String principalId)
Fetch the time zone of the approver.
|
String |
getTargetUserTimezone()
Fetch the id of the time zone of the current target user.
|
org.joda.time.DateTimeZone |
getTargetUserTimezoneWithFallback()
Fetch the time zone of the current target user.
|
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
|
org.joda.time.DateTimeZone getUserTimezoneWithFallback()
String getUserTimezone()
@Cacheable(value="http://kpme.kuali.org/core/Global", key="\'{UserTimezone}\' + \'principalId=\' + #p0") String getUserTimezone(String principalId)
principalId
- The principal you are looking for.boolean isSameTimezone()
String getApproverTimezone(String principalId)
principalId
- The principal id for the approverorg.joda.time.DateTimeZone getTargetUserTimezoneWithFallback()
String getTargetUserTimezone()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.