Customizing the HCL Commerce getEntitledPrice service
You can customize the GetEntitledPrice service to create new command classes to override the supplied commands.
Before you begin
About this task
To customize the GetEntitledPrice service:
Procedure
- Open the HCL Commerce Developer.
- Open the Java™ EE perspective.
- Find the commands that must be overridden.
- Define the new commands.
Interface name Class name 'com.ibm.commerce.price.facade.server.commands.FetchEntitledPriceCmd+/EntitledPrice[(CatalogEntryIdentifier[UniqueID=] and ContractIdentifier[UniqueID=] and UnitPrice[Price[@currency=] and (Quantity= and Quantity[@uom=])] and VP=)]' 'com.mycompany.commerce.price.facade.server.commands. ExtFetchEntitledPriceByContractAndCatentryIdCmdImpl' 'com.ibm.commerce.price.facade.server.commands.FetchEntitledPriceCmd+/EntitledPrice[(CatalogEntryIdentifier[ExternalIdentifier[PartNumber=]] and ContractIdentifier[UniqueID=] and UnitPrice[Price[@currency=] and (Quantity= and Quantity[@uom=])] and VP=)]' 'com.mycompany.commerce.price.facade.server.commands. ExtFetchEntitledPriceByContractAndPartNumberCmdImpl' 'com.ibm.commerce.price.facade.server.commands.FetchEntitledPriceCmd+/EntitledPrice[(CatalogEntryIdentifier[UniqueID=] and UnitPrice[Price[@currency=] and (Quantity= and Quantity[@uom=])] and VP=)]' 'com.mycompany.commerce.price.facade.server.commands. ExtFetchEntitledPriceByCatentryIdCmdImpl' 'com.ibm.commerce.price.facade.server.commands.FetchEntitledPriceCmd+/EntitledPrice[(CatalogEntryIdentifier[ExternalIdentifier[PartNumber=]] and UnitPrice[Price[@currency=] and (Quantity= and Quantity[@uom=])] and VP=)]' 'com.mycompany.commerce.price.facade.server.commands. ExtFetchEntitledPriceByPartNumberCmdImpl' - Expand the project WebSphereCommerceServerExtensionsLogic under src. Create a package, and name it com.mycompany.commerce.price.facade.server.commands.
- Import the source code.
- Right-click the com.mycompany.commerce.price.facade.server.commands package.
- Click Import>General>File System>Next.
- Go to the temporary location where you unzipped CustomizeGetEntitledPrice.zip, and navigate to the subdirectory WebSphereCommerceServerExtensionsLogic\src\com\mycompany\commerce\price\facade\server\commands.
- Choose all files and click Finish. Click Yes to All to overwrite any existing files.
- Organize the imports for the WebsphereCommerceServerExtensionsLogic
project:
- Open the Java™ perspective in the HCL Commerce Developer.
- Expand the WebSphereCommerceServerExtensionsLogc project, right click src.
- Click Source>Organize Imports.
- Add new configurations to support the new
value point
parameter. The configurations to support the new parameter are required when the user usesOR
to combine multiple conditions in one request.