atg.commerce.order
Interface Order

All Superinterfaces:
CommerceIdentifier, CommerceItemContainer, PaymentGroupContainer, PaymentGroupRelationshipContainer, RelationshipContainer, java.io.Serializable, ShippingGroupContainer
All Known Subinterfaces:
B2BOrder
All Known Implementing Classes:
B2BOrderImpl, OrderImpl

public interface Order
extends CommerceItemContainer, ShippingGroupContainer, PaymentGroupContainer, RelationshipContainer, PaymentGroupRelationshipContainer, CommerceIdentifier, java.io.Serializable

Implemented by a class that represents an order. This interface provides all the methods to manipulate an Order object. Any object which is an Order needs to implement this interface. For an example, see atg.commerce.order.OrderImpl.

See Also:
OrderImpl

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Method Summary
 void addOrderIdToRelatedOrders(java.lang.String pOrderId)
          Sets the relatedOrders property
 boolean equals(java.lang.Object pOrder)
          Returns true if pOrder is the same as this Order.
 java.util.Date getCompletedDate()
          Returns the completedDate.
 long getCompletedTime()
          Gets the completedDate as a long.
 java.lang.String getCreatedByOrderId()
          Returns the createdByOrderId
 java.util.Date getCreationDate()
          Returns the creationDate.
 long getCreationTime()
          Gets the creationDate as a long.
 java.lang.String getDescription()
          Returns the description
 java.util.Date getLastModifiedDate()
          Returns the lastModifiedDate.
 long getLastModifiedTime()
          Gets the lastModifiedDate as a long.
 java.util.List getManualAdjustments()
          Returns a list of manualAdjustment repository items for this order.
 java.lang.String getOrderClassType()
          Returns the orderClassType
 java.lang.String getOriginOfOrder()
          Returns the OriginOfOrder property
 OrderPriceInfo getPriceInfo()
          Returns the OrderPriceInfo for the order
 java.lang.String getProfileId()
          Returns the RepositoryId of the profile which this Order belongs to.
 java.util.List getRelatedOrders()
          Returns the relatedOrders property
 java.util.Map getSpecialInstructions()
          Returns the specialInstructions
 int getState()
          Returns the order state.
 java.lang.String getStateDetail()
          Returns the order state details.
 java.util.Date getSubmittedDate()
          Returns the submittedDate.
 long getSubmittedTime()
          Gets the submittedDate as a long.
 TaxPriceInfo getTaxPriceInfo()
          Returns the taxPriceInfo
 boolean isChanged()
          Returns the isChanged flag
 boolean isExplicitlySaved()
          Returns true if the order was explicitly marked for saving.
 boolean isTransient()
          Returns the transient flag.
 void setCompletedTime(long pCompletedTime)
          Sets the completedDate as a long.
 void setCreatedByOrderId(java.lang.String pCreatedByOrderId)
          Sets the createdByOrderId
 void setCreationTime(long pCreationTime)
          Sets the creationDate as a long.
 void setDescription(java.lang.String pDescription)
          Sets the description
 void setExplicitlySaved(boolean pExplicitlySave)
          Marks the order as one that has been explicitly saved.
 void setLastModifiedTime(long pLastModifiedTime)
          Sets the lastModifiedDate as a long.
 void setManualAdjustments(java.util.List pManualAdjustments)
           
 void setOrderClassType(java.lang.String pOrderClassType)
          Sets the orderClassType
 void setOriginOfOrder(java.lang.String pOriginOfOrder)
          Sets the originOfOrder property.
 void setPriceInfo(OrderPriceInfo pPriceInfo)
          Sets the OrderPriceInfo for the order
 void setProfileId(java.lang.String pId)
          Sets the RepositoryId of the profile which this Order belongs to.
 void setState(int pState)
          Sets the order state.
 void setStateDetail(java.lang.String pStateDetail)
          Sets the order state details.
 void setSubmittedTime(long pSubmittedTime)
          Sets the submittedDate as a long.
 void setTaxPriceInfo(TaxPriceInfo pTaxPriceInfo)
          Sets the taxPriceInfo
 void setTransient(boolean pTransient)
          Sets the transient flag.
 
Methods inherited from interface atg.commerce.order.CommerceItemContainer
addCommerceItem, addCommerceItem, getCommerceItem, getCommerceItemCount, getCommerceItems, getCommerceItemsByCatalogRefId, getTotalCommerceItemCount, removeAllCommerceItems, removeCommerceItem
 
Methods inherited from interface atg.commerce.order.ShippingGroupContainer
addShippingGroup, addShippingGroup, getShippingGroup, getShippingGroupCount, getShippingGroups, removeAllShippingGroups, removeShippingGroup
 
Methods inherited from interface atg.commerce.order.PaymentGroupContainer
addPaymentGroup, addPaymentGroup, getPaymentGroup, getPaymentGroupCount, getPaymentGroups, removeAllPaymentGroups, removePaymentGroup
 
Methods inherited from interface atg.commerce.order.RelationshipContainer
addRelationship, addRelationship, getRelationship, getRelationshipCount, getRelationships, removeAllRelationships, removeRelationship
 
Methods inherited from interface atg.commerce.order.PaymentGroupRelationshipContainer
addPaymentGroupRelationship, addPaymentGroupRelationship, getPaymentGroupRelationship, getPaymentGroupRelationshipCount, getPaymentGroupRelationships, removeAllPaymentGroupRelationships, removePaymentGroupRelationship
 
Methods inherited from interface atg.commerce.order.CommerceIdentifier
getId
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Method Detail

getOrderClassType

java.lang.String getOrderClassType()
Returns the orderClassType


setOrderClassType

void setOrderClassType(java.lang.String pOrderClassType)
Sets the orderClassType


getProfileId

java.lang.String getProfileId()
Returns the RepositoryId of the profile which this Order belongs to.


setProfileId

void setProfileId(java.lang.String pId)
Sets the RepositoryId of the profile which this Order belongs to.


getDescription

java.lang.String getDescription()
Returns the description


setDescription

void setDescription(java.lang.String pDescription)
Sets the description


getState

int getState()
Returns the order state.


setState

void setState(int pState)
Sets the order state.


getStateDetail

java.lang.String getStateDetail()
Returns the order state details.


setStateDetail

void setStateDetail(java.lang.String pStateDetail)
Sets the order state details.


getPriceInfo

OrderPriceInfo getPriceInfo()
Returns the OrderPriceInfo for the order


setPriceInfo

void setPriceInfo(OrderPriceInfo pPriceInfo)
Sets the OrderPriceInfo for the order


getTaxPriceInfo

TaxPriceInfo getTaxPriceInfo()
Returns the taxPriceInfo


setTaxPriceInfo

void setTaxPriceInfo(TaxPriceInfo pTaxPriceInfo)
Sets the taxPriceInfo


getCreatedByOrderId

java.lang.String getCreatedByOrderId()
Returns the createdByOrderId


setCreatedByOrderId

void setCreatedByOrderId(java.lang.String pCreatedByOrderId)
Sets the createdByOrderId


getRelatedOrders

java.util.List getRelatedOrders()
Returns the relatedOrders property


addOrderIdToRelatedOrders

void addOrderIdToRelatedOrders(java.lang.String pOrderId)
Sets the relatedOrders property


getSubmittedDate

java.util.Date getSubmittedDate()
Returns the submittedDate. This is the date which the order was "checked out".


setSubmittedTime

void setSubmittedTime(long pSubmittedTime)
Sets the submittedDate as a long. This is the date which the order was "checked out".


getSubmittedTime

long getSubmittedTime()
Gets the submittedDate as a long. This is the date which the order was "checked out".


getCreationDate

java.util.Date getCreationDate()
Returns the creationDate. This is the date that the Order was created.


setCreationTime

void setCreationTime(long pCreationTime)
Sets the creationDate as a long. This is the date that the Order was created.


getCreationTime

long getCreationTime()
Gets the creationDate as a long. This is the date that the Order was created.


getLastModifiedDate

java.util.Date getLastModifiedDate()
Returns the lastModifiedDate. This is the date that the order was last saved.


setLastModifiedTime

void setLastModifiedTime(long pLastModifiedTime)
Sets the lastModifiedDate as a long. This is the date that the order was last saved.


getLastModifiedTime

long getLastModifiedTime()
Gets the lastModifiedDate as a long. This is the date that the order was last saved.


getCompletedDate

java.util.Date getCompletedDate()
Returns the completedDate. This is the date that the order was completed.


setCompletedTime

void setCompletedTime(long pCompletedTime)
Sets the completedDate as a long. This is the date that the order was completed.


getCompletedTime

long getCompletedTime()
Gets the completedDate as a long. This is the date that the order was completed.


isTransient

boolean isTransient()
Returns the transient flag. A transient Order is one which has not been persisted to a repository.


setTransient

void setTransient(boolean pTransient)
Sets the transient flag. A transient Order is one which has not been persisted to a repository.


getSpecialInstructions

java.util.Map getSpecialInstructions()
Returns the specialInstructions


setOriginOfOrder

void setOriginOfOrder(java.lang.String pOriginOfOrder)
Sets the originOfOrder property. The possible value will be default as the order is placed by the normal checkout process; or scheduledOrder as the order is placed within a scheduledOrder


getOriginOfOrder

java.lang.String getOriginOfOrder()
Returns the OriginOfOrder property


isChanged

boolean isChanged()
Returns the isChanged flag


equals

boolean equals(java.lang.Object pOrder)
Returns true if pOrder is the same as this Order.

Overrides:
equals in class java.lang.Object

setExplicitlySaved

void setExplicitlySaved(boolean pExplicitlySave)
Marks the order as one that has been explicitly saved. Explicitly saving an order indicates that it was persisted because of a direct call instead of the automatic persistence of a session's shopping cart.

Parameters:
pExplicitlySave - is true if this order was explicitly saved, false otherwise.

isExplicitlySaved

boolean isExplicitlySaved()
Returns true if the order was explicitly marked for saving.


getManualAdjustments

java.util.List getManualAdjustments()
Returns a list of manualAdjustment repository items for this order.

Returns:
List of repository items

setManualAdjustments

void setManualAdjustments(java.util.List pManualAdjustments)