Personnalisation du service HCL Commerce getEntitledPrice
Vous pouvez personnaliser le service GetEntitledPrice pour créer de nouvelles classes de commandes pour remplacer les commandes fournies.
Avant de commencer
Pourquoi et quand exécuter cette tâche
Pour personnaliser le service GetEntitledPrice :
Procédure
- Ouvrez HCL Commerce Developer.
- Ouverture de la perspective Java™ EE
- Trouvez les commandes qui doivent être remplacées.
- Définissez les nouvelles commandes.
Nom de l'interface Nom de classe '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' - Développez le projet WebSphereCommerceServerExtensionsLogic sous src. Créer un package et le nommer com.mycompany.commerce.price.facade.server.commands.
- Importer le code source.
- Cliquez avec le bouton droit de la souris sur le module com.mycompany.commerce.price.facade.server.commands.
- Cliquez sur Importer>Général>Système de fichiers>Suivant.
- Accédez à l'emplacement temporaire où vous avez décompressé CustomizeGetEntitledPrice.zip et accédez au sous-répertoire WebSphereCommerceServerExtensionsLogic\src\com\mycompany\commerce\price\facade\server\commands.
- Choisissez tous les fichiers et cliquez sur Terminer. Cliquez sur Oui pour tout pour remplacer les fichiers existants.
- Organisez les importations pour le projet WebSphereCommerceServerExtensionsLogic.
- Ouvrez la perspective Java™ dans HCL Commerce Developer.
- Développez le projet WebSphereCommerceServerExtensionsLogc, cliquez à droite sur src.
- Cliquez sur Source>Organiser les importations.
- Ajoutez de nouvelles configurations pour prendre en charge le nouveau paramètre de
point de valeur
. Les configurations pour prendre en charge le nouveau paramètre sont requises lorsque l'utilisateur utiliseOR
pour combiner plusieurs conditions dans une seule demande.