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, setUpdated
public 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
- StringInvalidConfigurationException
public final int setTimeZoneOffset(int offset) throws InvalidConfigurationException
offset
- intInvalidConfigurationException
Copyright © 2005–2017 Alfresco Software. All rights reserved.