public class ItemCreateHelper extends CatalogEntryCreateUpdateHelper
CLASS_NAME
Constructor and Description |
---|
ItemCreateHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
copyPricesFromProduct(java.lang.Long nProductId,
java.lang.Long nSKUId,
CommandContext cmdContext)
Copy pricing information from parent product.
|
void |
createItem(CommandContext cmdContext)
Creates an Item after setting all properties.
|
findAttributeValueId, findSKUByAttrValue, flushEJB, getAttributeValues, getAuxDescription1, getAuxDescription2, getAvailabilityDate, getAvailable, getAvailablitydate, getBuyable, getCatalogGroupId, getCatalogId, getCatentryId, getCatentryShippingInfo, getCatenttypeId, getCatEntURL, getCommandContext, getDescLanguage, getDiscontinueDate, getDiscount, getEndDate, getEndOfServiceDate, getField1, getField2, getField3, getField4, getField5, getFullimage, getLastOrderDate, getLastupdate, getLongDescription, getMarkfordelete, getMemberId, getMfname, getMfpartnumber, getName, getOnauction, getOnspecial, getPartnumber, getProductId, getPublished, getSalesTax, getShippingMode, getShippingTax, getShortDescription, getStartDate, getStoreDefaultLanguage, getStoreId, getThumbnail, getXMLdetail, hasAttribute, hasAttribute, hasChildCatentry, hasPrices, hasPrices, isDuplicatedAttrValue, isExistingSKUCode, refreshCalcCodeRegistry, refreshRegistry, reset, setAttributeValues, setAuxdescription1, setAuxdescription2, setAvailabilitydate, setAvailabilityDate, setAvailable, setBuyable, setCatalogGroupId, setCatalogId, setCatentryId, setCatentryShipping, setCatenttypeId, setCatEntURL, setCommandContext, setDescLanguage, setDiscontinueDate, setDiscount, setEndDate, setEndOfServiceDate, setField1, setField2, setField3, setField4, setField5, setFullimage, setLastOrderDate, setLastupdate, setLongdescription, setMarkfordelete, setMemberId, setMfname, setMfpartnumber, setName, setOnauction, setOnspecial, setPartnumber, setProductId, setPublished, setSalesTax, setShippingMode, setShippingTax, setShortdescription, setStartDate, setStoreId, setThumbnail, setXMLdetail
public void createItem(CommandContext cmdContext) throws ECException, javax.ejb.RemoveException, CatalogToolException, java.lang.Exception
cmdContext
- The CommandContext
.ECException
- If the CatalogEntryAddCmd
fails.javax.ejb.RemoveException
- In the execution of the method, a RemoveException
occurs.CatalogToolException
- if 1) the item already exists in a 1-to-1 product-to-item scenario or 2) duplicate items with same attribute values in the 1-to-n scenario.java.lang.Exception
- if one of the following fails: adding shippings, shipping mode, shipping taxes, sales taxes, discounts, prices to the item.public static void copyPricesFromProduct(java.lang.Long nProductId, java.lang.Long nSKUId, CommandContext cmdContext)
nProductId
- The product ID.nSKUId
- The SKU ID.cmdContext
- The CommandContext
.