Personalizar el servicio de HCL Commerce getEntitledPrice
Puede personalizar el servicio GetEntitledPrice para crear nuevas clases de mandatos para anular los mandatos proporcionados.
Antes de empezar
Por qué y cuándo se efectúa esta tarea
Para personalizar el servicio GetEntitledPrice:
Procedimiento
- Abra el desarrollador de HCL Commerce.
- Abra la perspectiva EE de Java™.
- Busque los mandatos que quiera sustituir.
- Defina los nuevos mandatos.
Interface nombre Nombre de la clase '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=]] y ContractIdentifier[UniqueID=] y UnitPrice[Price[@currency=] y (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=] y UnitPrice[Price[@currency=] y (Quantity= and Quantity[@uom=])] y VP=)]' 'com.mycompany.commerce.price.facade.server.commands. ExtFetchEntitledPriceByCatentryIdCmdImpl' 'com.ibm.commerce.price.facade.server.commands.FetchEntitledPriceCmd+/EntitledPrice[(CatalogEntryIdentifier[ExternalIdentifier[PartNumber=]] y UnitPrice[Price[@currency=] y (Quantity= and Quantity[@uom=])] y VP=)]' 'com.mycompany.commerce.price.facade.server.commands. ExtFetchEntitledPriceByPartNumberCmdImpl' - Expanda el proyecto WebSphereCommerceServerExtensionsLogic bajo src. Cree un paquete y asígnele un nombre com.mycompany.commerce.price.facade.server.commands.
- Importe el código fuente.
- Pulse el botón derecho del ratón en el paquete com.mycompany.commerce.price.facade.server.commands.
- Pulse Importar>General>Sistema de archivos>Siguiente.
- Vaya a la ubicación temporal donde ha descomprimido CustomizeGetEntitledPrice.zip y vaya al subdirectorio WebSphereCommerceServerExtensionsLogic\src\com\mycompany\commerce\price\facade\server\commands.
- Seleccione todos los archivos y pulse Finalizar. Pulse Sí a todos para sobrescribir los archivos existentes.
- Organice las importaciones del proyecto WebSphereCommerceServerExtensionsLogic:
- Abra la perspectiva Java™ en HCL Commerce Developer.
- Expanda el proyecto WebSphereCommerceServerExtensionsLogic y pulse src con el botón derecho del ratón.
- Pulse Origen>Organizar importaciones.
- Añada nuevas configuraciones para dar soporte al nuevo parámetro de
punto de valor
. Las configuraciones para dar soporte al nuevo parámetro son necesarias cuando el usuario utilizaO
para combinar varias condiciones en una solicitud.