Package org.apache.ofbiz.product.config
Class ProductConfigWrapper
- java.lang.Object
-
- org.apache.ofbiz.product.config.ProductConfigWrapper
-
- All Implemented Interfaces:
java.io.Serializable
public class ProductConfigWrapper extends java.lang.Object implements java.io.Serializable
Product Config Wrapper: gets product config to display- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ProductConfigWrapper.ConfigItem
class
ProductConfigWrapper.ConfigOption
-
Field Summary
Fields Modifier and Type Field Description protected GenericValue
autoUserLogin
protected java.math.BigDecimal
basePrice
protected java.lang.String
catalogId
protected java.lang.String
configId
protected java.lang.String
currencyUomId
protected java.math.BigDecimal
defaultPrice
protected Delegator
delegator
protected java.lang.String
delegatorName
protected LocalDispatcher
dispatcher
protected java.lang.String
dispatcherName
protected java.math.BigDecimal
listPrice
static java.lang.String
module
protected GenericValue
product
protected java.lang.String
productStoreId
protected java.util.List<ProductConfigWrapper.ConfigItem>
questions
protected java.lang.String
webSiteId
-
Constructor Summary
Constructors Constructor Description ProductConfigWrapper()
Creates a new instance of ProductConfigWrapperProductConfigWrapper(Delegator delegator, LocalDispatcher dispatcher, java.lang.String productId, java.lang.String productStoreId, java.lang.String catalogId, java.lang.String webSiteId, java.lang.String currencyUomId, java.util.Locale locale, GenericValue autoUserLogin)
ProductConfigWrapper(ProductConfigWrapper pcw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getConfigId()
java.util.List<ProductConfigWrapper.ConfigOption>
getDefaultOptions()
java.math.BigDecimal
getDefaultPrice()
Delegator
getDelegator()
LocalDispatcher
getDispatcher()
ProductConfigWrapper.ConfigOption
getItemOtion(int itemIndex, int optionIndex)
GenericValue
getProduct()
java.util.List<ProductConfigWrapper.ConfigItem>
getQuestions()
java.util.List<ProductConfigWrapper.ConfigOption>
getSelectedOptions()
java.math.BigDecimal
getTotalListPrice()
java.math.BigDecimal
getTotalPrice()
int
hashCode()
boolean
isCompleted()
void
loadConfig(Delegator delegator, java.lang.String configId)
void
resetConfig()
void
setDefaultConfig()
void
setSelected(int question, int option, int component, java.lang.String componentOption)
void
setSelected(int question, int option, java.lang.String comments)
void
setSelected(java.lang.String configItemId, java.lang.Long sequenceNum, java.lang.String configOptionId, java.lang.String comments)
java.lang.String
toString()
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
dispatcher
protected transient LocalDispatcher dispatcher
-
dispatcherName
protected java.lang.String dispatcherName
-
productStoreId
protected java.lang.String productStoreId
-
catalogId
protected java.lang.String catalogId
-
webSiteId
protected java.lang.String webSiteId
-
currencyUomId
protected java.lang.String currencyUomId
-
delegator
protected transient Delegator delegator
-
delegatorName
protected java.lang.String delegatorName
-
product
protected GenericValue product
-
autoUserLogin
protected GenericValue autoUserLogin
-
listPrice
protected java.math.BigDecimal listPrice
-
basePrice
protected java.math.BigDecimal basePrice
-
defaultPrice
protected java.math.BigDecimal defaultPrice
-
configId
protected java.lang.String configId
-
questions
protected java.util.List<ProductConfigWrapper.ConfigItem> questions
-
-
Constructor Detail
-
ProductConfigWrapper
public ProductConfigWrapper()
Creates a new instance of ProductConfigWrapper
-
ProductConfigWrapper
public ProductConfigWrapper(Delegator delegator, LocalDispatcher dispatcher, java.lang.String productId, java.lang.String productStoreId, java.lang.String catalogId, java.lang.String webSiteId, java.lang.String currencyUomId, java.util.Locale locale, GenericValue autoUserLogin) throws java.lang.Exception
- Throws:
java.lang.Exception
-
ProductConfigWrapper
public ProductConfigWrapper(ProductConfigWrapper pcw)
-
-
Method Detail
-
loadConfig
public void loadConfig(Delegator delegator, java.lang.String configId) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setSelected
public void setSelected(java.lang.String configItemId, java.lang.Long sequenceNum, java.lang.String configOptionId, java.lang.String comments) throws java.lang.Exception
- Throws:
java.lang.Exception
-
resetConfig
public void resetConfig()
-
setDefaultConfig
public void setDefaultConfig()
-
getConfigId
public java.lang.String getConfigId()
-
getDelegator
public Delegator getDelegator()
-
getDispatcher
public LocalDispatcher getDispatcher()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getQuestions
public java.util.List<ProductConfigWrapper.ConfigItem> getQuestions()
-
getProduct
public GenericValue getProduct()
-
setSelected
public void setSelected(int question, int option, java.lang.String comments) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setSelected
public void setSelected(int question, int option, int component, java.lang.String componentOption) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSelectedOptions
public java.util.List<ProductConfigWrapper.ConfigOption> getSelectedOptions()
-
getDefaultOptions
public java.util.List<ProductConfigWrapper.ConfigOption> getDefaultOptions()
-
getTotalListPrice
public java.math.BigDecimal getTotalListPrice()
-
getTotalPrice
public java.math.BigDecimal getTotalPrice()
-
getDefaultPrice
public java.math.BigDecimal getDefaultPrice()
-
isCompleted
public boolean isCompleted()
-
getItemOtion
public ProductConfigWrapper.ConfigOption getItemOtion(int itemIndex, int optionIndex)
-
-