Class System
Represents the Commerce Cloud Digital server instance. An application server instance is configured to be of one of three types, "development system", "staging system" or "production system".
| Constant | Description |
|---|---|
| DEVELOPMENT_SYSTEM: Number = 0 | Represents the development system. |
| PRODUCTION_SYSTEM: Number = 2 | Represents the production system. |
| STAGING_SYSTEM: Number = 1 | Represents the staging system. |
| Property | Description |
|---|---|
calendar: Calendar (read-only) | Returns a new Calendar object in the time zone of the current instance. |
compatibilityMode: Number (read-only) | Returns the compatibility mode of the custom code version that is currently active. |
instanceHostname: String (read-only) | Returns instance hostname. |
instanceTimeZone: String (read-only) | Returns the instance time zone. |
instanceType: Number (read-only) | Returns the type of the instance. |
preferences: OrganizationPreferences (read-only) | This method returns a container of all global preferences of this organization (instance). |
This class does not have a constructor, so you cannot create it directly.
| Method | Description |
|---|---|
| static getCalendar() | Returns a new Calendar object in the time zone of the current instance. |
| static getCompatibilityMode() | Returns the compatibility mode of the custom code version that is currently active. |
| static getInstanceHostname() | Returns instance hostname. |
| static getInstanceTimeZone() | Returns the instance time zone. |
| static getInstanceType() | Returns the type of the instance. |
| static getPreferences() | This method returns a container of all global preferences of this organization (instance). |
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- DEVELOPMENT_SYSTEM: Number = 0
Represents the development system.
- PRODUCTION_SYSTEM: Number = 2
Represents the production system.
- STAGING_SYSTEM: Number = 1
Represents the staging system.
- calendar: Calendar
(read-only) Returns a new Calendar object in the time zone of the current instance.
- compatibilityMode: Number
(read-only) 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.
- instanceHostname: String
(read-only) Returns instance hostname.
- instanceTimeZone: String
(read-only) 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.
- instanceType: Number
(read-only) 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.
See Also:
- preferences: OrganizationPreferences
(read-only) This method returns a container of all global preferences of this organization (instance).
- static getCalendar(): Calendar
Returns a new Calendar object in the time zone of the current instance.
Returns:
- a Calendar object in the time zone of the instance.
- 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.
- static getInstanceHostname(): String
Returns instance hostname.
Returns:
- instance hostname.
- 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.
- 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.
See Also:
- static getPreferences(): OrganizationPreferences
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