com.ibm.commerce.catalog.commands

Interface ResolveSkuCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    ResolveSkuCmdImpl


    public interface ResolveSkuCmd
    extends TaskCommand
    This command resolves a Product and its associated Attributes and attribute values into an orderable Item.

    The input to this command is:

    • ProductID: the ID of the Product that is to be resolved, and
    • AttributeNVPs: a hashtable of ProductAttribute IDs and their associated values that are used to perform the resolution
    The output of the command is:
    • ItemId: the ID of the resolved orderable Item
    • ItemSpecId: the ID of item specification that is associated with the resolved orderable Item
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this interface is "com.ibm.commerce.catalog.commands.ResolveSkuCmd".
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class is "com.ibm.commerce.catalog.commands.ResolveSkuCmdImpl".
        See Also:
        Constant Field Values
    • Method Detail

      • getItemId

        java.lang.Long getItemId()
        Returns the ItemId that represents the primary key of the resolved Item.
        Returns:
        the primary key of the resolved item
      • getItemSpecId

        java.lang.Long getItemSpecId()
        Returns the ItemspecId that represents the primary key of the resolved ItemSpecification. The ItemSpecification is the interface between the Catalog and the rest of the system.
        Returns:
        the primary key of the specified item
      • setAttributeNVPs

        void setAttributeNVPs(java.util.Hashtable ahshAttrNVPs)
        Sets the hashtable that represents the Attribute names and values that will be used to perform the Item resolution.
        Parameters:
        ahshAttrNVPs - a set of name-value pairs that represent the product attribute names and associated values
      • setProductId

        void setProductId(java.lang.Long anProductId)
        Sets the ProductId that represents the primary key of the CatalogEntry that is to be resolved.
        Parameters:
        anProductId - the primary key of the product