Feature Pack 3Feature Pack 2Feature Pack 4

Enabling the support of multiple values for attribute dictionary attributes

In this lesson, you can modify the configuration of catalog upload and Data Load utility to turn on the support for multiple values for attribute dictionary attributes.

About this task

Feature Pack 5Support for adding multiple values for a category entry attribute dictionary descriptive attribute is provided by default. The customization that is described in this tutorial is no longer required if you publish the Aurora starter store or the starter store enhancements for your store.

Procedure

  1. Update wc-business-object-mediator.xml to enable SupportMultipleValuesForADAttributes.
    1. In the Enterprise Explorer view, navigate to the WC > xml > config > com.ibm.commerce.catalog folder.
    2. Open wc-business-object-mediator.xml for editing.
    3. Locate the following code:
      <_config:object logicalType="com.ibm.commerce.catalog.facade.datatypes.CatalogEntryType" physicalType="com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntry">
       <_config:mediator
       interfaceName="com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.ReadBusinessObjectMediator"
       className="com.ibm.commerce.catalog.facade.server.services.dataaccess.bom.mediator.ReadCatalogEntryMediator">
        <_config:mediator-properties>
         <_config:mediator-property name="Attributes/SupportMultipleValuesForADAttributes" value="false"/>
        </_config:mediator-properties>
      Feature Pack 5Note: The value of SupportMultipleValuesForADAttributes is now true by default.
    4. Change the value of SupportMultipleValuesForADAttributes from false to true.
      <_config:object logicalType="com.ibm.commerce.catalog.facade.datatypes.CatalogEntryType" physicalType="com.ibm.commerce.catalog.facade.server.entity.datatypes.CatalogEntry">
       <_config:mediator
       interfaceName="com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.ReadBusinessObjectMediator"
       className="com.ibm.commerce.catalog.facade.server.services.dataaccess.bom.mediator.ReadCatalogEntryMediator">
        <_config:mediator-properties>
         <_config:mediator-property name="Attributes/SupportMultipleValuesForADAttributes" value="true"/>
        </_config:mediator-properties>
    5. Locate the following code:
      <_config:mediator
       interfaceName="com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.ChangeBusinessObjectMediator"
       className="com.ibm.commerce.catalog.facade.server.services.dataaccess.bom.mediator.ChangeCatalogEntryMediator" updateAccessProfile="IBM_Admin_CatalogEntryUpdate">
       <_config:mediator-properties>
        <_config:mediator-property name="Attributes/SupportMultipleValuesForADAttributes" value="false"/>
       </_config:mediator-properties>
      Feature Pack 5Note: The value of SupportMultipleValuesForADAttributes is now true by default.
    6. Change the value of SupportMultipleValuesForADAttributes from false to true.
      	<_config:mediator
       interfaceName="com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.ChangeBusinessObjectMediator"
       className="com.ibm.commerce.catalog.facade.server.services.dataaccess.bom.mediator.ChangeCatalogEntryMediator" updateAccessProfile="IBM_Admin_CatalogEntryUpdate">
       <_config:mediator-properties>
        <_config:mediator-property name="Attributes/SupportMultipleValuesForADAttributes" value="true"/>
       </_config:mediator-properties>
    7. Save your changes and close the file.
  2. Update the wc-loader-catalog-entry-AD-attribute-relationship.xml file to enable multiple value support:
    1. In the Enterprise Explorer view, navigate to WC > xml > config > com.ibm.commerce.catalog > dataload.
    2. Open wc-loader-catalog-entry-AD-attribute-relationship.xml for editing.
    3. Locate the following code:
      <_config:BusinessObjectMediator className="com.ibm.commerce.catalog.dataload.mediator.CatalogEntryAttributeDictionaryAttributeMediator" componentId="com.ibm.commerce.catalog" >
       <_config:property name="supportMultipleValuesForADAttributes" value="false" />
       <_config:property name="attributeValueValidation" value="false" />
      </_config:BusinessObjectMediator>
      Feature Pack 5Note: The value of SupportMultipleValuesForADAttributes is now true by default.
    4. Change the value of supportMultipleValuesForADAttributes from false to true.
      <_config:BusinessObjectMediator className="com.ibm.commerce.catalog.dataload.mediator.CatalogEntryAttributeDictionaryAttributeMediator" componentId="com.ibm.commerce.catalog" >
       <_config:property name="supportMultipleValuesForADAttributes" value="true" />
       <_config:property name="attributeValueValidation" value="false" />
      </_config:BusinessObjectMediator>
    5. Save your changes and close the file.

Results

The configuration of catalog upload and the Data Load utility is modified to turn on the support for multiple values for attribute dictionary attributes. You can use catalog upload or the data load utility to import attribute dictionary data with multiple values into your WebSphere Commerce database. Continue to the next lesson to import the multiple value attribute data.