public class ProductConfigWrapper extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
ProductConfigWrapper.ConfigItem |
class |
ProductConfigWrapper.ConfigOption |
Modifier and Type | Field and Description |
---|---|
protected GenericValue |
autoUserLogin |
protected BigDecimal |
basePrice |
protected String |
catalogId |
protected String |
configId |
protected String |
currencyUomId |
protected BigDecimal |
defaultPrice |
protected Delegator |
delegator |
protected String |
delegatorName |
protected LocalDispatcher |
dispatcher |
protected String |
dispatcherName |
protected BigDecimal |
listPrice |
static String |
module |
protected GenericValue |
product |
protected String |
productStoreId |
protected List<ProductConfigWrapper.ConfigItem> |
questions |
protected String |
webSiteId |
Constructor and Description |
---|
ProductConfigWrapper()
Creates a new instance of ProductConfigWrapper
|
ProductConfigWrapper(Delegator delegator,
LocalDispatcher dispatcher,
String productId,
String productStoreId,
String catalogId,
String webSiteId,
String currencyUomId,
Locale locale,
GenericValue autoUserLogin) |
ProductConfigWrapper(ProductConfigWrapper pcw) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getConfigId() |
List<ProductConfigWrapper.ConfigOption> |
getDefaultOptions() |
BigDecimal |
getDefaultPrice() |
Delegator |
getDelegator() |
LocalDispatcher |
getDispatcher() |
ProductConfigWrapper.ConfigOption |
getItemOtion(int itemIndex,
int optionIndex) |
GenericValue |
getProduct() |
List<ProductConfigWrapper.ConfigItem> |
getQuestions() |
List<ProductConfigWrapper.ConfigOption> |
getSelectedOptions() |
BigDecimal |
getTotalListPrice() |
BigDecimal |
getTotalPrice() |
int |
hashCode() |
boolean |
isCompleted() |
void |
loadConfig(Delegator delegator,
String configId) |
void |
resetConfig() |
void |
setDefaultConfig() |
void |
setSelected(int question,
int option,
int component,
String componentOption) |
void |
setSelected(int question,
int option,
String comments) |
void |
setSelected(String configItemId,
Long sequenceNum,
String configOptionId,
String comments) |
String |
toString() |
public static final String module
protected transient LocalDispatcher dispatcher
protected String dispatcherName
protected String productStoreId
protected String catalogId
protected String webSiteId
protected String currencyUomId
protected transient Delegator delegator
protected String delegatorName
protected GenericValue product
protected GenericValue autoUserLogin
protected BigDecimal listPrice
protected BigDecimal basePrice
protected BigDecimal defaultPrice
protected String configId
protected List<ProductConfigWrapper.ConfigItem> questions
public ProductConfigWrapper()
public ProductConfigWrapper(Delegator delegator, LocalDispatcher dispatcher, String productId, String productStoreId, String catalogId, String webSiteId, String currencyUomId, Locale locale, GenericValue autoUserLogin) throws Exception
Exception
public ProductConfigWrapper(ProductConfigWrapper pcw)
public void loadConfig(Delegator delegator, String configId) throws Exception
Exception
public void setSelected(String configItemId, Long sequenceNum, String configOptionId, String comments) throws Exception
Exception
public void resetConfig()
public void setDefaultConfig()
public String getConfigId()
public Delegator getDelegator()
public LocalDispatcher getDispatcher()
public List<ProductConfigWrapper.ConfigItem> getQuestions()
public GenericValue getProduct()
public void setSelected(int question, int option, String comments) throws Exception
Exception
public void setSelected(int question, int option, int component, String componentOption) throws Exception
Exception
public List<ProductConfigWrapper.ConfigOption> getSelectedOptions()
public List<ProductConfigWrapper.ConfigOption> getDefaultOptions()
public BigDecimal getTotalListPrice()
public BigDecimal getTotalPrice()
public BigDecimal getDefaultPrice()
public boolean isCompleted()
public ProductConfigWrapper.ConfigOption getItemOtion(int itemIndex, int optionIndex)