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, setUpdated
public 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
- StringInvalidConfigurationException
public final int setTimeZoneOffset(int offset) throws InvalidConfigurationException
offset
- intInvalidConfigurationException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.