public class GlobalConfigSection extends ConfigSection
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SectionName |
| Constructor and Description |
|---|
GlobalConfigSection(ServerConfiguration config)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getTimeZone()
Return the timezone name
|
int |
getTimeZoneOffset()
Return the timezone offset from UTC in seconds
|
int |
setTimeZone(java.lang.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 java.lang.String SectionName
public GlobalConfigSection(ServerConfiguration config)
config - ServerConfigurationpublic final java.lang.String getTimeZone()
public final int getTimeZoneOffset()
public final int setTimeZone(java.lang.String name)
throws InvalidConfigurationException
name - StringInvalidConfigurationExceptionpublic final int setTimeZoneOffset(int offset)
throws InvalidConfigurationException
offset - intInvalidConfigurationExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.