If you are not going to use the Giftlists repository, you can disable it. This repository is represented by the /atg/commerce/gifts/Giftlist component. Disabling this repository prevents you from having to create the associated tables in your database.

Perform the following steps to disable the Giftlists repository:

  1. Edit the /atg/registry/ContentRepositories component and remove the value in the initialRepositories property that references the /atg/commerce/gifts/Giftlist component. For more information, see the Configuring the SQL Repository Component section of the SQL Repository Reference chapter in the Repository Guide.

  2. Edit the /atg/commerce/gifts/GiftlistTools component and set the giftlistRepository property to null.

  3. Optionally, edit the userProfile.xml file and remove properties that reference items in the Giftlists repository. The userProfile.xml file is located in the Core Commerce configuration layer. Remove the following lines:

    <!-- key into private wishlist -->
    <table name="dcs_user_wishlist" type="auxiliary"
    id-column-name="user_id">
      <property category="Commerce - Lists" name="wishlist"
                item-type="gift-list"
                repository="/atg/commerce/gifts/Giftlists"
                column-name="giftlist_id"cascade="insert,update,delete"
                display-name="Wish list"/>
    </table>
    <!-- key into user created giftlists -->
    <table name="dcs_user_giftlist" type="multi"
    id-column-name="user_id" multi-column-name="sequence_num">
      <property category="Commerce - Lists" name="giftlists"
                data-type="list" component-item-type="gift-list"
                repository="/atg/commerce/gifts/Giftlists"
                column-name="giftlist_id" display-name="Gift list"/>
    </table>
    <!-- key into giftlists found for other customers -->
    <table name="dcs_user_otherlist" type="multi"
    id-column-name="user_id" multi-column-name="sequence_num">
      <property category="Commerce - Lists" name="otherGiftlists"
                data-type="list" component-item-type="gift-list"
                repository="/atg/commerce/gifts/Giftlists"
                column-name="giftlist_id"
                display-name="Other gift lists"/>
    </table>

  4. Remove the updateGiftRepository and sendGiftPurchased processors from the Core Commerce pipeline. These processors are found in the processOrder pipeline chain. After these entries have been removed from the chain definition, create a link from the authorizePayment processor to the addOrderToRepository processor.


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