To specify a default preview user and, in a multisite environment, a default site to preview, you must create a PreviewManager component:

Create PreviewManager components from this class:

atg.remote.commerce.assetmanager.preview.service.MerchandisingPreviewService

This component includes the following properties:

Property

Description

defaultPreviewUserId

The ID of the default preview user. If this property is not set, the default preview user is an anonymous user.

defaultPreviewSiteId

The site ID of the default preview site in a multisite environment. If this property is not set, the default preview site is the first site in the ordered list of sites.

The default preview user and site are used when a Merchandising user does either of the following:

For example:

# /atg/dynamo/service/preview/PreviewManager.properties
$class=atg.remote.commerce.assetmanager.preview.service.
MerchandisingPreviewService
# Explicitly sets the document.domain property in both the BCC page
# and the preview page to "oracle.com"
previewDomain=oracle.com
# Sets the default preview user to Adrian Robinson (user ID se-570085)
defaultPreviewUserId=/se-570085
# Sets the default preview site to ATG Store
defaultPreviewSiteId=/storeSiteUS

Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices