| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.order.CommerceIdentifierImpl
atg.commerce.order.CommerceItemImpl
public class CommerceItemImpl
An implementation of a class which represents a CommerceItem. This class implements all the methods to manipulate a CommerceItem object.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| protected  AuxiliaryData | mAuxiliaryData | 
| Constructor Summary | |
|---|---|
| CommerceItemImpl() | |
| Method Summary | |
|---|---|
|  void | addChangedProperty(java.lang.String pPropertyName)Adds a changedProperty | 
|  void | addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship)Add the PaymentGroupRelationship to the container. | 
|  void | addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship,
                            int pIndex)Add the PaymentGroupRelationship to the container at the given index. | 
|  void | addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)Add the ShippingGroupRelationship to the container. | 
|  void | addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
                             int pIndex)Add the ShippingGroupRelationship to the container at the given index. | 
|  void | clearChangedProperties()Clears the changedProperties List | 
| protected  void | createAuxiliaryData()creates an AuxiliaryData object which is to be used with this CommerceItem. | 
|  AuxiliaryData | getAuxiliaryData()returns the AuxiliaryData. | 
|  java.lang.String | getCatalogId()Returns the catalogId | 
|  java.lang.String | getCatalogKey()Returns the catalogKey | 
|  java.lang.String | getCatalogRefId()Returns the catalogRefId | 
|  java.util.Set | getChangedProperties()Returns the changedProperties | 
|  java.lang.String | getCommerceItemClassType()Returns the commerceItemClassType | 
|  PaymentGroupRelationship | getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)Returns the PaymentGroupRelationship whose id is pPaymentGroupRelationshipId. | 
|  int | getPaymentGroupRelationshipCount()Returns the number of PaymentGroupRelationships in the container. | 
|  java.util.List | getPaymentGroupRelationships()Returns a List of PaymentGroupRelationships | 
|  ItemPriceInfo | getPriceInfo()returns the CommerceItemPriceInfo object. | 
|  MutableRepositoryItem | getPriceInfoRepositoryItem()Returns the priceInfoRepositoryItem | 
|  java.lang.Object | getPropertyValue(java.lang.String pPropertyName)Returns a property value | 
|  long | getQuantity()returns the number of CommerceItems which this CommerceItem object represents. | 
|  MutableRepositoryItem | getRepositoryItem()Returns the repositoryItem | 
|  long | getReturnedQuantity()Returns the returnedQuantity | 
|  boolean | getSaveAllProperties()Returns the saveAllProperties | 
|  ShippingGroupRelationship | getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)Returns the ShippingGroupRelationship whose id is pShippingGroupRelationshipId. | 
|  ShippingGroupRelationshipContainerImpl | getShippingGroupRelationshipContainer()returns the ShippingGroupRelationshipContainer | 
|  int | getShippingGroupRelationshipCount()Returns the number of ShippingGroupRelationships in the container. | 
|  java.util.List | getShippingGroupRelationships()Returns a List of ShippingGroupRelationships | 
|  int | getState()returns the CommerceItem state. | 
|  java.lang.String | getStateAsString()returns the CommerceItem state as a String. | 
|  java.lang.String | getStateAsUserResource()returns the CommerceItem state as a user resource | 
|  java.lang.String | getStateDetail()returns the CommerceItem state details. | 
|  boolean | isChanged()Returns the isChanged flag | 
|  void | removeAllPaymentGroupRelationships()Removes all the PaymentGroupRelationships | 
|  void | removeAllShippingGroupRelationships()Removes all the ShippingGroupRelationships | 
|  PaymentGroupRelationship | removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)Removes a PaymentGroupRelationship whose id is passed in. | 
|  ShippingGroupRelationship | removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)Removes a ShippingGroupRelationship whose id is passed in. | 
|  void | setCatalogId(java.lang.String pCatalogId)Sets the catalogId | 
|  void | setCatalogKey(java.lang.String pCatalogKey)Sets the catalogKey | 
|  void | setCatalogRefId(java.lang.String pCatalogRefId)Sets the catalogRefId | 
|  void | setChanged(boolean pChanged)Marks this object as changed | 
|  void | setCommerceItemClassType(java.lang.String pCommerceItemClassType)Sets the commerceItemClassType | 
|  void | setPriceInfo(ItemPriceInfo pPriceInfo)sets the ItemPriceInfo object. | 
|  void | setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)Sets the priceInfoRepositoryItem | 
|  void | setPropertyValue(java.lang.String pPropertyName,
                 java.lang.Object pPropertyValue)Sets a property value | 
|  void | setQuantity(long pQuantity)sets the number of CommerceItems which this CommerceItem object represents. | 
|  void | setRepositoryItem(MutableRepositoryItem pRepositoryItem)Sets the repositoryItem | 
|  void | setSaveAllProperties(boolean pSaveAllProperties)Sets the saveAllProperties | 
|  void | setState(int pState)sets the CommerceItem state. | 
|  void | setStateAsString(java.lang.String pState)sets the CommerceItem state using a String | 
|  void | setStateDetail(java.lang.String pStateDetail)sets the CommerceItem state details. | 
|  java.lang.String | toString()Method that renders the general information in a readable string format | 
|  void | update(java.util.Observable o,
       java.lang.Object arg)This method is called whenever a property in a contained object changes and the containing object needs to be notified. | 
| Methods inherited from class atg.commerce.order.CommerceIdentifierImpl | 
|---|
| getId, setId | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface atg.commerce.order.CommerceIdentifier | 
|---|
| getId | 
| Field Detail | 
|---|
public static final java.lang.String CLASS_VERSION
protected AuxiliaryData mAuxiliaryData
| Constructor Detail | 
|---|
public CommerceItemImpl()
| Method Detail | 
|---|
public java.lang.String getCommerceItemClassType()
getCommerceItemClassType in interface CommerceItempublic void setCommerceItemClassType(java.lang.String pCommerceItemClassType)
setCommerceItemClassType in interface CommerceItempublic java.lang.String getCatalogId()
getCatalogId in interface CommerceItempublic void setCatalogId(java.lang.String pCatalogId)
setCatalogId in interface CommerceItempublic java.lang.String getCatalogRefId()
getCatalogRefId in interface CommerceItempublic void setCatalogRefId(java.lang.String pCatalogRefId)
setCatalogRefId in interface CommerceItempublic java.lang.String getCatalogKey()
getCatalogKey in interface CommerceItempublic void setCatalogKey(java.lang.String pCatalogKey)
setCatalogKey in interface CommerceItempublic long getQuantity()
getQuantity in interface CommerceItempublic void setQuantity(long pQuantity)
setQuantity in interface CommerceItempQuantity - the new value for the quantitypublic long getReturnedQuantity()
getReturnedQuantity in interface CommerceItempublic ShippingGroupRelationshipContainerImpl getShippingGroupRelationshipContainer()
public int getState()
getState in interface CommerceItempublic void setState(int pState)
setState in interface CommerceItempState - the state to setpublic java.lang.String getStateAsString()
public void setStateAsString(java.lang.String pState)
pState - the state to setpublic java.lang.String getStateAsUserResource()
public java.lang.String getStateDetail()
getStateDetail in interface CommerceItempublic void setStateDetail(java.lang.String pStateDetail)
setStateDetail in interface CommerceItempStateDetail - the stateDetail to setpublic ItemPriceInfo getPriceInfo()
getPriceInfo in interface CommerceItempublic void setPriceInfo(ItemPriceInfo pPriceInfo)
setPriceInfo in interface CommerceItempPriceInfo - the PriceInfo object to setpublic MutableRepositoryItem getPriceInfoRepositoryItem()
public void setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
public AuxiliaryData getAuxiliaryData()
getAuxiliaryData in interface CommerceItemprotected void createAuxiliaryData()
public java.util.List getShippingGroupRelationships()
getShippingGroupRelationships in interface ShippingGroupRelationshipContainer
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)
                                  throws DuplicateRelationshipException,
                                         InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
                                         int pIndex)
                                  throws DuplicateRelationshipException,
                                         InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
                                                          throws RelationshipNotFoundException,
                                                                 InvalidParameterException
removeShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships in interface ShippingGroupRelationshipContainer
public ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
                                                       throws RelationshipNotFoundException,
                                                              InvalidParameterException
getShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount in interface ShippingGroupRelationshipContainerpublic java.util.List getPaymentGroupRelationships()
getPaymentGroupRelationships in interface PaymentGroupRelationshipContainer
public void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship)
                                 throws DuplicateRelationshipException,
                                        InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship,
                                        int pIndex)
                                 throws DuplicateRelationshipException,
                                        InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public PaymentGroupRelationship removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
                                                        throws RelationshipNotFoundException,
                                                               InvalidParameterException
removePaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllPaymentGroupRelationships()
removeAllPaymentGroupRelationships in interface PaymentGroupRelationshipContainer
public PaymentGroupRelationship getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
                                                     throws RelationshipNotFoundException,
                                                            InvalidParameterException
getPaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getPaymentGroupRelationshipCount()
getPaymentGroupRelationshipCount in interface PaymentGroupRelationshipContainer
public void update(java.util.Observable o,
                   java.lang.Object arg)
update in interface java.util.Observero - the object which changedarg - the name of the property which changedpublic boolean getSaveAllProperties()
getSaveAllProperties in interface ChangedPropertiespublic void setSaveAllProperties(boolean pSaveAllProperties)
setSaveAllProperties in interface ChangedPropertiespublic boolean isChanged()
isChanged in interface ChangedPropertiespublic void setChanged(boolean pChanged)
setChanged in interface ChangedPropertiespublic java.util.Set getChangedProperties()
getChangedProperties in interface ChangedPropertiespublic void addChangedProperty(java.lang.String pPropertyName)
addChangedProperty in interface ChangedPropertiespublic void clearChangedProperties()
clearChangedProperties in interface ChangedPropertiespublic MutableRepositoryItem getRepositoryItem()
getRepositoryItem in interface ChangedPropertiespublic void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
setRepositoryItem in interface ChangedPropertiespublic java.lang.Object getPropertyValue(java.lang.String pPropertyName)
getPropertyValue in interface ChangedProperties
public void setPropertyValue(java.lang.String pPropertyName,
                             java.lang.Object pPropertyValue)
setPropertyValue in interface ChangedPropertiespPropertyValue - the value to set for the given property valuepublic java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||