|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProductType
Represents the type of a Product
, which determines the set of attributes that it has. An example of a product type is "Shoe." Note
that this differs from a product category, which might also be called "Shoes" because this describes the characteristics of the product rather
than how they are displayed and organized in the store.
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get the product type description. |
java.lang.String |
getName()
Get the product type name. |
AttributeGroup |
getProductAttributeGroup()
Returns the product attribute group. |
AttributeGroup |
getSkuAttributeGroup()
Returns the product sku attribute group. |
java.util.Set |
getSkuOptions()
Gets the available options for configuring SKUs of this product. |
java.util.Set |
getSkuOptions(ProductSku defaultSku)
Gets the available options for configuring SKUs of this product. |
TaxCode |
getTaxCode()
Returns the TaxCode associated with this ProductType . |
java.lang.String |
getTemplate()
Get the display template of this category. |
boolean |
isWithMultipleSkus()
Returns true if the product type may have multiple skus. |
void |
setDescription(java.lang.String description)
Set the product type description. |
void |
setName(java.lang.String name)
Set the product type name. |
void |
setProductAttributeGroup(AttributeGroup productAttributeGroup)
Sets the product attribute group. |
void |
setSkuAttributeGroup(AttributeGroup skuAttributeGroup)
Sets the product sku attribute group. |
void |
setSkuOptions(java.util.Set skuOptions)
Sets the available options for configuring SKUs of this product. |
void |
setTaxCode(TaxCode taxCode)
Set the TaxCode associated with this ProductType . |
void |
setTemplate(java.lang.String template)
Set the template. |
void |
setWithMultipleSkus(boolean multipleSkuFlag)
Sets multiple sku flag. |
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 |
---|
java.lang.String getDescription()
java.lang.String getName()
AttributeGroup getProductAttributeGroup()
AttributeGroup getSkuAttributeGroup()
java.util.Set getSkuOptions()
java.util.Set getSkuOptions(ProductSku defaultSku)
defaultSku
- the SKU whose option values are to be the defaults for the given options
TaxCode getTaxCode()
TaxCode
associated with this ProductType
.
TaxCode
java.lang.String getTemplate()
boolean isWithMultipleSkus()
true
if the product type may have multiple skus.
true
if the product type has multiple skusvoid setDescription(java.lang.String description)
description
- the product type descriptionvoid setName(java.lang.String name)
name
- the product type namevoid setProductAttributeGroup(AttributeGroup productAttributeGroup)
productAttributeGroup
- the product attribute group.void setSkuAttributeGroup(AttributeGroup skuAttributeGroup)
skuAttributeGroup
- the product attribute group.void setSkuOptions(java.util.Set skuOptions)
skuOptions
- the set of available options for configuring SKUs of this productvoid setTaxCode(TaxCode taxCode)
TaxCode
associated with this ProductType
.
taxCode
- - the tax code for this product type, i.e. "BOOKS".void setTemplate(java.lang.String template)
template
- the templatevoid setWithMultipleSkus(boolean multipleSkuFlag)
multipleSkuFlag
- sets it to true
if the product type may have multiple skus.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |