Package org.apache.ofbiz.product.config
Class ProductConfigWrapper
java.lang.Object
org.apache.ofbiz.product.config.ProductConfigWrapper
- All Implemented Interfaces:
Serializable
Product Config Wrapper: gets product config to display
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
The type Config option. -
Constructor Summary
ConstructorDescriptionCreates a new instance of ProductConfigWrapperProductConfigWrapper
(Delegator delegator, LocalDispatcher dispatcher, String productId, String productStoreId, String catalogId, String webSiteId, String currencyUomId, Locale locale, GenericValue autoUserLogin) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets config id.Gets default options.Gets default price.Gets delegator.Gets dispatcher.getItemOtion
(int itemIndex, int optionIndex) Gets item otion.Gets product.Gets questions.Gets selected options.Gets total list price.Gets total price.int
hashCode()
boolean
Is completed boolean.void
loadConfig
(Delegator delegator, String configId) Load config.void
Reset config.void
setConfigId
(String configId) Sets config id.void
Sets default config.void
setSelected
(int question, int option, int component, String componentOption) Sets selected.void
setSelected
(int question, int option, String comments) Sets selected.void
setSelected
(String configItemId, Long sequenceNum, String configOptionId, String comments) Sets selected.toString()
-
Constructor Details
-
ProductConfigWrapper
public ProductConfigWrapper()Creates a new instance of ProductConfigWrapper -
ProductConfigWrapper
public ProductConfigWrapper(Delegator delegator, LocalDispatcher dispatcher, String productId, String productStoreId, String catalogId, String webSiteId, String currencyUomId, Locale locale, GenericValue autoUserLogin) throws Exception - Throws:
Exception
-
ProductConfigWrapper
-
-
Method Details
-
setConfigId
Sets config id.- Parameters:
configId
- the config id
-
loadConfig
Load config.- Parameters:
delegator
- the delegatorconfigId
- the config id- Throws:
Exception
- the exception
-
setSelected
public void setSelected(String configItemId, Long sequenceNum, String configOptionId, String comments) throws Exception Sets selected.- Parameters:
configItemId
- the config item idsequenceNum
- the sequence numconfigOptionId
- the config option idcomments
- the comments- Throws:
Exception
- the exception
-
resetConfig
public void resetConfig()Reset config. -
setDefaultConfig
public void setDefaultConfig()Sets default config. -
getConfigId
Gets config id.- Returns:
- the config id
-
getDelegator
Gets delegator.- Returns:
- the delegator
-
getDispatcher
Gets dispatcher.- Returns:
- the dispatcher
-
hashCode
public int hashCode() -
equals
-
toString
-
getQuestions
Gets questions.- Returns:
- the questions
-
getProduct
Gets product.- Returns:
- the product
-
setSelected
Sets selected.- Parameters:
question
- the questionoption
- the optioncomments
- the comments- Throws:
Exception
- the exception
-
setSelected
public void setSelected(int question, int option, int component, String componentOption) throws Exception Sets selected.- Parameters:
question
- the questionoption
- the optioncomponent
- the componentcomponentOption
- the component option- Throws:
Exception
- the exception
-
getSelectedOptions
Gets selected options.- Returns:
- the selected options
-
getDefaultOptions
Gets default options.- Returns:
- the default options
-
getTotalListPrice
Gets total list price.- Returns:
- the total list price
-
getTotalPrice
Gets total price.- Returns:
- the total price
-
getDefaultPrice
Gets default price.- Returns:
- the default price
-
isCompleted
public boolean isCompleted()Is completed boolean.- Returns:
- the boolean
-
getItemOtion
Gets item otion.- Parameters:
itemIndex
- the item indexoptionIndex
- the option index- Returns:
- the item otion
-