This class represents a site in Commerce Cloud Digital and provides access to
several site-level configuration values which are managed from within the
Business Manager. It is only possible to get a reference to the current site
as determined by the current request. The static method
getCurrent() returns a reference to the current site.
Whether oms is active in the current site. This depends on a general
property which states whether oms is active for the server,
and a site-dependent preference whether oms is available for the current site.
Returns the Einstein site Id. Typically this is a concatenation of the realm, underscore character and the site id.
It can be overwritten by support users to help with realm moves to continue using the Einstein data from the old realm.
Used when making calls to the Einstein APIs.
Returns the configured HTTPS host name. If no host name
is configured the method returns the HTTP host name or the instance hostname, if
that is not configured as well.
Returns a custom preference value. If the preference does not exist the
method returns null. This method is simply a shortcut method for
accessing the value for a custom attribute defined on the
SitePreferences object.
Returns the Einstein site Id. Typically this is a concatenation of the realm, underscore character and the site id.
It can be overwritten by support users to help with realm moves to continue using the Einstein data from the old realm.
Used when making calls to the Einstein APIs.
Returns the configured HTTPS host name. If no host name
is configured the method returns the HTTP host name or the instance hostname, if
that is not configured as well.
Returns:
the configured HTTPS host name or HTTP host name or the instance hostname.
The meta tag content is generated based on the home page meta tag context and rule.
The rule is obtained from the current repository domain.
Null will be returned if the meta tag is undefined on the current instance, or if no rule can be found for the
current context, or if the rule resolves to an empty string.
Parameters:
id - the ID to get the page meta tag for
Returns:
page meta tag containing content generated based on rules
Whether oms is active in the current site. This depends on a general
property which states whether oms is active for the server,
and a site-dependent preference whether oms is available for the current site.