|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Sku
Implementations of this interface are used to hold data about a SKU. A SKU is
a specific item that can be sold including any specific attributes of the item such as
color or size.
You should implement this class if you want to make significant changes to how the
class is persisted. If you just want to add additional fields then you should extend SkuImpl.
SkuImpl}, {@link Money}| Method Summary | |
|---|---|
java.util.Date |
getActiveEndDate()
Returns the the last date that the Sku should be available for sale. |
java.util.Date |
getActiveStartDate()
Returns the first date that the Sku should be available for sale. |
java.util.List<Product> |
getAllParentProducts()
Get all the parent products since a sku can exist in multiple |
java.lang.String |
getDescription()
Returns the brief description of the Sku. |
java.lang.Long |
getId()
Returns the id of this sku |
Money |
getListPrice()
Deprecated. |
java.lang.String |
getLongDescription()
Returns the long description of the sku. |
java.lang.String |
getName()
Returns the name of the Sku. |
Money |
getRetailPrice()
Returns the Retail Price of the Sku. |
Money |
getSalePrice()
Returns the Sale Price of the Sku. |
java.util.List<SkuAttribute> |
getSkuAttributes()
|
java.lang.String |
getSkuImage(java.lang.String imageKey)
Deprecated. |
java.util.Map<java.lang.String,java.lang.String> |
getSkuImages()
Deprecated. |
java.util.Map<java.lang.String,Media> |
getSkuMedia()
Returns a map of key/value pairs where the key is a string for the name of a media object and the value is a media object. |
boolean |
isActive()
Returns a boolean indicating whether this sku is active. |
boolean |
isActive(Product product,
Category category)
|
java.lang.Boolean |
isAvailable()
Returns whether the Sku is available. |
java.lang.Boolean |
isDiscountable()
Returns whether the Sku qualifies for discounts or not. |
java.lang.Boolean |
isTaxable()
Returns whether the Sku qualifies for taxes or not. |
void |
setActiveEndDate(java.util.Date activeEndDate)
Sets the the last date that the Sku should be available for sale. |
void |
setActiveStartDate(java.util.Date activeStartDate)
Sets the the first date that the Sku should be available for sale. |
void |
setAllParentProducts(java.util.List<Product> allParentProducts)
Set all the parent products since a sku can exist in multiple |
void |
setAvailable(java.lang.Boolean available)
Sets the whether the Sku is available. |
void |
setDescription(java.lang.String description)
Sets the brief description of the Sku. |
void |
setDiscountable(java.lang.Boolean discountable)
Sets the whether the Sku qualifies for discounts or not. |
void |
setId(java.lang.Long id)
Sets the id of this sku |
void |
setListPrice(Money listPrice)
Deprecated. |
void |
setLongDescription(java.lang.String longDescription)
Sets the long description of the sku. |
void |
setName(java.lang.String name)
Sets the the name of the Sku. |
void |
setRetailPrice(Money retailPrice)
|
void |
setSalePrice(Money salePrice)
Sets the the Sale Price of the Sku. |
void |
setSkuAttributes(java.util.List<SkuAttribute> skuAttributes)
|
void |
setSkuImages(java.util.Map<java.lang.String,java.lang.String> skuImages)
Deprecated. |
void |
setSkuMedia(java.util.Map<java.lang.String,Media> skuMedia)
Sets a map of key/value pairs where the key is a string for the name of a media object and the value is an object of type Media. |
void |
setTaxable(java.lang.Boolean taxable)
Sets the whether the Sku qualifies for taxes or not. |
| Method Detail |
|---|
java.lang.Long getId()
void setId(java.lang.Long id)
Money getSalePrice()
void setSalePrice(Money salePrice)
Money getRetailPrice()
void setRetailPrice(Money retailPrice)
Money getListPrice()
void setListPrice(Money listPrice)
java.lang.String getName()
void setName(java.lang.String name)
java.lang.String getDescription()
void setDescription(java.lang.String description)
java.lang.String getLongDescription()
void setLongDescription(java.lang.String longDescription)
java.lang.Boolean isTaxable()
void setTaxable(java.lang.Boolean taxable)
java.lang.Boolean isDiscountable()
void setDiscountable(java.lang.Boolean discountable)
java.lang.Boolean isAvailable()
void setAvailable(java.lang.Boolean available)
java.util.Date getActiveStartDate()
void setActiveStartDate(java.util.Date activeStartDate)
java.util.Date getActiveEndDate()
void setActiveEndDate(java.util.Date activeEndDate)
boolean isActive()
@Deprecated java.util.Map<java.lang.String,java.lang.String> getSkuImages()
@Deprecated java.lang.String getSkuImage(java.lang.String imageKey)
@Deprecated void setSkuImages(java.util.Map<java.lang.String,java.lang.String> skuImages)
java.util.Map<java.lang.String,Media> getSkuMedia()
void setSkuMedia(java.util.Map<java.lang.String,Media> skuMedia)
java.util.List<Product> getAllParentProducts()
void setAllParentProducts(java.util.List<Product> allParentProducts)
boolean isActive(Product product,
Category category)
java.util.List<SkuAttribute> getSkuAttributes()
void setSkuAttributes(java.util.List<SkuAttribute> skuAttributes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||