Including 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.
About this task
Procedure
To include change control information in the response of a Get
service:
-
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. - 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.
-
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');
Note: 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.