public class GlobalConfigSection extends ConfigSection
| Modifier and Type | Field and Description |
|---|---|
static String |
SectionName |
| Constructor and Description |
|---|
GlobalConfigSection(ServerConfiguration config)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTimeZone()
Return the timezone name
|
int |
getTimeZoneOffset()
Return the timezone offset from UTC in seconds
|
int |
setTimeZone(String name)
Set the server timezone name
|
int |
setTimeZoneOffset(int offset)
Set the timezone offset from UTC in seconds (+/-)
|
closeConfig, fireConfigurationChange, getSectionName, getServerConfiguration, isUpdated, setUpdatedpublic static final String SectionName
public GlobalConfigSection(ServerConfiguration config)
config - ServerConfigurationpublic final String getTimeZone()
public final int getTimeZoneOffset()
public final int setTimeZone(String name) throws InvalidConfigurationException
name - StringInvalidConfigurationExceptionpublic final int setTimeZoneOffset(int offset)
throws InvalidConfigurationException
offset - intInvalidConfigurationExceptionCopyright © 2005–2020 Alfresco Software. All rights reserved.