Like the assetManager.defaultBrowse
activity, the assetManager.defaultEdit
activity provides general settings to activities that let users view and edit nonversionable items in the ATG Business Control Center.
The following tags specify the activity and its relationship to others:
<activity id="assetManager.defaultEdit" inherit-from="assetManager.defaultBrowse">
The first attribute in this tag identifies the resource for which all settings enclosed in the <activity>
tag will apply. The second attribute indicates the resource from which this activity inherits settings. Because assetManager.defaultBrowse
is specified, settings defined by the <default-activity>
tag act as the baseline, then tags provided by assetManager.defaultBrowse
add new values and have the opportunity to overwrite settings provided by the <default-activity>
tag (none do). Tags supplied by assetManager.defaultEdit
then contribute additional settings, which are described below. These tags are designed to overwrite the view-only restriction of the view mapping tags in the assetManager.defaultBrowse
activity:
<view-mappings> <view-mapping mode="AssetManager.edit" combine="replace"> <item-mapping> <item-type>*</item-type> <item-mapping-name>AssetManager</item-mapping-name> </item-mapping> </view-mapping> <view-mapping mode="AssetManager.multiEdit" combine="replace"> <item-mapping> <item-type>*</item-type> <item-mapping-name>AssetManager</item-mapping-name> </item-mapping> </view-mapping> </view-mappings> </activity>
In order to determine the item properties to display, the JSP specifies a view mapping mode based on the whether a project is present and editable (AssetManager.edit
), or is not present or in a view-only state (AssetManager.view
). The view mapping settings provided for assetManager.defaultBrowse
are used in all cases except when the JSP recommends AssetManager.edit
or AssetManager.multiEdit
modes, in which the input mode is also the output mode as specified by the code above. The tags here replace the tags for AssetManager.edit
and AssetManager.multiEdit
modes in the assetManager.defaultBrowse
activity because this activity is designed to provide edit-access to the ATG Business Control Center for items that are nonversionable.