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

Class ComposeCatalogEntrySummaryTaskCmdImpl

  • java.lang.Object
    • com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntrySummaryTaskCmdImpl
  • All Implemented Interfaces:
    ComposeCatalogEntryTaskCmd, com.ibm.websphere.command.Command, java.io.Serializable


    public class ComposeCatalogEntrySummaryTaskCmdImpl
    extends java.lang.Object
    implements ComposeCatalogEntryTaskCmd
    This compose task command is called from AbstractFetchCatalogEntrySOICmdImpl. It populates the Catalog Entry BOD using CatalogEntryDataBean. Following is the output data for Show Catalog Entry:
    • /CatalogEntry(catalogEntryTypeCode)
    • /CatalogEntry/CatalogEntryIdentifier/UniqueID
    • /CatalogEntry/CatalogEntryIdentifier/ExternalIdentifier(ownerID)
    • /CatalogEntry/CatalogEntryIdentifier/ExternalIdentifier(ownerID)/PartNumber
    • /CatalogEntry/Description(language)/Name
    • /CatalogEntry/Description(language)/ThumbNail
    • /CatalogEntry/Description(language)/ShortDescription
    • /CatalogEntry/ListPrice/Price(currency)
    • /CatalogEntry/ListPrice/Quantity
    • /CatalogEntry/Price/StandardPrice/Price/Price(currency)
    • /CatalogEntry/Price/StandardPrice/Price/Quantity
    • /CatalogEntry/Price/ContractPrice(minimumQuantity)
    • /CatalogEntry/Price/ContractPrice(minimumQuantity)/Price/Price(currency)
    • /CatalogEntry/Price/ContractPrice(minimumQuantity)/Price/Quantity
    • /CatalogEntry/Price/ContractPrice(minimumQuantity)ContractIdentifier/UniqueID
    • /CatalogEntry/Price/ContractPrice(minimumQuantity)ContractIdentifier/UniqueID
    • /CatalogEntry/Price/ContractPrice(minimumQuantity)ContractIdentifier/ExternalIdentifier(majorVersionNumber minorVersionNumber origin ownerID)
    • /CatalogEntry/Price/ContractPrice(minimumQuantity)ContractIdentifier/ExternalIdentifier(majorVersionNumber minorVersionNumber origin ownerID)/Name
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void execute()
      The method contains the actual business logic of this task command.
      CatalogEntryType getCatalogEntry()
      This method retrieves CatalogEntryType.
      boolean isReadyToCallExecute()
      This method is called before calling execute() method to check if a non null object of CatalogEntryDataBean is present which is used to retrieve data required to populate CatalogEntryType.
      void reset()
      This method is used to reset the objects of CatalogEntryDataBean and CatalogEntryType to null value after processing is done.
      void setCatalogEntry(java.util.ArrayList avCataloEntry)
      This method sets CatalogEntryDataBean which is used to populate CatalogEntryType.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComposeCatalogEntrySummaryTaskCmdImpl

        public ComposeCatalogEntrySummaryTaskCmdImpl()
    • Method Detail

      • setCatalogEntry

        public void setCatalogEntry(java.util.ArrayList avCataloEntry)
        This method sets CatalogEntryDataBean which is used to populate CatalogEntryType.
        Specified by:
        setCatalogEntry in interface ComposeCatalogEntryTaskCmd
        Parameters:
        avCataloEntry - an ArrayList containing the catentry data bean.
      • execute

        public void execute()
                     throws com.ibm.websphere.command.CommandException
        The method contains the actual business logic of this task command. It uses CatalogEntryDataBean to populate data in Catalog Entry Show BOD. It calls a series of methods to populate different parts of Catalog Entry Show BOD.
        Specified by:
        execute in interface com.ibm.websphere.command.Command
        Throws:
        com.ibm.websphere.command.CommandException - This exception is raised when a command key is not present in the command registery.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method is called before calling execute() method to check if a non null object of CatalogEntryDataBean is present which is used to retrieve data required to populate CatalogEntryType.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Returns:
        Returns true if object of CatalogEntryDataBean is not null, else returns false.
      • reset

        public void reset()
        This method is used to reset the objects of CatalogEntryDataBean and CatalogEntryType to null value after processing is done.
        Specified by:
        reset in interface com.ibm.websphere.command.Command