|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.catalog.domain.ProductOptionImpl
@Entity public class ProductOptionImpl
| Field Summary | |
|---|---|
protected List<ProductOptionValue> |
allowedValues
|
protected String |
attributeName
|
protected Integer |
displayOrder
|
protected String |
errorCode
|
protected String |
errorMessage
|
protected Long |
id
|
protected String |
label
|
protected List<Product> |
products
|
protected Boolean |
required
|
protected String |
type
|
protected String |
validationString
|
| Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity |
|---|
MAIN_ENTITY_NAME_PROPERTY |
| Constructor Summary | |
|---|---|
ProductOptionImpl()
|
|
| Method Summary | |
|---|---|
List<ProductOptionValue> |
getAllowedValues()
Gets the available values that a user can select for this ProductOption. |
String |
getAttributeName()
Gets the attribute name for where the ProductOptionValue selected for this ProductOption is stored in the OrderItemAttributes for the OrderItem |
Integer |
getDisplayOrder()
Gets the display order of this option in relation to the other ProductOptions |
String |
getErrorCode()
|
String |
getErrorMessage()
|
Long |
getId()
Returns unique identifier of the product option. |
String |
getLabel()
The label to show to the user when selecting from the available ProductOptionValues. |
String |
getMainEntityName()
|
ProductOptionValidationType |
getProductOptionValidationType()
|
List<Product> |
getProducts()
Gets all the Products associated with this ProductOption |
Boolean |
getRequired()
|
ProductOptionType |
getType()
Returns the option type. |
Boolean |
getUseInSkuGeneration()
|
String |
getValidationString()
|
void |
setAllowedValues(List<ProductOptionValue> allowedValues)
Set the allowed values for this ProductOption |
void |
setAttributeName(String attributeName)
Sets the attribute name that will be used in storing the selected ProductOptionValue for this ProductOption |
void |
setDisplayOrder(Integer displayOrder)
Gets the display order of this option in relation to the other ProductOptions |
void |
setErrorCode(String errorCode)
|
void |
setErrorMessage(String errorMessage)
|
void |
setId(Long id)
Sets the unique identifier of the product option. |
void |
setLabel(String label)
Sets the label to show the user when selecting from the available ProductOptionValues |
void |
setProductOptionValidationType(ProductOptionValidationType productOptionValidationType)
|
void |
setProducts(List<Product> products)
Set the Products to associate with this ProductOption |
void |
setRequired(Boolean required)
Sets whether or not |
void |
setType(ProductOptionType type)
Sets the option type. |
void |
setUseInSkuGeneration(Boolean useInSkuGeneration)
|
void |
setValidationString(String validationString)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Long id
protected String type
protected String attributeName
protected String label
protected Boolean required
protected Integer displayOrder
protected String validationString
protected String errorCode
protected String errorMessage
protected List<ProductOptionValue> allowedValues
protected List<Product> products
| Constructor Detail |
|---|
public ProductOptionImpl()
| Method Detail |
|---|
public Long getId()
ProductOption
getId in interface ProductOptionpublic void setId(Long id)
ProductOption
setId in interface ProductOptionpublic ProductOptionType getType()
ProductOption
getType in interface ProductOptionpublic void setType(ProductOptionType type)
ProductOption
setType in interface ProductOptionpublic String getAttributeName()
ProductOption
getAttributeName in interface ProductOptionOrderItemAttribute}, {@link OrderItem}public void setAttributeName(String attributeName)
ProductOption
setAttributeName in interface ProductOptionattributeName - - the name of the OrderItemAttribute to store the selected
ProductOptionValue in the Order domainpublic String getLabel()
ProductOptionProductOptionValues. This might be "Color" or "Size"
getLabel in interface ProductOptionpublic void setLabel(String label)
ProductOptionProductOptionValues
setLabel in interface ProductOptionpublic Boolean getRequired()
getRequired in interface ProductOptionpublic void setRequired(Boolean required)
ProductOption
setRequired in interface ProductOptionpublic Integer getDisplayOrder()
ProductOptionProductOptions
getDisplayOrder in interface ProductOptionpublic void setDisplayOrder(Integer displayOrder)
ProductOptionProductOptions
setDisplayOrder in interface ProductOptionpublic List<Product> getProducts()
ProductOption
getProducts in interface ProductOptionpublic void setProducts(List<Product> products)
ProductOption
setProducts in interface ProductOptionpublic List<ProductOptionValue> getAllowedValues()
ProductOptionProductOption.getAttributeName()
getAllowedValues in interface ProductOptionpublic void setAllowedValues(List<ProductOptionValue> allowedValues)
ProductOption
setAllowedValues in interface ProductOptionpublic Boolean getUseInSkuGeneration()
getUseInSkuGeneration in interface ProductOptionpublic void setUseInSkuGeneration(Boolean useInSkuGeneration)
setUseInSkuGeneration in interface ProductOptionpublic ProductOptionValidationType getProductOptionValidationType()
getProductOptionValidationType in interface ProductOptionpublic void setProductOptionValidationType(ProductOptionValidationType productOptionValidationType)
setProductOptionValidationType in interface ProductOptionpublic String getValidationString()
getValidationString in interface ProductOptionpublic void setValidationString(String validationString)
setValidationString in interface ProductOptionpublic String getErrorCode()
getErrorCode in interface ProductOptionpublic void setErrorCode(String errorCode)
setErrorCode in interface ProductOptionpublic String getErrorMessage()
getErrorMessage in interface ProductOptionpublic void setErrorMessage(String errorMessage)
setErrorMessage in interface ProductOptionpublic String getMainEntityName()
getMainEntityName in interface AdminMainEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||