Develop > Business logic layer > Workspaces support for BOD service modules > Change control metadata for business objects in workspaces > Enable workspaces support for a custom table in an existing WebSphere Commerce BOD service module


Include change control information in the response of a Get service

The Get request access profile determines whether change control information is returned as part of the response. The InsertMoreData command registration point registers a generic implementation that uses the business object mediator to resolve and include change control information.

This task enables you to include change control information in the response of a Get service.

To include change control information in the response of a Get service:


Procedure

  1. Identify the InsertMoreData command interface name that the service implementation uses to resolve the command implementations to include additional information in the Show response. Typically the InsertMore command interface is in the same Java package as the GetNounNameCmd interface with a class name of InsertMoreNounNameDataCmd.

    For example, the InsertMore command interface for the CatalogEntry noun is...

    com.ibm.commerce.catalog.facade.server.commands.InsertMoreCatalogEntryDataCmd

  2. Identify the access profile in which to include change control metadata.

    Typically, the access profile is an access profile used for authoring purposes. The naming convention is IBM_Admin_Details.

    To identify the access profile, see the Get expression used by the authoring JSP file.

  3. Create an entry in the CMDREG table that registers the InsertMore command identified in step 1 with the access profile identified in step 2 to call the generic InsertMore to include the change control metadata with the response.

    The following sample registration statement registers the InsertMore change control metadata for CatalogEntry Get requests when the access profile is IBM_Admin_Details.

    insert into cmdreg (storeent_id, interfacename, classname, target) values (0, 'com.ibm.commerce.catalog.facade.server.commands.InsertMoreCatalogEntryDataCmd+IBM_Admin_Details.0', 'com.ibm.commerce.foundation.server.command.bod.bom.InsertMoreNounChangeControlMetaDataCmdImpl', 'Local');

    Because multiple InsertMore commands can be registered for the same access profile, the .index notation is used to allow for more than one InsertMore command to run and the order is based on the registered index.


Related concepts

Workspaces support for BOD service modules
Use authoring access profiles with workspaces
Workspaces support and the Business Context Service
Change control metadata for business objects in workspaces
Call a service with a workspace context from a Java based client or JUnit testcase
Change control metadata structure for business objects
Business context service parameters for business object documents


+

Search Tips   |   Advanced Search