public class ConfigurableCommerceItem extends CommerceItemImpl implements CommerceItemContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
mAuxiliaryData
Constructor and Description |
---|
ConfigurableCommerceItem() |
Modifier and Type | Method and Description |
---|---|
void |
addCommerceItem(CommerceItem pCommerceItem)
Add the CommerceItem to the container.
|
void |
addCommerceItem(CommerceItem pCommerceItem,
int pIndex)
Add the CommerceItem to the container at the given index.
|
CommerceItem |
getCommerceItem(java.lang.String pCommerceItemId)
Returns the CommerceItem whose id is pCommerceItemId.
|
CommerceItem |
getCommerceItem(java.lang.String pCommerceItemId,
boolean pSearchChildItems)
Returns the commerce item whose id is pCommerceItemId.
|
int |
getCommerceItemCount()
Returns the number of CommerceItems in the container.
|
java.util.List |
getCommerceItems()
Returns a List of CommerceItems
|
java.util.List |
getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId)
Returns a List of CommerceItems whose catalogRefId is pCatalogRefId.
|
java.lang.String |
getConfiguratorId()
Returns property configuratorId
|
java.lang.Boolean |
getConfigured()
Returns property configured
|
java.lang.String |
getNotes()
Returns property notes
|
java.lang.String |
getReconfigurationData()
Returns property reconfigurationData
|
long |
getTotalCommerceItemCount()
Returns the number of individual CommerceItems in the container.
|
double |
getTotalCommerceItemCountWithFraction()
Returns the total count of all commerce item quantities in the container.
|
void |
removeAllCommerceItems()
Removes all the CommerceItems
|
CommerceItem |
removeCommerceItem(java.lang.String pCommerceItemId)
Removes a CommerceItem whose id is passed in.
|
void |
setConfiguratorId(java.lang.String pConfiguratorId)
Sets property configuratorId
|
void |
setConfigured(java.lang.Boolean pConfigured)
Sets property configured
|
void |
setNotes(java.lang.String pNotes)
Sets property notes
|
void |
setReconfigurationData(java.lang.String pReconfigurationData)
Sets property reconfigurationData
|
void |
setRepositoryItem(MutableRepositoryItem pRepositoryItem)
Sets the repositoryItem
|
addChangedProperty, addCostCenterRelationship, addCostCenterRelationship, addPaymentGroupRelationship, addPaymentGroupRelationship, addShippingGroupRelationship, addShippingGroupRelationship, clearChangedProperties, createAuxiliaryData, getAuxiliaryData, getCatalogId, getCatalogKey, getCatalogRefId, getChangedProperties, getCommerceItemClassType, getCostCenterRelationship, getCostCenterRelationshipCount, getCostCenterRelationships, getExternalId, getPaymentGroupRelationship, getPaymentGroupRelationshipCount, getPaymentGroupRelationships, getPriceInfo, getPriceInfoRepositoryItem, getProductId, getPropertyValue, getQuantity, getQuantityDerivedAsFloatingPoint, getQuantityWithFraction, getRepositoryItem, getReturnedQuantity, getReturnedQuantityDerivedAsFloatingPoint, getReturnedQuantityWithFraction, getSaveAllProperties, getShippingGroupRelationship, getShippingGroupRelationshipContainer, getShippingGroupRelationshipCount, getShippingGroupRelationships, getState, getStateAsString, getStateAsUserResource, getStateDetail, isChanged, isFractional, removeAllCostCenterRelationships, removeAllPaymentGroupRelationships, removeAllShippingGroupRelationships, removeCostCenterRelationship, removePaymentGroupRelationship, removeShippingGroupRelationship, setCatalogId, setCatalogKey, setCatalogRefId, setChanged, setCommerceItemClassType, setExternalId, setPriceInfo, setPriceInfoRepositoryItem, setProductId, setPropertyValue, setQuantity, setQuantityWithFraction, setSaveAllProperties, setState, setStateAsString, setStateDetail, toString, update
getId, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
public static final java.lang.String CLASS_VERSION
public java.lang.String getNotes()
public void setNotes(java.lang.String pNotes)
pNotes
- the value to set for property notespublic java.lang.String getReconfigurationData()
public void setReconfigurationData(java.lang.String pReconfigurationData)
pReconfigurationData
- the value to set for property reconfigurationDatapublic java.lang.String getConfiguratorId()
public void setConfiguratorId(java.lang.String pConfiguratorId)
pConfiguratorId
- the value to set for property configuratorIdpublic java.lang.Boolean getConfigured()
public void setConfigured(java.lang.Boolean pConfigured)
pConfigured
- the value to set for property configuredpublic java.util.List getCommerceItems()
getCommerceItems
in interface CommerceItemContainer
public void addCommerceItem(CommerceItem pCommerceItem) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem
in interface CommerceItemContainer
DuplicateCommerceItemException
InvalidParameterException
public void addCommerceItem(CommerceItem pCommerceItem, int pIndex) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem
in interface CommerceItemContainer
DuplicateCommerceItemException
InvalidParameterException
public CommerceItem removeCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
removeCommerceItem
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public void removeAllCommerceItems()
removeAllCommerceItems
in interface CommerceItemContainer
public CommerceItem getCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItem
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public CommerceItem getCommerceItem(java.lang.String pCommerceItemId, boolean pSearchChildItems) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItem
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public java.util.List getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItemsByCatalogRefId
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public int getCommerceItemCount()
getCommerceItemCount
in interface CommerceItemContainer
public long getTotalCommerceItemCount()
getTotalCommerceItemCount
in interface CommerceItemContainer
public void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
setRepositoryItem
in interface ChangedProperties
setRepositoryItem
in class CommerceItemImpl
public double getTotalCommerceItemCountWithFraction()
getQuantityWithFraction()
,
getQuantity()
, in that order.getTotalCommerceItemCountWithFraction
in interface CommerceItemContainer
double
value.