getCalendar
Returns a new Calendar object in the time zone of the
current instance.
Returns:
a Calendar object in the time zone of the instance.
getCompatibilityMode
static
getCompatibilityMode()
:
Number
Returns the compatibility mode of the custom code version that is currently active. The compatibility mode is
returned as a number, e.g. compatibility mode "15.5" is returned as 1505.
Returns:
The currently active compatibility mode.
getInstanceHostname
static
getInstanceHostname()
:
String
Returns instance hostname.
Returns:
instance hostname.
getInstanceTimeZone
static
getInstanceTimeZone()
:
String
Returns the instance time zone. The instance time zone is the time zone in which global actions like jobs or
reporting are specified in the system. Keep in mind that the instance time zone is cached at the current session.
Changes will affect only new sessions.
Returns:
the instance time zone.
getInstanceType
static
getInstanceType()
:
Number
Returns the type of the instance. An application server instance is configured to be of one of three types,
"development system", "staging system" or "production system".
This method returns a constant representing the instance type of this
application server.
Returns:
the instance type of the application server where this method was called.
getPreferences
This method returns a container of all global preferences of this
organization (instance).
Returns:
a preferences object containing all global system and custom preferences of this instance