| 
 | |||||||||
| 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.ShippingGroupImpl
public class ShippingGroupImpl
This class is an implementation of a ShippingGroup. It represents all the information which designates a shipment. Examples would be HardgoodShippingGroup and ElectronicShippingGroup. This could include traditional shipping by a carrier, or electronic shipping. This class is not meant to be used directly because it does not contain any properties which are specific to any particular kind of payment. Rather a subclass such as HardgoodShippingGroup or ElectronicShippingGroup should be used.
HardgoodShippingGroup, 
ElectronicShippingGroup, 
Serialized Form| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| protected static java.util.ResourceBundle | sResourceBundleResource Bundle | 
| Constructor Summary | |
|---|---|
| ShippingGroupImpl() | |
| Method Summary | |
|---|---|
|  void | addChangedProperty(java.lang.String pPropertyName)Adds a changedProperty | 
|  void | addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship)Add the CommerceItemRelationship to the container. | 
|  void | addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship,
                            int pIndex)Add the CommerceItemRelationship to the container at the given index. | 
|  void | addHandlingInstruction(HandlingInstruction pHandlingInstruction)Add the HandlingInstruction to the container. | 
|  void | addHandlingInstruction(HandlingInstruction pHandlingInstruction,
                       int pIndex)Add the HandlingInstruction to the container at the given index. | 
|  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. | 
|  boolean | arePropertiesEmpty(java.util.Collection<java.lang.String> pPropertiesToCheck)Query whether the ShippingGroup object is empty. | 
|  void | clearChangedProperties()Clears the changedProperties List | 
|  void | copyProperties(ShippingGroup pSrcShippingGroup,
               java.util.Collection<java.lang.String> pPropertiesToCopy)Copy the shipping group information from the source shipping group to itself. | 
|  boolean | doPropertiesMatch(ShippingGroup pShippingGroupToMatchAgainst,
                  java.util.List<java.lang.String> pPropertiesToMatch)Is the shipping group passed in matches against the current instance? This method compares the current shipping group instance against the shipping group that is being passed in. | 
|  java.util.Date | getActualShipDate()Returns property actualShipDate. | 
|  java.util.Set | getChangedProperties()Returns the changedProperties | 
|  CommerceItemRelationship | getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)Returns the CommerceItemRelationship whose id is pCommerceItemRelationshipId. | 
|  int | getCommerceItemRelationshipCount()Returns the number of CommerceItemRelationships in the container. | 
|  java.util.List | getCommerceItemRelationships()Returns a List of CommerceItemRelationships | 
|  java.lang.String | getDescription()Returns the description | 
|  HandlingInstruction | getHandlingInstruction(java.lang.String pHandlingInstructionId)Returns the HandlingInstruction whose id is pHandlingInstructionId. | 
|  int | getHandlingInstructionCount()Returns the number of HandlingInstructions in the container. | 
|  java.util.List | getHandlingInstructions()Returns a List of HandlingInstructions | 
|  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 | 
|  ShippingPriceInfo | getPriceInfo()returns the ShippingPriceInfo object. | 
|  MutableRepositoryItem | getPriceInfoRepositoryItem()Returns the priceInfoRepositoryItem | 
|  java.lang.Object | getPropertyValue(java.lang.String pPropertyName)Returns a property value | 
|  MutableRepositoryItem | getRepositoryItem()Returns the repositoryItem | 
|  boolean | getSaveAllProperties()Returns the saveAllProperties | 
|  java.util.Date | getShipOnDate()Returns the shipOnDate. | 
|  java.lang.String | getShippingGroupClassType()Returns the ShippingGroupClassType | 
|  java.lang.String | getShippingMethod()Returns the shippingMethod | 
|  java.util.Map | getSpecialInstructions()Returns the specialInstructions | 
|  int | getState()returns the ShippingGroup state. | 
|  java.lang.String | getStateAsString()returns the ShippingGroup state as a String. | 
|  java.lang.String | getStateAsUserResource()returns the ShippingGroup state as a user resource | 
|  java.lang.String | getStateDetail()returns the ShippingGroup state details. | 
|  java.util.Date | getSubmittedDate()Returns the submittedDate | 
|  boolean | isChanged()Returns the isChanged flag | 
|  void | removeAllCommerceItemRelationships()Removes all the CommerceItemRelationships | 
|  void | removeAllHandlingInstructions()Removes all the HandlingInstructions in the container. | 
|  void | removeAllPaymentGroupRelationships()Removes all the PaymentGroupRelationships | 
|  CommerceItemRelationship | removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)Removes a CommerceItemRelationship whose id is passed in. | 
|  HandlingInstruction | removeHandlingInstruction(java.lang.String pHandlingInstructionId)Removes a HandlingInstruction whose id is passed in. | 
|  PaymentGroupRelationship | removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)Removes a PaymentGroupRelationship whose id is passed in. | 
|  void | setActualShipDate(java.util.Date pActualShipDate)Sets property actualShipDate | 
|  void | setChanged(boolean pChanged)Marks this object as changed | 
|  void | setDescription(java.lang.String pDescription)Sets the description | 
|  void | setPriceInfo(ShippingPriceInfo pInfo)sets the ShippingPriceInfo object. | 
|  void | setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)Sets the priceInfoRepositoryItem | 
|  void | setPropertyValue(java.lang.String pPropertyName,
                 java.lang.Object pPropertyValue)Sets a property value | 
|  void | setRepositoryItem(MutableRepositoryItem pRepositoryItem)Sets the repositoryItem | 
|  void | setSaveAllProperties(boolean pSaveAllProperties)Sets the saveAllProperties | 
|  void | setShipOnDate(java.util.Date pShipOnDate)Sets the shipOnDate | 
|  void | setShippingGroupClassType(java.lang.String pShippingGroupClassType)Sets the ShippingGroupClassType | 
|  void | setShippingMethod(java.lang.String pShippingMethod)Sets the shippingMethod | 
|  void | setSpecialInstructions(java.util.Map pSpecialInstructions)Sets the specialInstructions | 
|  void | setState(int pState)sets the ShippingGroup state. | 
|  void | setStateAsString(java.lang.String pState)sets the ShippingGroup state as a string. | 
|  void | setStateDetail(java.lang.String pStateDetail)sets the ShippingGroup state details. | 
|  void | setSubmittedDate(java.util.Date pSubmittedDate)Sets the submittedDate | 
|  java.lang.String | toString()returns a string representation of this object | 
|  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 java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
| Constructor Detail | 
|---|
public ShippingGroupImpl()
| Method Detail | 
|---|
public java.lang.String getShippingGroupClassType()
getShippingGroupClassType in interface ShippingGrouppublic void setShippingGroupClassType(java.lang.String pShippingGroupClassType)
setShippingGroupClassType in interface ShippingGrouppublic java.lang.String getShippingMethod()
getShippingMethod in interface ShippingGrouppublic void setShippingMethod(java.lang.String pShippingMethod)
setShippingMethod in interface ShippingGrouppublic java.lang.String getDescription()
getDescription in interface ShippingGrouppublic void setDescription(java.lang.String pDescription)
setDescription in interface ShippingGrouppublic int getState()
getState in interface ShippingGrouppublic void setState(int pState)
setState in interface ShippingGrouppState - 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 ShippingGrouppublic void setStateDetail(java.lang.String pStateDetail)
setStateDetail in interface ShippingGrouppStateDetail - the stateDetail to setpublic ShippingPriceInfo getPriceInfo()
getPriceInfo in interface ShippingGrouppublic void setPriceInfo(ShippingPriceInfo pInfo)
setPriceInfo in interface ShippingGrouppInfo - the ShippingPriceInfo to setpublic MutableRepositoryItem getPriceInfoRepositoryItem()
public void setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
public java.util.Date getShipOnDate()
getShipOnDate in interface ShippingGrouppublic void setShipOnDate(java.util.Date pShipOnDate)
setShipOnDate in interface ShippingGrouppublic java.util.Date getActualShipDate()
getActualShipDate in interface ShippingGrouppublic void setActualShipDate(java.util.Date pActualShipDate)
setActualShipDate in interface ShippingGrouppActualShipDate - the value to set for property actualShipDatepublic java.util.Date getSubmittedDate()
getSubmittedDate in interface ShippingGrouppublic void setSubmittedDate(java.util.Date pSubmittedDate)
setSubmittedDate in interface ShippingGrouppublic java.util.Map getSpecialInstructions()
getSpecialInstructions in interface ShippingGrouppublic void setSpecialInstructions(java.util.Map pSpecialInstructions)
public java.util.List getCommerceItemRelationships()
getCommerceItemRelationships in interface CommerceItemRelationshipContainer
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship)
                                 throws DuplicateRelationshipException,
                                        InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship,
                                        int pIndex)
                                 throws DuplicateRelationshipException,
                                        InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public CommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
                                                        throws RelationshipNotFoundException,
                                                               InvalidParameterException
removeCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships in interface CommerceItemRelationshipContainer
public CommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
                                                     throws RelationshipNotFoundException,
                                                            InvalidParameterException
getCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount in interface CommerceItemRelationshipContainerpublic 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 PaymentGroupRelationshipContainerpublic java.util.List getHandlingInstructions()
getHandlingInstructions in interface HandlingInstructionContainer
public void addHandlingInstruction(HandlingInstruction pHandlingInstruction)
                            throws DuplicateHandlingInstructionException,
                                   InvalidParameterException
addHandlingInstruction in interface HandlingInstructionContainerDuplicateHandlingInstructionException
InvalidParameterException
public void addHandlingInstruction(HandlingInstruction pHandlingInstruction,
                                   int pIndex)
                            throws DuplicateHandlingInstructionException,
                                   InvalidParameterException
addHandlingInstruction in interface HandlingInstructionContainerDuplicateHandlingInstructionException
InvalidParameterException
public HandlingInstruction removeHandlingInstruction(java.lang.String pHandlingInstructionId)
                                              throws HandlingInstructionNotFoundException,
                                                     InvalidParameterException
removeHandlingInstruction in interface HandlingInstructionContainerHandlingInstructionNotFoundException
InvalidParameterExceptionpublic void removeAllHandlingInstructions()
removeAllHandlingInstructions in interface HandlingInstructionContainer
public HandlingInstruction getHandlingInstruction(java.lang.String pHandlingInstructionId)
                                           throws HandlingInstructionNotFoundException,
                                                  InvalidParameterException
getHandlingInstruction in interface HandlingInstructionContainerHandlingInstructionNotFoundException
InvalidParameterExceptionpublic int getHandlingInstructionCount()
getHandlingInstructionCount in interface HandlingInstructionContainer
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
public boolean arePropertiesEmpty(java.util.Collection<java.lang.String> pPropertiesToCheck)
                           throws CommerceException
If any of the list of properties provided in this method is not found, then this method throws an exception.
Also if any of the property is not empty, then this method considers the object as not empty.
pPropertiesToCheck - -- The list of properties to check
pPropertiesToCheck is null, false otherwise.
CommerceException
public void copyProperties(ShippingGroup pSrcShippingGroup,
                           java.util.Collection<java.lang.String> pPropertiesToCopy)
                    throws CommerceException
If any of the list of properties provided in this method is not found, then this method throws an exception.
pSrcShippingGroup - -- The source shipping group from where the information to be copiedpPropertiesToCopy - -- The list of properties to copy
CommerceException
public boolean doPropertiesMatch(ShippingGroup pShippingGroupToMatchAgainst,
                                 java.util.List<java.lang.String> pPropertiesToMatch)
                          throws CommerceException
pShippingGroupToMatchAgainst - -- The shipping group to be matched against the current instancepPropertiesToMatch - -- The List of properties to be matched against
CommerceExceptionAddressTools#compareObjects(Object, Object, List, Set)}| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||