Changing access control for a Management Center tool

By default, certain business roles are authorized to use the Management Center. You can assign other roles to the Management Center tools.

About this task

Note: For information about the default roles assigned to each Management Center tool, see IBM Management Center for WebSphere Commerce.

Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
  2. Complete one of the following steps:
    • WebSphere Commerce Version 7.0.0.0Feature Pack 1In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > shell
    • Introduced in Feature Pack 2In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > shell
  3. Open one of the following files:
    OptionDescription
    WebSphere Commerce Version 7.0.0.0Feature Pack 1ApplicationMenuItems.lzx WebSphere Commerce Version 7.0.0.0Feature Pack 1The wcfApplicationMenuItems class defines all the Management Center menu options. For the menu option (tool) you want to change, locate its wcfApplicationMenuItem element in class wcfApplicationMenuItems, and update the usage attribute with the role you want. For example, to change the Catalogs tool from role (IBM_CatalogTool) to another role called IBM_CatalogTool2:
    <wcfApplicationMenuItem
    		id="catalogManagement"
    		width="${parent.width}"
    		...
    		usage="IBM_CatalogTool2"
    		actionName="viewCommandOnSelect();" />
    Introduced in Feature Pack 2ApplicationMenuItems.def Introduced in Feature Pack 2The wcfApplicationMenuItems definition defines all the Management Center menu options. For the menu option (tool) you want to change, locate its wcfApplicationMenuItem element and update the usage attribute with the role you want. For example, to change the Catalogs tool from role (IBM_CatalogTool) to another role called IBM_CatalogTool2:
    <ApplicationMenuItem actionName="openBusinessObjectEditor"
    	activeIconSrc="catalogActiveTabIcon"
    	displayName="${shellResourceBundle.catalogManagementDisplayName}"
    	id="catalogManagement" inactiveIconSrc="catalogInactiveTabIcon"
    	toolDefinitionName="catCatalogManagement" usage="IBM_CatalogTool2"/>
  4. Associate your Management Center customization with the WebSphere Commerce Server side; that is, map the usage you defined above to the access control for business users on the WebSphere Commerce Server. To do this, you must extend the appropriate XML file within the WebSphere Commerce Server. For details, refer to Access control in the BOD command framework.

What to do next

After you complete your customization:
Version Steps
  1. Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This setting is the default environment setting.
  2. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  3. Deploy your changes to your production environment.
Introduced in Feature Pack 2
  1. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  2. Deploy your changes to your production environment.