atg.projects.store.order
Class StoreOrderImpl

java.lang.Object
  extended by atg.commerce.order.CommerceIdentifierImpl
      extended by atg.commerce.order.OrderImpl
          extended by atg.projects.store.order.StoreOrderImpl
All Implemented Interfaces:
atg.commerce.order.ChangedProperties, atg.commerce.order.CommerceIdentifier, atg.commerce.order.CommerceItemContainer, atg.commerce.order.Order, atg.commerce.order.PaymentGroupContainer, atg.commerce.order.PaymentGroupRelationshipContainer, atg.commerce.order.RelationshipContainer, atg.commerce.order.ShippingGroupContainer, java.io.Serializable, java.util.Observer

public class StoreOrderImpl
extends atg.commerce.order.OrderImpl

Extension to order class.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string.
static java.lang.String GIFT_MESSAGE_FROM_KEY
          Gift message from key name.
static java.lang.String GIFT_MESSAGE_KEY
          Gift message key name.
static java.lang.String GIFT_MESSAGE_TO_KEY
          Gift message to key name.
static java.lang.String SAMPLE_COMMERCE_ITEM_TYPE
          Sample commerce item type.
 
Fields inherited from class atg.commerce.order.OrderImpl
mCommerceItemContainer, mInitialized, mInvalidated, mPaymentGroupContainer, mPaymentGroupRelationshipContainer, mRelationshipContainer, mShippingGroupContainer
 
Constructor Summary
StoreOrderImpl()
           
 
Method Summary
 void addOmsSegment(java.lang.String pOmsSegment)
          Sets the OMS segments.
 java.lang.String getAcknowledgableTransactionId()
          Returns the Acknowledgable Transaction Id.
 boolean getContainsGiftMessage()
          Checks to see if this order has a gift message special instruction.
 boolean getContainsGiftWrap()
          Checks to see if this order is gift wrapped or not.
 java.lang.String getCouponCode()
           
 boolean getGiftMessagePopulated()
          Determines if user has entered gift message.
 java.lang.String getOmsOrderId()
           
 java.util.List getOmsSegments()
           
 java.util.List getTrackingInfos()
          Gets the shipment tracking information objects for the order.
 void removeAllOmsSegments()
          Removes all OMS segments from order.
 void setAcknowledgableTransactionId(java.lang.String pAcknowledgableTransactionId)
          Sets the Acknowledgable Transaction Id.
 void setCouponCode(java.lang.String pCouponCode)
          Sets the code for the coupon redeemed for this order.
 void setGiftMessage(java.lang.String pMessageTo, java.lang.String pMessage, java.lang.String pMessageFrom)
          Sets the gift message.
 void setOmsOrderId(java.lang.String pOmsId)
          Sets the SAP order id.
 void setTrackingInfos(java.util.List pTrackingInfos)
          Sets the shipment tracking information objects for the order.
 java.lang.String toString()
          Method that renders the general order information in a readable string format.
 
Methods inherited from class atg.commerce.order.OrderImpl
addChangedProperty, addCommerceItem, addCommerceItem, addOrderIdToRelatedOrders, addPaymentGroup, addPaymentGroup, addPaymentGroupRelationship, addPaymentGroupRelationship, addRelationship, addRelationship, addShippingGroup, addShippingGroup, clearChangedProperties, ensureContainers, equals, getAgentId, getChangedProperties, getCommerceItem, getCommerceItemCount, getCommerceItems, getCommerceItemsByCatalogRefId, getCompletedDate, getCompletedTime, getCreatedByOrderId, getCreationDate, getCreationTime, getDescription, getLastModifiedDate, getLastModifiedTime, getManualAdjustments, getOrderClassType, getOriginOfOrder, getPaymentGroup, getPaymentGroupCount, getPaymentGroupRelationship, getPaymentGroupRelationshipCount, getPaymentGroupRelationships, getPaymentGroups, getPriceInfo, getPriceInfoRepositoryItem, getProfileId, getPropertyValue, getRelatedOrders, getRelationship, getRelationshipCount, getRelationships, getRepositoryItem, getSalesChannel, getSaveAllProperties, getShippingGroup, getShippingGroupCount, getShippingGroups, getSpecialInstructions, getState, getStateAsString, getStateAsUserResource, getStateDetail, getStateDetailAsUserResource, getSubmittedDate, getSubmittedTime, getTaxPriceInfo, getTaxPriceInfoRepositoryItem, getTotalCommerceItemCount, getVersion, hashCode, invalidateOrder, isChanged, isExplicitlySaved, isTransient, preEnsureContainers, removeAllCommerceItems, removeAllPaymentGroupRelationships, removeAllPaymentGroups, removeAllRelationships, removeAllShippingGroups, removeCommerceItem, removePaymentGroup, removePaymentGroupRelationship, removeRelationship, removeShippingGroup, setAgentId, setChanged, setCompletedDate, setCompletedTime, setCreatedByOrderId, setCreationDate, setCreationTime, setDescription, setExplicitlySaved, setLastModifiedDate, setLastModifiedTime, setManualAdjustments, setOrderClassType, setOriginOfOrder, setPriceInfo, setPriceInfoRepositoryItem, setProfileId, setPropertyValue, setRepositoryItem, setSalesChannel, setSaveAllProperties, setSpecialInstructions, setState, setStateAsString, setStateDetail, setSubmittedDate, setSubmittedTime, setTaxPriceInfo, setTaxPriceInfoRepositoryItem, setTransient, setVersion, update, updateVersion
 
Methods inherited from class atg.commerce.order.CommerceIdentifierImpl
getId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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.


GIFT_MESSAGE_TO_KEY

public static final java.lang.String GIFT_MESSAGE_TO_KEY
Gift message to key name.

See Also:
Constant Field Values

GIFT_MESSAGE_KEY

public static final java.lang.String GIFT_MESSAGE_KEY
Gift message key name.

See Also:
Constant Field Values

GIFT_MESSAGE_FROM_KEY

public static final java.lang.String GIFT_MESSAGE_FROM_KEY
Gift message from key name.

See Also:
Constant Field Values

SAMPLE_COMMERCE_ITEM_TYPE

public static final java.lang.String SAMPLE_COMMERCE_ITEM_TYPE
Sample commerce item type.

See Also:
Constant Field Values
Constructor Detail

StoreOrderImpl

public StoreOrderImpl()
Method Detail

getCouponCode

public java.lang.String getCouponCode()
Returns:
the code for the coupon redeemed for this order.

setCouponCode

public void setCouponCode(java.lang.String pCouponCode)
Sets the code for the coupon redeemed for this order.

Parameters:
pCouponCode - - the code for the coupon redeemed for this order

getOmsOrderId

public java.lang.String getOmsOrderId()
Returns:
the SAP order id.

setOmsOrderId

public void setOmsOrderId(java.lang.String pOmsId)
Sets the SAP order id.

Parameters:
pOmsId - - the SAP order id

getAcknowledgableTransactionId

public java.lang.String getAcknowledgableTransactionId()
Returns the Acknowledgable Transaction Id.

Returns:
the Acknowledgable Transaction Id

setAcknowledgableTransactionId

public void setAcknowledgableTransactionId(java.lang.String pAcknowledgableTransactionId)
Sets the Acknowledgable Transaction Id.

Parameters:
pAcknowledgableTransactionId - - the Acknowledgable Transaction Id

getOmsSegments

public java.util.List getOmsSegments()
Returns:
list of OMS segments.

setTrackingInfos

public void setTrackingInfos(java.util.List pTrackingInfos)
Sets the shipment tracking information objects for the order.

Parameters:
pTrackingInfos - - the shipment tracking information objects for the order

getTrackingInfos

public java.util.List getTrackingInfos()
Gets the shipment tracking information objects for the order.

Returns:
the shipment tracking information objects for the order

addOmsSegment

public void addOmsSegment(java.lang.String pOmsSegment)
Sets the OMS segments.

Parameters:
pOmsSegment - - list of OMS segments

removeAllOmsSegments

public void removeAllOmsSegments()
Removes all OMS segments from order.


getContainsGiftWrap

public boolean getContainsGiftWrap()
Checks to see if this order is gift wrapped or not.

Returns:
true if gift wrapped, false - otherwise

getContainsGiftMessage

public boolean getContainsGiftMessage()
Checks to see if this order has a gift message special instruction.

Returns:
true if order contains gift message, false - otherwise

setGiftMessage

public void setGiftMessage(java.lang.String pMessageTo,
                           java.lang.String pMessage,
                           java.lang.String pMessageFrom)
Sets the gift message.

Parameters:
pMessageTo - the message to field
pMessage - the message field
pMessageFrom - the message from field

getGiftMessagePopulated

public boolean getGiftMessagePopulated()
Determines if user has entered gift message.

Returns:
true if gift message was populated, false - otherwise

toString

public java.lang.String toString()
Method that renders the general order information in a readable string format.

Overrides:
toString in class atg.commerce.order.OrderImpl
Returns:
string represantation of the class