atg.commerce.order
Class ElectronicShippingGroup

java.lang.Object
  extended by atg.commerce.order.CommerceIdentifierImpl
      extended by atg.commerce.order.ShippingGroupImpl
          extended by atg.commerce.order.ElectronicShippingGroup
All Implemented Interfaces:
ChangedProperties, CommerceIdentifier, CommerceItemRelationshipContainer, CostCenterRelationshipContainer, atg.commerce.order.EmailAddressContainer, HandlingInstructionContainer, PaymentGroupRelationshipContainer, ShippingGroup, ShippingGroupPropertyContainer, java.io.Serializable, java.util.Observer

public class ElectronicShippingGroup
extends ShippingGroupImpl
implements atg.commerce.order.EmailAddressContainer, ShippingGroupPropertyContainer

This class is an implementation of a ElectronicShippingGroup. It represents all the information which designates a shipment of a good through electronic means.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.commerce.order.ShippingGroupImpl
sResourceBundle
 
Constructor Summary
ElectronicShippingGroup()
           
 
Method Summary
 boolean arePropertiesEmpty()
          This method is used to check the emptiness of the current shipping group instance.
 void copyProperties(ShippingGroupPropertyContainer pSrcShippingGroupPropertyContainer)
          This method is used to copy the information from the source shipping group to self destination.
 boolean doPropertiesMatch(ShippingGroupPropertyContainer pShippingGroupPropertyContainer)
          Do i match with the ShippingGroupPropertyContainer that is passed in?
 java.lang.String getEmailAddress()
          Returns the emailAddress
 java.util.List<java.lang.String> getPropertyContainerPropertyNames()
          This method returns the list of properties.
 java.util.List<java.lang.String> initializePropertyContainerPropertyNames()
          This method initializes the properties which are used to find a match, copy information from source shipping group to self and find emptiness of the shipping group.
 void setEmailAddress(java.lang.String pEmailAddress)
          Sets the emailAddress
 
Methods inherited from class atg.commerce.order.ShippingGroupImpl
addChangedProperty, addCommerceItemRelationship, addCommerceItemRelationship, addCostCenterRelationship, addCostCenterRelationship, addHandlingInstruction, addHandlingInstruction, addPaymentGroupRelationship, addPaymentGroupRelationship, arePropertiesEmpty, clearChangedProperties, copyProperties, doPropertiesMatch, getActualShipDate, getChangedProperties, getCommerceItemRelationship, getCommerceItemRelationshipCount, getCommerceItemRelationships, getCostCenterRelationship, getCostCenterRelationshipCount, getCostCenterRelationships, getDescription, getHandlingInstruction, getHandlingInstructionCount, getHandlingInstructions, getPaymentGroupRelationship, getPaymentGroupRelationshipCount, getPaymentGroupRelationships, getPriceInfo, getPriceInfoRepositoryItem, getPropertyValue, getRepositoryItem, getSaveAllProperties, getShipOnDate, getShippingGroupClassType, getShippingMethod, getSpecialInstructions, getState, getStateAsString, getStateAsUserResource, getStateDetail, getSubmittedDate, isChanged, removeAllCommerceItemRelationships, removeAllCostCenterRelationships, removeAllHandlingInstructions, removeAllPaymentGroupRelationships, removeCommerceItemRelationship, removeCostCenterRelationship, removeHandlingInstruction, removePaymentGroupRelationship, setActualShipDate, setChanged, setDescription, setPriceInfo, setPriceInfoRepositoryItem, setPropertyValue, setRepositoryItem, setSaveAllProperties, setShipOnDate, setShippingGroupClassType, setShippingMethod, setSpecialInstructions, setState, setStateAsString, setStateDetail, setSubmittedDate, toString, update
 
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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ElectronicShippingGroup

public ElectronicShippingGroup()
Method Detail

getEmailAddress

public java.lang.String getEmailAddress()
Returns the emailAddress

Specified by:
getEmailAddress in interface atg.commerce.order.EmailAddressContainer

setEmailAddress

public void setEmailAddress(java.lang.String pEmailAddress)
Sets the emailAddress

Specified by:
setEmailAddress in interface atg.commerce.order.EmailAddressContainer

getPropertyContainerPropertyNames

public java.util.List<java.lang.String> getPropertyContainerPropertyNames()
This method returns the list of properties. These properties are used to find a match, copy information from source shipping group to self and find emptiness of the shipping group.

Specified by:
getPropertyContainerPropertyNames in interface ShippingGroupPropertyContainer
Returns:
list of property names
See Also:
initializePropertyContainerPropertyNames()

initializePropertyContainerPropertyNames

public java.util.List<java.lang.String> initializePropertyContainerPropertyNames()
This method initializes the properties which are used to find a match, copy information from source shipping group to self and find emptiness of the shipping group.

If you want to include any additional properties, you need to extend this method to add any additional properties.

Specified by:
initializePropertyContainerPropertyNames in interface ShippingGroupPropertyContainer
Returns:
list of property names

copyProperties

public void copyProperties(ShippingGroupPropertyContainer pSrcShippingGroupPropertyContainer)
                    throws CommerceException
This method is used to copy the information from the source shipping group to self destination.

This method uses propertyContainerPropertyNames property list to copy from source shipping group to itself. Only the propertyContainerPropertyNames properties are copied.

Specified by:
copyProperties in interface ShippingGroupPropertyContainer
Parameters:
pSrcShippingGroupPropertyContainer - -- The information to be copied from
Throws:
CommerceException
See Also:
ShippingGroupImpl.copyProperties(ShippingGroup, java.util.Collection)

arePropertiesEmpty

public boolean arePropertiesEmpty()
                           throws CommerceException
This method is used to check the emptiness of the current shipping group instance. This method checks the emptiness for all properties from propertyContainerPropertyNames property list. If any of the properties are not empty this returns false, true otherwise.

Specified by:
arePropertiesEmpty in interface ShippingGroupPropertyContainer
Returns:
- if the object is empty returns true, false otherwise.
Throws:
CommerceException
See Also:
ShippingGroupImpl.arePropertiesEmpty(java.util.Collection)

doPropertiesMatch

public boolean doPropertiesMatch(ShippingGroupPropertyContainer pShippingGroupPropertyContainer)
                          throws CommerceException
Do i match with the ShippingGroupPropertyContainer that is passed in?

This method uses propertyContainerPropertyNames property list to find whether the shipping group matches with the current shipping group instance. If all the properties of shipping group parameter and current instance match, then the both instances are considered as match.

Specified by:
doPropertiesMatch in interface ShippingGroupPropertyContainer
Parameters:
pShippingGroupPropertyContainer - -- The object to be matched against
Returns:
if the properties matches returns true, otherwise false.
Throws:
CommerceException
See Also:
ShippingGroupImpl.doPropertiesMatch(ShippingGroup, List)