com.ibm.commerce.tools.catalog.commands

Class ItemUpdateImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ItemUpdate, 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 ItemUpdateImpl
    extends ToolsControllerCommandImpl
    implements ItemUpdate
    This is the default implementation of the ItemUpdate controller command. This command updates a SKU, and it is used by the item notebook in the tooling. If an error occurs, it throws an ECException. A sample of the hashtable (string representation) used by this command is as follows:
     
     {
     XML=
            {
                    details=
                    {
                             lastOrderMonth=10,
                             endOfServiceDay=25,
                             endDay=20,
                             endOfServiceMonth=10,
                             lastOrderYear=2006,
                             lastOrderDay=31,
                             discontinueYear=2006,
                             discontinueDay=31,
                             endYear=2006,
                             availabilityYear=2006,
                             buyable=true,
                             startDay=05,
                             sku=prod111_SKU_required,
                             endOfServiceYear=2006,
                             availabilityDay=10,
                             startYear=2006,
                             endMonth=10,
                             oldSKU=prod111_SKU_required,
                             startMonth=10,
                             published=true,
                             availabilityMonth=10,
                             memberid=7000000000000000101,
                             discontinueMonth=10,
                             name=prod111 name required
                    },
                    image=
                    {
                            fullimage=/dir/image1,
                            thumbnail=/dir/image2
                    },
                    itemrfnbr=14752,
                    XMLFile=catalog.itemNotebook,
                    notValidStartEndDate=,
                    catentship=
                    {
                            quantitymultiple=3,
                            weightmeasure=KGM,
                            quantitymeasure=KGM,
                            weight=56,
                            langid=-1,
                            nominalquantity=6
                    },
                    salestax=
                    {
                            default_salestax=  ,
                            selected_salestax=
                            {
                                    st0=
                                    {
                                            name=Sales Tax,
                                            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=Shipping Tax,
                                    id=10102
                            }
                    },
                    defaultSize=0
                    },
                    manufacturer=
                    {
                            mftname=manufacturer_name,
                            mftnum=manufacturer_partnumber
                    },
                    productrfnbr=14751,
                    fulfillmentCenterId=10101,
                    description=
                    {
                            auxDesc2=long description 3,
                            auxDesc1=long description2,
                            shortDesc=short description,
                            longDesc=long description1
                    },
                    advanced=
                    {
                            aurl=/myUrl/
                    },
                    storeId=10101
            }
    }
     
     
    See Also:
    Serialized Form