Update the write usage of the object definition with the new usage

In this lesson, you change the writeUsage value to use the new write usage in the object definition of the primary object.

About this task

For this tutorial, the primary object definition for search term associations in the Catalogs tool is BaseSearchTermAssociationsPrimaryObjectDefinition.

Procedure

  1. Open HCL Commerce Developer.
  2. In the Enterprise Explorer view, navigate to LOBTools > WebContent > WEB-INF > src > xml > commerce > catalog > objectDefinitions.
  3. Open the SearchTermAssociationsPrimaryObjectDefinition.xml file for editing.
  4. Locate the writeUsage parameter by searching for the following code.
    The code resembles the following code block:
    
    <PrimaryObjectDefinition definitionName="cmc/catalog/BaseSearchTermAssociationsPrimaryObjectDefinition" 
     displayName="${catalogResources.SearchTermAssociations}" displayNameProperty="name" 
     headerIcon="searchTermAssociationsHeaderIcon" helpLink="concepts/cpnsearchass.htm" icon="searchTermAssociationsIcon" 
     idProperty="catalogId" isBaseDefinition="true" propertiesDefinition="cmc/catalog/SearchTermAssociationsProperties" 
     searchType="FindSearchTermAssociations" writeUsage="IBM_ManageCatalog">
  5. Change the writeUsage parameter to EXT_ManagerSearchTermAssociation so that the code resembles the following code block.
    
    <PrimaryObjectDefinition definitionName="cmc/catalog/BaseSearchTermAssociationsPrimaryObjectDefinition" 
     displayName="${catalogResources.SearchTermAssociations}" displayNameProperty="name" 
     headerIcon="searchTermAssociationsHeaderIcon" helpLink="concepts/cpnsearchass.htm" icon="searchTermAssociationsIcon" 
     idProperty="catalogId" isBaseDefinition="true" propertiesDefinition="cmc/catalog/SearchTermAssociationsProperties" 
     searchType="FindSearchTermAssociations" writeUsage="EXT_ManageSearchTermAssociation">