|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProductSku
ProductSku
represents a variation of a merchandise product in
Elastic Path. A ProductSku
corresponds to a single
Product
Method Summary | |
---|---|
void |
addPrice(Price price)
Convenience method for setting the price. |
void |
clearPromotionPrice()
Removes computed promotion prices. |
AttributeValueGroup |
getAttributeValueGroup()
Get the attribute value group. |
DigitalAsset |
getDigitalAsset()
Gets the digital asset belong to this product SKU. |
java.util.Date |
getEndDate()
Get the end date. |
java.lang.String |
getImage()
Get the sku default image. |
Inventory |
getInventory()
Get the Inventory for this product sku. |
java.util.Set |
getOptionValueCodes()
Get the option value codes for this SKU. |
java.util.Map |
getOptionValueMap()
Gets the available configuration option values for this SKU. |
java.util.Collection |
getOptionValues()
Get the available configuration option values for this SKU. |
Price |
getPrice(java.util.Currency currency)
Get the price of this product in the specified currency. |
Price |
getPriceWithoutFallback(java.util.Currency currency)
Get the price of this product sku in the specified currency. |
Product |
getProduct()
Get the parent product corresponding to this SKU. |
java.util.Map |
getProductSkuPrices()
Get the product-price associations belong to this product SKU. |
java.lang.String |
getSkuCode()
Get the productSku SKU. |
SkuOptionValue |
getSkuOptionValue(SkuOption skuOption)
Returns the value of the given SkuOption . |
ProductSkuSpec |
getSpec()
Returns the ProductSkuSpec instance -- the product sku
specification. |
java.util.Date |
getStartDate()
Get the start date that this productSku will become available to customers. |
boolean |
hasSufficientInventory(int quantity)
Returns true if there is sufficient stock of this SKU to sell the specified quantity of items. |
boolean |
isAvailable()
Returns true if the product is available to be purchased. |
boolean |
isShippable()
True if this SKU is shippable (i.e. |
boolean |
isVisibleWhenOutOfStock()
True if this SKU is visible in the when out of stock. |
void |
setAttributeValueGroup(AttributeValueGroup attributeValueGroup)
Set the attribute value group. |
void |
setDigitalAsset(DigitalAsset digitalAsset)
Sets the digital asset. |
void |
setEndDate(java.util.Date endDate)
Set the end date. |
void |
setImage(java.lang.String image)
Set the sku default image. |
void |
setInventory(Inventory inventory)
Set the Inventory for this product sku. |
void |
setOptionValueMap(java.util.Map optionValueMap)
Sets the available configuration option values for this SKU. |
void |
setProduct(Product product)
Set the parent product of this SKU. |
void |
setProductOneWay(Product product)
Set the parent product of this SKU. |
void |
setShippable(boolean shippable)
Sets if this SKU is shippable (i.e. |
void |
setSkuCode(java.lang.String skuCode)
Set the SKU for this productSku. |
void |
setSkuOptionValue(SkuOption skuOption,
java.lang.String valueCode)
Sets the sku option value to the one corresponding given value code. |
void |
setSpec(ProductSkuSpec spec)
Sets the ProductSkuSpec instance -- the product sku
specification. |
void |
setStartDate(java.util.Date startDate)
Set the start date that this productSku will become valid. |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
void addPrice(Price price)
price
- the price to be added.void clearPromotionPrice()
AttributeValueGroup getAttributeValueGroup()
AttributeValueGroup
DigitalAsset getDigitalAsset()
java.util.Date getEndDate()
java.lang.String getImage()
Inventory getInventory()
Inventory
for this product sku.
Inventory
java.util.Set getOptionValueCodes()
java.util.Map getOptionValueMap()
SkuOptionValue
sjava.util.Collection getOptionValues()
SkuOptionValue
sPrice getPrice(java.util.Currency currency)
currency
- the Currency
of the price to be returned
Price
object representing the price in the
specified currency. If no price is found, the parent product's
price is returned. returns null if no price was found in the
specified currency.Price getPriceWithoutFallback(java.util.Currency currency)
currency
- the Currency
of the price to be returned
Price
object representing the price in the
specified currency. If no price is found, return
null
.Product getProduct()
Product
java.util.Map getProductSkuPrices()
java.lang.String getSkuCode()
SkuOptionValue getSkuOptionValue(SkuOption skuOption)
SkuOption
. Returns
null
if the value is not defined.
skuOption
- the sku option
SkuOption
.
null
if the value is not defined.ProductSkuSpec getSpec()
ProductSkuSpec
instance -- the product sku
specification.
ProductSkuSpec
instance -- the product sku
specification.java.util.Date getStartDate()
boolean hasSufficientInventory(int quantity)
quantity
- the quantity of items to check for availability
quantity
items can be soldboolean isAvailable()
boolean isShippable()
boolean isVisibleWhenOutOfStock()
void setAttributeValueGroup(AttributeValueGroup attributeValueGroup)
attributeValueGroup
- the AttributeValueGroup
void setDigitalAsset(DigitalAsset digitalAsset)
digitalAsset
- the digital assetvoid setEndDate(java.util.Date endDate)
endDate
- the end datevoid setImage(java.lang.String image)
image
- the sku default imagevoid setInventory(Inventory inventory)
Inventory
for this product sku.
inventory
- the Inventory
void setOptionValueMap(java.util.Map optionValueMap)
optionValueMap
- the map of SkuOptionValue
s.void setProduct(Product product)
product
- the parent productvoid setProductOneWay(Product product)
product
- the parent productvoid setShippable(boolean shippable)
shippable
- the shippable flag for the SKUvoid setSkuCode(java.lang.String skuCode)
skuCode
- the SKUvoid setSkuOptionValue(SkuOption skuOption, java.lang.String valueCode) throws EpInvalidValueBindException
skuOption
- the sku optionvalueCode
- the sku option value code
EpInvalidValueBindException
- in case the given value code is not defined in the given
SkuOption
void setSpec(ProductSkuSpec spec)
ProductSkuSpec
instance -- the product sku
specification.
spec
- the product sku specification.void setStartDate(java.util.Date startDate)
startDate
- the start date
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |