|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openedit.store.Product
public class Product
| Constructor Summary | |
|---|---|
Product()
|
|
Product(java.lang.String inName)
|
|
| Method Summary | |
|---|---|
void |
addCatalog(Category inCatid)
|
void |
addCategory(Category inCatid)
|
void |
addInventoryItem(InventoryItem inItem)
|
void |
addKeyword(java.lang.String inString)
|
void |
addOption(Option inOption)
|
void |
addProperty(java.lang.String inKey,
java.lang.String inValue)
Deprecated. use setProperty |
void |
addRelatedFile(RelatedFile file)
|
void |
addRelatedProduct(RelatedProduct inRelationship)
|
void |
addTierPrice(int inQuantity,
Price inPrice)
|
void |
clearCatalogs()
|
void |
clearItems()
|
void |
clearKeywords()
|
void |
clearOptions()
|
void |
clearRelatedFiles()
|
void |
clearRelatedProducts()
|
void |
clearUserCatalogs()
|
java.util.List |
colorsInSize(Option inSize)
List all the colors available in this size |
Product |
copy()
|
Product |
copy(java.lang.String newId)
|
java.lang.String |
get(java.lang.String inAttribute)
This will look in all the category objects if needed |
java.util.List |
getAllOptions()
|
java.util.List |
getCatalogs()
Deprecated. |
java.util.List |
getCategories()
|
InventoryItem |
getCloseInventoryItemByOptions(java.util.Set inOptions)
|
java.util.List |
getColors()
|
java.util.Date |
getDate(java.lang.String inField,
java.lang.String inDateFormat)
|
Category |
getDefaultCatalog()
Deprecated. Use getDefaultCategory instead. |
Category |
getDefaultCategory()
|
Option |
getDefaultColor()
|
Option |
getDefaultSize()
|
java.lang.String |
getDeliveryType()
|
java.lang.String |
getDepartment()
|
java.lang.String |
getDescription()
|
java.lang.String |
getHandlingChargeLevel()
|
java.lang.String |
getId()
|
InventoryItem |
getInventoryItem(int inI)
|
InventoryItem |
getInventoryItemByOptions(java.util.Collection inOptions)
|
InventoryItem |
getInventoryItemBySku(java.lang.String inSku)
|
int |
getInventoryItemCount()
|
java.util.List |
getInventoryItems()
|
java.util.List |
getKeywords()
|
java.lang.String |
getName()
|
Option |
getOption(java.lang.String inOptionId)
|
java.util.List |
getOptions()
|
int |
getOrdering()
|
PriceSupport |
getPriceSupport()
|
java.lang.String |
getPrimaryImagePath()
|
RelatedFile |
getPrimaryRelatedFile()
|
java.util.Map |
getProperties()
|
java.lang.String |
getProperty(java.lang.String inKey)
|
java.util.Collection |
getRelatedCatalogs()
|
java.util.List |
getRelatedFiles()
|
java.util.List |
getRelatedProducts()
|
java.util.List |
getRelatedProducts(java.lang.String inType)
|
org.openedit.money.Money |
getRetailPrice()
|
org.openedit.money.Money |
getRetailUnitPrice()
|
java.lang.String |
getSaveAsName()
|
java.lang.String |
getShippingMethodId()
|
java.lang.String |
getShortDescription()
This is an optional field |
java.util.List |
getSizes()
|
java.util.List |
getSizesSorted()
|
Page |
getSourcePage()
|
java.lang.String |
getSourcePath()
|
org.openedit.money.Money |
getYourPrice()
|
boolean |
hasColor()
|
boolean |
hasColors()
|
boolean |
hasKeywords()
|
boolean |
hasProductLevelPricing()
|
boolean |
hasProperty(java.lang.String inKey)
|
boolean |
hasRelatedFiles()
|
boolean |
hasRelatedProducts()
|
boolean |
hasSize()
|
boolean |
hasSizes()
|
void |
incrementProperty(java.lang.String property,
int delta)
|
boolean |
isAvailable()
|
boolean |
isCustomPrice()
|
boolean |
isInCatalog(Category inCategory)
|
boolean |
isInCategory(Category inCat)
|
boolean |
isInCategory(java.lang.String inCategoryId)
|
boolean |
isInStock()
|
boolean |
isOnSale()
|
boolean |
isPartlyOutOfStock()
|
boolean |
isRelated(RelatedProduct inId)
|
boolean |
isRelated(java.lang.String inString)
|
boolean |
isTaxExempt()
|
void |
putAttribute(java.lang.String inKey,
java.lang.String inValue)
|
void |
removeCatalog(Category inCatid)
Deprecated. use removeCategory instead. |
void |
removeCategory(Category inCategory)
|
void |
removeKeyword(java.lang.String inKey)
|
void |
removeOption(java.lang.String id)
|
void |
removeProperty(java.lang.String inKey)
|
void |
removeRelatedProduct(java.lang.String productid)
|
void |
setAvailable(boolean inAvailable)
|
void |
setCategories(java.util.List inCatalogs)
|
void |
setCustomPrice(boolean inCustomPrice)
|
void |
setDefaultCatalog(Category inDefaultCatalog)
Deprecated. use setDefaultCategory instead. |
void |
setDefaultCategory(Category inDefaultCategory)
|
void |
setDeliveryType(java.lang.String inDeliveryType)
|
void |
setDepartment(java.lang.String fieldDepartment)
|
void |
setDescription(java.lang.String inDescription)
|
void |
setHandlingChargeLevel(java.lang.String inHandlingChargeLevel)
|
void |
setId(java.lang.String inString)
|
void |
setInventoryItems(java.util.List inItems)
|
void |
setKeywords(java.util.List inKeywords)
|
void |
setName(java.lang.String inName)
|
void |
setOptions(java.util.List inOptions)
|
void |
setOrdering(int inOrdering)
|
void |
setOriginalImagePath(java.lang.String inPath)
|
void |
setPriceSupport(PriceSupport priceSupport)
|
void |
setProperties(java.util.Map inAttributes)
|
void |
setProperty(java.lang.String inKey,
java.lang.String inValue)
|
void |
setRelatedFiles(java.util.List relatedFiles)
|
void |
setRelatedProducts(java.util.List inRelatedProducts)
|
void |
setShippingMethodId(java.lang.String inShippingMethodId)
|
void |
setShortDescription(java.lang.String inDescription)
|
void |
setSourcePage(Page inSourcePage)
|
void |
setSourcePath(java.lang.String inSourcePath)
|
void |
setTaxExempt(boolean inTaxExempt)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Product()
public Product(java.lang.String inName)
| Method Detail |
|---|
public java.util.List getRelatedFiles()
public void setRelatedFiles(java.util.List relatedFiles)
public int getOrdering()
public void setOrdering(int inOrdering)
public java.lang.String getName()
public void setName(java.lang.String inName)
public java.lang.String getShortDescription()
public void setShortDescription(java.lang.String inDescription)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getId()
public void setId(java.lang.String inString)
public java.lang.String get(java.lang.String inAttribute)
public void addProperty(java.lang.String inKey,
java.lang.String inValue)
inValue - public void removeProperty(java.lang.String inKey)
public void addCatalog(Category inCatid)
inCatid - public void addCategory(Category inCatid)
public void removeCatalog(Category inCatid)
public void removeCategory(Category inCategory)
public java.util.List getCatalogs()
public java.util.List getCategories()
public boolean isInCatalog(Category inCategory)
public boolean isInCategory(Category inCat)
public boolean isInCategory(java.lang.String inCategoryId)
public Option getDefaultColor()
public Option getDefaultSize()
public java.util.List getSizes()
public java.util.List getSizesSorted()
public java.util.List getColors()
public java.util.List colorsInSize(Option inSize)
inSize -
public java.util.List getInventoryItems()
public void setInventoryItems(java.util.List inItems)
public boolean hasSizes()
public boolean hasColors()
public boolean hasSize()
public boolean hasColor()
public Category getDefaultCatalog()
public Category getDefaultCategory()
public java.util.Collection getRelatedCatalogs()
public void setDefaultCatalog(Category inDefaultCatalog)
public void setDefaultCategory(Category inDefaultCategory)
public java.util.Map getProperties()
public java.lang.String getProperty(java.lang.String inKey)
public void setProperties(java.util.Map inAttributes)
public void putAttribute(java.lang.String inKey,
java.lang.String inValue)
public void setProperty(java.lang.String inKey,
java.lang.String inValue)
public void clearUserCatalogs()
public void clearItems()
public java.lang.String getDepartment()
public void setDepartment(java.lang.String fieldDepartment)
public boolean isInStock()
public boolean isPartlyOutOfStock()
public boolean isOnSale()
public void addInventoryItem(InventoryItem inItem)
public InventoryItem getInventoryItem(int inI)
inI -
public InventoryItem getInventoryItemBySku(java.lang.String inSku)
public InventoryItem getInventoryItemByOptions(java.util.Collection inOptions)
public InventoryItem getCloseInventoryItemByOptions(java.util.Set inOptions)
public boolean hasProductLevelPricing()
public PriceSupport getPriceSupport()
public void setPriceSupport(PriceSupport priceSupport)
public org.openedit.money.Money getRetailUnitPrice()
public org.openedit.money.Money getYourPrice()
public org.openedit.money.Money getRetailPrice()
public void addTierPrice(int inQuantity,
Price inPrice)
inQuantity - money - public boolean hasKeywords()
public java.util.List getKeywords()
public boolean isAvailable()
public void setAvailable(boolean inAvailable)
public int getInventoryItemCount()
public void clearCatalogs()
public java.util.List getOptions()
public java.util.List getAllOptions()
public void setOptions(java.util.List inOptions)
public void addOption(Option inOption)
public void removeOption(java.lang.String id)
public void clearOptions()
public Option getOption(java.lang.String inOptionId)
public java.lang.String getHandlingChargeLevel()
public void setHandlingChargeLevel(java.lang.String inHandlingChargeLevel)
public boolean isCustomPrice()
public void setCustomPrice(boolean inCustomPrice)
public boolean isTaxExempt()
public void setTaxExempt(boolean inTaxExempt)
public boolean hasProperty(java.lang.String inKey)
public java.lang.String getShippingMethodId()
public void setShippingMethodId(java.lang.String inShippingMethodId)
public java.lang.String getDescription()
public void setDescription(java.lang.String inDescription)
public void addKeyword(java.lang.String inString)
public void removeKeyword(java.lang.String inKey)
public java.lang.String getDeliveryType()
public void setDeliveryType(java.lang.String inDeliveryType)
public java.util.Date getDate(java.lang.String inField,
java.lang.String inDateFormat)
public boolean isRelated(RelatedProduct inId)
public void setKeywords(java.util.List inKeywords)
public void clearKeywords()
public void incrementProperty(java.lang.String property,
int delta)
throws java.lang.Exception
java.lang.Exceptionpublic boolean hasRelatedProducts()
public Product copy(java.lang.String newId)
public Product copy()
public void setCategories(java.util.List inCatalogs)
public void setOriginalImagePath(java.lang.String inPath)
public java.lang.String getSourcePath()
public void setSourcePath(java.lang.String inSourcePath)
public Page getSourcePage()
public void setSourcePage(Page inSourcePage)
public java.lang.String getSaveAsName()
public void addRelatedProduct(RelatedProduct inRelationship)
public java.util.List getRelatedProducts()
public void removeRelatedProduct(java.lang.String productid)
public java.util.List getRelatedProducts(java.lang.String inType)
public void clearRelatedProducts()
public void setRelatedProducts(java.util.List inRelatedProducts)
public boolean isRelated(java.lang.String inString)
public void addRelatedFile(RelatedFile file)
public boolean hasRelatedFiles()
public void clearRelatedFiles()
public RelatedFile getPrimaryRelatedFile()
public java.lang.String getPrimaryImagePath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2008 OpenEdit Inc. All rights reserved. last modified: Jan 05 2009
