Tutorials > Management Center > Add a Recipes tool to the Management Center

< Previous | Next >


Create a new user with the Recipe Manager role to access the Recipes tool

The Recipes tool is accessed only by users with Recipe Manager role. In this lesson, we will create a new user and assign the Recipe Manager role to the user.


Procedure

  1. Create a user in the Organization Administration Console with the following properties:

  2. Assign the "Recipe Manager" from the organization "Extended Sites Organization Sample Store (Recipe Tutorial)" to the new user you created.

  3. Navigate to WCDE_INSTALL\workspace_dir\WC\xml\config. Create a new directory called com.ibm.commerce.infrastructure-ext.

  4. Download the wc-component.xml file (by right-clicking the link and clicking Save Link As) and copy it to the newly created directory.

  5. Open the wc-component.xml file. The file contains the following sample XML code:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <_config:DevelopmentComponentConfiguration
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config"
        xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-component.xsd ">
    
        <_config:valuemappingservice>
            <_config:valuemapping externalName="StoreType"
                internalName="StoreType">
                <!-- Map tool type to STORE.STORETYPE in database -->
                <_config:valuemap externalValue="MyCompany_RecipeTool" internalValue="B2C, B2B, BBB, MPS, BMP, MHS, BMH, CPS" />
           
    </_config:valuemapping>
    
            <_config:valuemapping externalName="RoleType"
                internalName="RoleType">
                
                <!-- Basic B2C -->
                <_config:valuemap externalValue="B2C"
                    internalValue="-9,-4,-8,-16,-13,-1,10001" />
    
                <!-- Basic B2B -->
                <_config:valuemap externalValue="BBB"
                    internalValue="-9,-4,-8,-16,-13,-1, 10001" />
    
                <!-- Advanced B2B Direct -->
                <_config:valuemap externalValue="B2B"
                    internalValue="-19,-18,-9,-4,-17,-8,-16,-13,-1, 10001" />
    
                <!-- Extended Site Model -->
                <_config:valuemap externalValue="MPS"
                    internalValue="-9,-1,10001" />
                <_config:valuemap externalValue="BMP"
                    internalValue="-19, -18, -9,-1,10001" />
                <_config:valuemap externalValue="MHS"
                    internalValue="-9,-4,-8,-16,-13,-1,10001" />
                <_config:valuemap externalValue="BMH"
                    internalValue="-19,-18,-9,-4,-17,-8,-16,-13,-1,10001" />
                <_config:valuemap externalValue="CPS"
                    internalValue="-16,-1,10001" />
                    
    
            </_config:valuemapping>
        </_config:valuemappingservice>
    
    </_config:DevelopmentComponentConfiguration>
    

    There two main purposes of the customization of this configuration file are:

    • To map the new tool to store types. The new tool is represented by externalValue="MyCompany_RecipeTool", which is used when adding the new tool to the Management Center. The store types mapped with the new tool include B2B, B2C, and the Extended Site Model stores, which means that the new tool can be used with these stores.

    • To map the store to the role types. You need to add the new role, the Recipe Manager role, to the store types configuration. In the line

      <_config:valuemap externalValue="B2C" internalValue="-9,-4,-8,-16,-13,-1,10001" />
      

      10001 is the ROLE_ID for the Recipe Manager.

  6. Double check the values in the database with the following SQL statement and replace 10001 with the correct recipe manager role ID in the system.

    select role_id, name from role;
    

< Previous | Next >


+

Search Tips   |   Advanced Search