Package com.appiancorp.suiteapi.portal
Class SiteTimeZoneSettings
java.lang.Object
com.appiancorp.suiteapi.portal.SiteTimeZoneSettings
- All Implemented Interfaces:
Serializable
Bean to hold the application timezone settings.
- See Also:
-
Constructor Summary
ConstructorDescriptionSiteTimeZoneSettings
(SiteTimeZoneSettings siteTimeZoneSettings) Create copy of SiteTimeZoneSettings object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
void
setPrimaryTimeZone
(TimeZone primaryTimeZone_) Set the primary timezone.void
setSitewideTimeZone
(boolean sitewideTimeZone_) Set whether the primary timezone should be enforced accross the application.
-
Constructor Details
-
SiteTimeZoneSettings
public SiteTimeZoneSettings() -
SiteTimeZoneSettings
Create copy of SiteTimeZoneSettings object. Used to ensure that the object stored in the cache is not directly modified.- Parameters:
siteTimeZoneSettings
- Time Zone Settings to create a clone of.
-
-
Method Details
-
getPrimaryTimeZone
-
setPrimaryTimeZone
Set the primary timezone.- Parameters:
primaryTimeZone_
- A timezone.
-
isSitewideTimeZone
public boolean isSitewideTimeZone() -
setSitewideTimeZone
public void setSitewideTimeZone(boolean sitewideTimeZone_) Set whether the primary timezone should be enforced accross the application.- Parameters:
sitewideTimeZone_
-true
if a single timezone (the primary timezone) should be used accross the application (overriding any user preferences), orfalse
if users are allowed to select a timezone different from the primary timezone.
-
hashCode
public int hashCode() -
equals
-