com.ibm.commerce.tools.catalog.commands

Class ProductNotebookUpdateImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ProductNotebookUpdate, ToolsControllerCommand, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ProductNotebookUpdateImpl
    extends ToolsControllerCommandImpl
    implements ProductNotebookUpdate
    The controller command ProductNotebookUpdate allows you to update the different characteristics of a product. This command is used by the product notebook in the tooling. A sample of the hashtable (string representation) used by this command is as follows:
     
     {
            XML=
            {
                    details=
                    {
                            lastOrderMonth=10,
                            endOfServiceDay=01,
                            endDay=31,
                            type=ProductBean,
                            endOfServiceMonth=10,
                            lastOrderYear=2006,
                            lastOrderDay=31,
                            discontinueYear=2006,
                            discontinueDay=31,
                            endYear=2006,
                            availabilityYear=2006,
                            buyable=true,
                            startDay=01,
                            sku=prod111_required,
                            endOfServiceYear=2006,
                            availabilityDay=01,
                            startYear=2006,
                            endMonth=10,
                            oldSKU=prod111_required,
                            startMonth=10,
                            published=true,
                            availabilityMonth=10,
                            memberid=7000000000000000101,
                            discontinueMonth=10,
                            name=prod111namerequired
                    },
                    storeitem=
                    {
                            forcebackorder=N,
                            trackinventory=Y,
                            backorderable=Y,
                            creditable=Y,
                            quantitymeasure=C62,
                            quantitymultiple=1,
                            releaseseparately=N,
                            langid=-1,
                            returnnotdesired=N
                    },
                    productcategory=
                    {
                            old_categoryId=58851,
                            category_id=58851,
                            fullpath=10101:owner=7000000000000000101/58851:owner=7000000000000000101,
                            path=10101/58851,
                            masterCatalogId=10101,
                            category_name=cat10001namerequired
                    },
                    image=
                    {
                            fullimage=/dir1/image1,
                            thumbnail=/dir2/image2
                    },
                    XMLFile=catalog.productNotebook,
                    catentship=
                    {
                            quantitymultiple=2,
                            weightmeasure=KGM,
                            quantitymeasure=KGM,
                            weight=4,
                            langid=-1,
                            nominalquantity=3
                    },
                    salestax=
                    {
                            default_salestax=,
                            selected_salestax=
                            {
                                    st0=
                                    {
                                            name=SalesTax,
                                            id=10101
                                    }
                            },
                            availableSize=1,
                            selectedSize=1,
                            available_salestax=
                            {
                                    st0=
                                    {
                                            name=Default,
                                            id=10103
                                    }
                            },
                            defaultSize=0
                    },
                    langId=-1,
                    shippingtax=
                    {
                            available_shippingtax=,
                            default_shippingtax=,
                            availableSize=0,
                            selectedSize=1,
                            selected_shippingtax=
                            {
                                    st0=
                                    {
                                            name=ShippingTax,
                                            id=10102
                                    }
                            },
                            defaultSize=0
                    },
                    manufacturer=
                    {
                            mftname=manu_name,
                            mftnum=manu_partnumber
                    },
                    productrfnbr=14751,
                    fulfillmentCenterId=10101,
                    description=
                    {
                            auxDesc2=long_description_3,
                            auxDesc1=long_description_2,
                            shortDesc=short-description,
                            longDesc=long_description_1
                    },
                    advanced=
                    {
                            aurl=/this/is/an/example/URL
                    },
                    storeId=10101
            }
    }
     
     
    See Also:
    Serialized Form
    • Constructor Detail

      • ProductNotebookUpdateImpl

        public ProductNotebookUpdateImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        The main Method for the controller command ProductNotebookUpdateImpl. This method gets the locale from the command context, and it gets the vector for parameter ECToolsConstants.EC_XMLOBJECT from the request properties. The first element of the vector is the Hashtable representation of the XML object created by the Product Notebook.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException