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
Support
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
- Update wc-business-object-mediator.xml to
enable
SupportMultipleValuesForADAttributes
.
- In the Enterprise Explorer view, navigate to the folder.
- Open wc-business-object-mediator.xml for
editing.
- 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>
Note: The value of
SupportMultipleValuesForADAttributes
is now
true
by default.
- 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>
- 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>
Note: The value of
SupportMultipleValuesForADAttributes
is now
true
by default.
- 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>
- Save your changes and close the file.
- Update the wc-loader-catalog-entry-AD-attribute-relationship.xml file
to enable multiple value support:
- In the Enterprise Explorer view, navigate to .
- Open wc-loader-catalog-entry-AD-attribute-relationship.xml for
editing.
- 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>
Note: The value of
SupportMultipleValuesForADAttributes
is now
true
by default.
- 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>
- 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.