|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.order.CommerceIdentifierImpl atg.commerce.order.OrderImpl
public class OrderImpl
An implementation of the Order interface which represents an Order. This class implements the Order and ChangedProperties interfaces and provides an implementation for the methods.
Order
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected CommerceItemContainerImpl |
mCommerceItemContainer
|
protected CostCenterContainerImpl |
mCostCenterContainer
|
protected CostCenterRelationshipContainerImpl |
mCostCenterRelationshipContainer
|
protected boolean |
mInitialized
|
protected boolean |
mInvalidated
|
protected PaymentGroupContainerImpl |
mPaymentGroupContainer
|
protected PaymentGroupRelationshipContainerImpl |
mPaymentGroupRelationshipContainer
|
protected RelationshipContainerImpl |
mRelationshipContainer
|
protected ShippingGroupContainerImpl |
mShippingGroupContainer
|
Constructor Summary | |
---|---|
OrderImpl()
|
Method Summary | |
---|---|
void |
addChangedProperty(java.lang.String pPropertyName)
Adds a changedProperty |
void |
addCommerceItem(CommerceItem pCommerceItem)
Add the CommerceItem to the container. |
void |
addCommerceItem(CommerceItem pCommerceItem,
int pIndex)
Add the CommerceItem to the container at the given index. |
void |
addCostCenter(CostCenter pCostCenter)
Add the CostCenter to the container. |
void |
addCostCenter(CostCenter pCostCenter,
int pIndex)
Add the CostCenter to the container at the given index. |
void |
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship)
Add the CostCenterRelationship to the container. |
void |
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship,
int pIndex)
Add the CostCenterRelationship to the container at the given index. |
void |
addOrderIdToRelatedOrders(java.lang.String pOrderId)
Adds an order id to the relatedOrders list |
void |
addPaymentGroup(PaymentGroup pPaymentGroup)
Add the PaymentGroup to the container. |
void |
addPaymentGroup(PaymentGroup pPaymentGroup,
int pIndex)
Add the PaymentGroup 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. |
void |
addRelationship(Relationship pRelationship)
Add the Relationship to the container. |
void |
addRelationship(Relationship pRelationship,
int pIndex)
Add the Relationship to the container at the given index. |
void |
addShippingGroup(ShippingGroup pShippingGroup)
Add the ShippingGroup to the container. |
void |
addShippingGroup(ShippingGroup pShippingGroup,
int pIndex)
Add the ShippingGroup to the container at the given index. |
void |
clearChangedProperties()
Clears the changedProperties List |
protected void |
ensureContainers()
Internal method to refresh the Commerce object list |
boolean |
equals(java.lang.Object pOrder)
Returns true if pOrder is the same as this Order. |
java.lang.String |
getAgentId()
Returns the agentId |
java.util.List |
getApprovalSystemMessages()
Returns property approvalSystemMessages |
java.util.List |
getApproverIds()
Returns property approverIds |
java.util.List |
getApproverMessages()
Returns property approverMessages |
java.util.List |
getAuthorizedApproverIds()
Returns property authorizedApproverIds |
java.util.Set |
getChangedProperties()
Returns the changedProperties |
CommerceItem |
getCommerceItem(java.lang.String pCommerceItemId)
Returns the CommerceItem whose id is pCommerceItemId. |
int |
getCommerceItemCount()
Returns the number of CommerceItems in the container. |
java.util.List |
getCommerceItems()
Returns a List of CommerceItems |
java.util.List |
getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId)
Returns a List of CommerceItems whose catalogRefId is pCatalogRefId. |
java.util.Date |
getCompletedDate()
Returns the completedDate |
long |
getCompletedTime()
Returns property completedTime |
CostCenter |
getCostCenter(java.lang.String pCostCenterId)
Returns the CostCenter whose id is pCostCenterId. |
int |
getCostCenterCount()
Returns the number of CostCenters in the container. |
CostCenterRelationship |
getCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Returns the CostCenterRelationship whose id is pCostCenterRelationshipId. |
int |
getCostCenterRelationshipCount()
Returns the number of CostCenterRelationships in the container. |
java.util.List |
getCostCenterRelationships()
Returns a List of CostCenterRelationships |
java.util.List |
getCostCenters()
Returns a List of CostCenters |
java.lang.String |
getCreatedByOrderId()
Returns property createdByOrderId |
java.util.Date |
getCreationDate()
Returns the creationDate |
java.lang.String |
getCreationSiteId()
Returns the creationSiteId |
long |
getCreationTime()
Returns property creationTime |
java.lang.String |
getDescription()
Returns the description |
java.util.Date |
getLastModifiedDate()
Returns the lastModifiedDate |
long |
getLastModifiedTime()
Returns property lastModifiedTime |
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 |
PaymentGroup |
getPaymentGroup(java.lang.String pPaymentGroupId)
Returns the PaymentGroup whose id is pPaymentGroupId. |
int |
getPaymentGroupCount()
Returns the number of PaymentGroups in the container. |
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 |
java.util.List |
getPaymentGroups()
Returns a List of PaymentGroups |
OrderPriceInfo |
getPriceInfo()
Returns the OrderPriceInfo for the order |
MutableRepositoryItem |
getPriceInfoRepositoryItem()
Returns the priceInfoRepositoryItem |
java.lang.String |
getProfileId()
Returns the RepositoryId of the profile which this Order belongs to. |
java.lang.Object |
getPropertyValue(java.lang.String pPropertyName)
Returns a property value |
java.util.List |
getRelatedOrders()
Returns property relatedOrders |
Relationship |
getRelationship(java.lang.String pRelationshipId)
Returns the Relationship whose id is pRelationshipId. |
int |
getRelationshipCount()
Returns the number of Relationships in the container. |
java.util.List |
getRelationships()
Returns a List of Relationships |
MutableRepositoryItem |
getRepositoryItem()
Returns the repositoryItem |
java.lang.String |
getSalesChannel()
Returns the salesChannel |
boolean |
getSaveAllProperties()
Returns the saveAllProperties |
ShippingGroup |
getShippingGroup(java.lang.String pShippingGroupId)
Returns the ShippingGroup whose id is pShippingGroupId. |
int |
getShippingGroupCount()
Returns the number of ShippingGroups in the container. |
java.util.List |
getShippingGroups()
Returns a List of ShippingGroups |
java.lang.String |
getSiteId()
Returns the siteId |
java.util.Map |
getSpecialInstructions()
Returns the specialInstructions |
int |
getState()
returns the Order state. |
java.lang.String |
getStateAsString()
|
java.lang.String |
getStateAsUserResource()
returns the Order state as a user resource |
java.lang.String |
getStateDetail()
returns the Order state details. |
java.lang.String |
getStateDetailAsUserResource()
returns the Order state detail as a user resource |
java.util.Date |
getSubmittedDate()
Returns the submittedDate |
long |
getSubmittedTime()
Returns property submittedTime |
TaxPriceInfo |
getTaxPriceInfo()
Returns the taxPriceInfo |
MutableRepositoryItem |
getTaxPriceInfoRepositoryItem()
Returns the taxPriceInfoRepositoryItem |
long |
getTotalCommerceItemCount()
Returns the number of individual CommerceItems in the container. |
int |
getVersion()
Returns property version |
int |
hashCode()
Override the default hashCode method to return the hashCode of the id. |
void |
invalidateOrder()
Invalidates the order so on the next access the order will be refreshed from the item descriptors. |
boolean |
isChanged()
Returns the isChanged flag |
boolean |
isExplicitlySaved()
Returns true if the order was explicitly marked for saving. |
boolean |
isTransient()
Returns the transient property |
protected void |
preEnsureContainers()
Method which is called by ensureContainers to allow subclasses to do any initialization when the order is reconstructed. |
void |
removeAllCommerceItems()
Removes all the CommerceItems |
void |
removeAllCostCenterRelationships()
Removes all the CostCenterRelationships |
void |
removeAllCostCenters()
Removes all the CostCenters |
void |
removeAllPaymentGroupRelationships()
Removes all the PaymentGroupRelationships |
void |
removeAllPaymentGroups()
Removes all the PaymentGroups |
void |
removeAllRelationships()
Removes all the Relationships |
void |
removeAllShippingGroups()
Removes all the ShippingGroups |
CommerceItem |
removeCommerceItem(java.lang.String pCommerceItemId)
Removes a CommerceItem whose id is passed in. |
CostCenter |
removeCostCenter(java.lang.String pCostCenterId)
Removes a CostCenter whose id is passed in. |
CostCenterRelationship |
removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Removes a CostCenterRelationship whose id is passed in. |
PaymentGroup |
removePaymentGroup(java.lang.String pPaymentGroupId)
Removes a PaymentGroup whose id is passed in. |
PaymentGroupRelationship |
removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
Removes a PaymentGroupRelationship whose id is passed in. |
Relationship |
removeRelationship(java.lang.String pRelationshipId)
Removes a Relationship whose id is passed in. |
ShippingGroup |
removeShippingGroup(java.lang.String pShippingGroupId)
Removes a ShippingGroup whose id is passed in. |
void |
repositionCommerceItem(CommerceItem pItem,
int pNewIndex)
Changes the position of the given commerce item within the order. |
void |
setAgentId(java.lang.String pAgentId)
Sets the agentId |
void |
setApprovalSystemMessages(java.util.List pApprovalSystemMessages)
Sets property approvalSystemMessages |
void |
setApproverIds(java.util.List pApproverIds)
Sets property approverIds |
void |
setApproverMessages(java.util.List pApproverMessages)
Sets property approverMessages |
void |
setAuthorizedApproverIds(java.util.List pAuthorizedApproverIds)
Sets property authorizedApproverIds |
void |
setChanged(boolean pChanged)
Marks this object as changed |
void |
setCompletedDate(java.util.Date pCompletedDate)
Sets the completedDate |
void |
setCompletedTime(long pCompletedTime)
Sets property completedTime |
void |
setCreatedByOrderId(java.lang.String pCreatedByOrderId)
Sets property createdByOrderId |
void |
setCreationDate(java.util.Date pCreationDate)
Sets the creationDate |
void |
setCreationSiteId(java.lang.String pCreationSiteId)
Sets the creationSiteId |
void |
setCreationTime(long pCreationTime)
Sets property creationTime |
void |
setDescription(java.lang.String pDescription)
Sets the description |
void |
setExplicitlySaved(boolean pExplicitlySaved)
Marks the order as one that has been explicitly saved. |
void |
setLastModifiedDate(java.util.Date pLastModifiedDate)
Sets the lastModifiedDate |
void |
setLastModifiedTime(long pLastModifiedTime)
Sets property lastModifiedTime |
void |
setManualAdjustments(java.util.List pManualAdjustments)
Sets the list of manual adjustment repository items |
void |
setOrderClassType(java.lang.String pOrderClassType)
Sets the orderClassType |
void |
setOriginOfOrder(java.lang.String pOriginOfOrder)
Sets the originOfOrder |
void |
setPriceInfo(OrderPriceInfo pPriceInfo)
Sets the OrderPriceInfo for the order |
void |
setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
Sets the priceInfoRepositoryItem |
void |
setProfileId(java.lang.String pId)
Sets the RepositoryId of the profile which this Order belongs to. |
void |
setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
Sets a property value |
void |
setRepositoryItem(MutableRepositoryItem pRepositoryItem)
Sets the repositoryItem and calls updateVersion() |
void |
setSalesChannel(java.lang.String pSalesChannel)
Sets the salesChannel |
void |
setSaveAllProperties(boolean pSaveAllProperties)
Sets the saveAllProperties |
void |
setSiteId(java.lang.String pSiteId)
Sets the siteId |
void |
setSpecialInstructions(java.util.Map pSpecialInstructions)
Sets the specialInstructions |
void |
setState(int pState)
sets the Order state. |
void |
setStateAsString(java.lang.String pState)
sets the Order state using a string. |
void |
setStateDetail(java.lang.String pStateDetail)
sets the Order state details. |
void |
setSubmittedDate(java.util.Date pSubmittedDate)
Sets the submittedDate |
void |
setSubmittedTime(long pSubmittedTime)
Sets property submittedTime |
void |
setTaxPriceInfo(TaxPriceInfo pTaxPriceInfo)
Sets the taxPriceInfo |
void |
setTaxPriceInfoRepositoryItem(MutableRepositoryItem pTaxPriceInfoRepositoryItem)
Sets the taxPriceInfoRepositoryItem |
void |
setTransient(boolean pTransient)
Deprecated. this method no longer does anything |
protected void |
setVersion(int pVersion)
Sets property version |
java.lang.String |
toString()
Method that renders the general order 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. |
void |
updateVersion()
Method for updating the local copy of the version stored in this class |
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 |
---|
public static java.lang.String CLASS_VERSION
protected transient CommerceItemContainerImpl mCommerceItemContainer
protected transient ShippingGroupContainerImpl mShippingGroupContainer
protected transient PaymentGroupContainerImpl mPaymentGroupContainer
protected transient RelationshipContainerImpl mRelationshipContainer
protected transient PaymentGroupRelationshipContainerImpl mPaymentGroupRelationshipContainer
protected transient CostCenterContainerImpl mCostCenterContainer
protected transient CostCenterRelationshipContainerImpl mCostCenterRelationshipContainer
protected transient volatile boolean mInitialized
protected transient boolean mInvalidated
Constructor Detail |
---|
public OrderImpl()
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public int getVersion()
protected void setVersion(int pVersion)
pVersion
- the value to set for property versionpublic void updateVersion()
public java.lang.String getOrderClassType()
getOrderClassType
in interface Order
public void setOrderClassType(java.lang.String pOrderClassType)
setOrderClassType
in interface Order
public java.lang.String getProfileId()
getProfileId
in interface Order
public void setProfileId(java.lang.String pId)
setProfileId
in interface Order
public java.lang.String getDescription()
getDescription
in interface Order
public void setDescription(java.lang.String pDescription)
setDescription
in interface Order
public int getState()
getState
in interface Order
public void setState(int pState)
setState
in interface Order
pState
- 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 getStateDetailAsUserResource()
public java.lang.String getStateDetail()
getStateDetail
in interface Order
public void setStateDetail(java.lang.String pStateDetail)
setStateDetail
in interface Order
pStateDetail
- the stateDetail to setpublic OrderPriceInfo getPriceInfo()
getPriceInfo
in interface Order
public void setPriceInfo(OrderPriceInfo pPriceInfo)
setPriceInfo
in interface Order
public MutableRepositoryItem getPriceInfoRepositoryItem()
public void setPriceInfoRepositoryItem(MutableRepositoryItem pPriceInfoRepositoryItem)
public TaxPriceInfo getTaxPriceInfo()
getTaxPriceInfo
in interface Order
public void setTaxPriceInfo(TaxPriceInfo pTaxPriceInfo)
setTaxPriceInfo
in interface Order
public MutableRepositoryItem getTaxPriceInfoRepositoryItem()
public void setTaxPriceInfoRepositoryItem(MutableRepositoryItem pTaxPriceInfoRepositoryItem)
public java.lang.String getCreatedByOrderId()
getCreatedByOrderId
in interface Order
public void setCreatedByOrderId(java.lang.String pCreatedByOrderId)
setCreatedByOrderId
in interface Order
pCreatedByOrderId
- the value to set for property createdByOrderIdpublic java.util.List getRelatedOrders()
getRelatedOrders
in interface Order
public void addOrderIdToRelatedOrders(java.lang.String pOrderId)
addOrderIdToRelatedOrders
in interface Order
pOrderId
- the order id to add to the relatedOrders listpublic java.util.Date getSubmittedDate()
getSubmittedDate
in interface Order
public void setSubmittedDate(java.util.Date pSubmittedDate)
public long getSubmittedTime()
getSubmittedTime
in interface Order
public void setSubmittedTime(long pSubmittedTime)
setSubmittedTime
in interface Order
pSubmittedTime
- the value to set for property submittedTimepublic java.lang.String getOriginOfOrder()
getOriginOfOrder
in interface Order
public void setOriginOfOrder(java.lang.String pOriginOfOrder)
setOriginOfOrder
in interface Order
public void setExplicitlySaved(boolean pExplicitlySaved)
setExplicitlySaved
in interface Order
pExplicitlySaved
- is true if this order was explicitly saved, false otherwise.public boolean isExplicitlySaved()
isExplicitlySaved
in interface Order
public java.util.Date getCreationDate()
getCreationDate
in interface Order
public void setCreationDate(java.util.Date pCreationDate)
public long getCreationTime()
getCreationTime
in interface Order
public void setCreationTime(long pCreationTime)
setCreationTime
in interface Order
pCreationTime
- the value to set for property creationTimepublic java.util.Date getLastModifiedDate()
getLastModifiedDate
in interface Order
public void setLastModifiedDate(java.util.Date pLastModifiedDate)
public long getLastModifiedTime()
getLastModifiedTime
in interface Order
public void setLastModifiedTime(long pLastModifiedTime)
setLastModifiedTime
in interface Order
pLastModifiedTime
- the value to set for property lastModifiedTimepublic java.util.Date getCompletedDate()
getCompletedDate
in interface Order
public void setCompletedDate(java.util.Date pCompletedDate)
public long getCompletedTime()
getCompletedTime
in interface Order
public void setCompletedTime(long pCompletedTime)
setCompletedTime
in interface Order
pCompletedTime
- the value to set for property completedTimepublic boolean isTransient()
isTransient
in interface Order
public void setTransient(boolean pTransient)
setTransient
in interface Order
public java.util.Map getSpecialInstructions()
getSpecialInstructions
in interface Order
public void setSpecialInstructions(java.util.Map pSpecialInstructions)
public java.util.List getManualAdjustments()
getManualAdjustments
in interface Order
public void setManualAdjustments(java.util.List pManualAdjustments)
setManualAdjustments
in interface Order
public java.lang.String getAgentId()
getAgentId
in interface Order
public void setAgentId(java.lang.String pAgentId)
setAgentId
in interface Order
public java.lang.String getSalesChannel()
getSalesChannel
in interface Order
public void setSalesChannel(java.lang.String pSalesChannel)
setSalesChannel
in interface Order
pSalesChannel
- public java.lang.String getCreationSiteId()
getCreationSiteId
in interface Order
public void setCreationSiteId(java.lang.String pCreationSiteId)
setCreationSiteId
in interface Order
pCreationSiteId
- the value to set for property createdSiteIdpublic java.lang.String getSiteId()
getSiteId
in interface Order
public void setSiteId(java.lang.String pSiteId)
setSiteId
in interface Order
pSiteId
- the value to set for property siteIdpublic java.util.List getApproverIds()
getApproverIds
in interface Order
public void setApproverIds(java.util.List pApproverIds)
setApproverIds
in interface Order
pApproverIds
- the value to set for property approverIdspublic java.util.List getAuthorizedApproverIds()
getAuthorizedApproverIds
in interface Order
public void setAuthorizedApproverIds(java.util.List pAuthorizedApproverIds)
setAuthorizedApproverIds
in interface Order
pAuthorizedApproverIds
- the value to set for property authorizedApproverIdspublic java.util.List getApprovalSystemMessages()
getApprovalSystemMessages
in interface Order
public void setApprovalSystemMessages(java.util.List pApprovalSystemMessages)
setApprovalSystemMessages
in interface Order
pApprovalSystemMessages
- the value to set for property approvalSystemMessagespublic java.util.List getApproverMessages()
getApproverMessages
in interface Order
public void setApproverMessages(java.util.List pApproverMessages)
setApproverMessages
in interface Order
pApproverMessages
- the value to set for property approverMessagespublic java.util.List getCommerceItems()
getCommerceItems
in interface CommerceItemContainer
public void addCommerceItem(CommerceItem pCommerceItem) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem
in interface CommerceItemContainer
DuplicateCommerceItemException
InvalidParameterException
public void addCommerceItem(CommerceItem pCommerceItem, int pIndex) throws DuplicateCommerceItemException, InvalidParameterException
addCommerceItem
in interface CommerceItemContainer
DuplicateCommerceItemException
InvalidParameterException
public CommerceItem removeCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
removeCommerceItem
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public void removeAllCommerceItems()
removeAllCommerceItems
in interface CommerceItemContainer
public void repositionCommerceItem(CommerceItem pItem, int pNewIndex) throws CommerceItemNotFoundException, InvalidParameterException, DuplicateCommerceItemException
pItem
- CommerceItem already in the orderpNewIndex
- int new index to move the item to.
CommerceItemNotFoundException
- if pItem is not in the order
InvalidParameterException
DuplicateCommerceItemException
public CommerceItem getCommerceItem(java.lang.String pCommerceItemId) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItem
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public java.util.List getCommerceItemsByCatalogRefId(java.lang.String pCatalogRefId) throws CommerceItemNotFoundException, InvalidParameterException
getCommerceItemsByCatalogRefId
in interface CommerceItemContainer
CommerceItemNotFoundException
InvalidParameterException
public int getCommerceItemCount()
getCommerceItemCount
in interface CommerceItemContainer
public long getTotalCommerceItemCount()
getTotalCommerceItemCount
in interface CommerceItemContainer
public java.util.List getShippingGroups()
getShippingGroups
in interface ShippingGroupContainer
public void addShippingGroup(ShippingGroup pShippingGroup) throws DuplicateShippingGroupException, InvalidParameterException
addShippingGroup
in interface ShippingGroupContainer
DuplicateShippingGroupException
InvalidParameterException
public void addShippingGroup(ShippingGroup pShippingGroup, int pIndex) throws DuplicateShippingGroupException, InvalidParameterException
addShippingGroup
in interface ShippingGroupContainer
DuplicateShippingGroupException
InvalidParameterException
public ShippingGroup removeShippingGroup(java.lang.String pShippingGroupId) throws ShippingGroupNotFoundException, InvalidParameterException
removeShippingGroup
in interface ShippingGroupContainer
ShippingGroupNotFoundException
InvalidParameterException
public void removeAllShippingGroups()
removeAllShippingGroups
in interface ShippingGroupContainer
public ShippingGroup getShippingGroup(java.lang.String pShippingGroupId) throws ShippingGroupNotFoundException, InvalidParameterException
getShippingGroup
in interface ShippingGroupContainer
ShippingGroupNotFoundException
InvalidParameterException
public int getShippingGroupCount()
getShippingGroupCount
in interface ShippingGroupContainer
public java.util.List getPaymentGroups()
getPaymentGroups
in interface PaymentGroupContainer
public void addPaymentGroup(PaymentGroup pPaymentGroup) throws DuplicatePaymentGroupException, InvalidParameterException
addPaymentGroup
in interface PaymentGroupContainer
DuplicatePaymentGroupException
InvalidParameterException
public void addPaymentGroup(PaymentGroup pPaymentGroup, int pIndex) throws DuplicatePaymentGroupException, InvalidParameterException
addPaymentGroup
in interface PaymentGroupContainer
DuplicatePaymentGroupException
InvalidParameterException
public PaymentGroup removePaymentGroup(java.lang.String pPaymentGroupId) throws PaymentGroupNotFoundException, InvalidParameterException
removePaymentGroup
in interface PaymentGroupContainer
PaymentGroupNotFoundException
InvalidParameterException
public void removeAllPaymentGroups()
removeAllPaymentGroups
in interface PaymentGroupContainer
public PaymentGroup getPaymentGroup(java.lang.String pPaymentGroupId) throws PaymentGroupNotFoundException, InvalidParameterException
getPaymentGroup
in interface PaymentGroupContainer
PaymentGroupNotFoundException
InvalidParameterException
public int getPaymentGroupCount()
getPaymentGroupCount
in interface PaymentGroupContainer
public java.util.List getCostCenters()
getCostCenters
in interface CostCenterContainer
public void addCostCenter(CostCenter pCostCenter) throws DuplicateCostCenterException, InvalidParameterException
addCostCenter
in interface CostCenterContainer
DuplicateCostCenterException
InvalidParameterException
public void addCostCenter(CostCenter pCostCenter, int pIndex) throws DuplicateCostCenterException, InvalidParameterException
addCostCenter
in interface CostCenterContainer
DuplicateCostCenterException
InvalidParameterException
public CostCenter removeCostCenter(java.lang.String pCostCenterId) throws CostCenterNotFoundException, InvalidParameterException
removeCostCenter
in interface CostCenterContainer
CostCenterNotFoundException
InvalidParameterException
public void removeAllCostCenters()
removeAllCostCenters
in interface CostCenterContainer
public CostCenter getCostCenter(java.lang.String pCostCenterId) throws CostCenterNotFoundException, InvalidParameterException
getCostCenter
in interface CostCenterContainer
CostCenterNotFoundException
InvalidParameterException
public int getCostCenterCount()
getCostCenterCount
in interface CostCenterContainer
public java.util.List getRelationships()
getRelationships
in interface RelationshipContainer
public void addRelationship(Relationship pRelationship) throws DuplicateRelationshipException, InvalidParameterException
addRelationship
in interface RelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addRelationship(Relationship pRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addRelationship
in interface RelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public Relationship removeRelationship(java.lang.String pRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeRelationship
in interface RelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllRelationships()
removeAllRelationships
in interface RelationshipContainer
public Relationship getRelationship(java.lang.String pRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getRelationship
in interface RelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getRelationshipCount()
getRelationshipCount
in interface RelationshipContainer
public java.util.List getPaymentGroupRelationships()
getPaymentGroupRelationships
in interface PaymentGroupRelationshipContainer
public void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship
in interface PaymentGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship
in interface PaymentGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public PaymentGroupRelationship removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removePaymentGroupRelationship
in interface PaymentGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllPaymentGroupRelationships()
removeAllPaymentGroupRelationships
in interface PaymentGroupRelationshipContainer
public PaymentGroupRelationship getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getPaymentGroupRelationship
in interface PaymentGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getPaymentGroupRelationshipCount()
getPaymentGroupRelationshipCount
in interface PaymentGroupRelationshipContainer
public java.util.List getCostCenterRelationships()
getCostCenterRelationships
in interface CostCenterRelationshipContainer
public void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship
in interface CostCenterRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship
in interface CostCenterRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCostCenterRelationship
in interface CostCenterRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllCostCenterRelationships()
removeAllCostCenterRelationships
in interface CostCenterRelationshipContainer
public CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCostCenterRelationship
in interface CostCenterRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getCostCenterRelationshipCount()
getCostCenterRelationshipCount
in interface CostCenterRelationshipContainer
protected void preEnsureContainers()
protected void ensureContainers()
public void invalidateOrder()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
o
- the object which changedarg
- the name of the property which changedpublic boolean getSaveAllProperties()
getSaveAllProperties
in interface ChangedProperties
public void setSaveAllProperties(boolean pSaveAllProperties)
setSaveAllProperties
in interface ChangedProperties
public boolean isChanged()
isChanged
in interface ChangedProperties
isChanged
in interface Order
public void setChanged(boolean pChanged)
setChanged
in interface ChangedProperties
public java.util.Set getChangedProperties()
getChangedProperties
in interface ChangedProperties
public void addChangedProperty(java.lang.String pPropertyName)
addChangedProperty
in interface ChangedProperties
public void clearChangedProperties()
clearChangedProperties
in interface ChangedProperties
public MutableRepositoryItem getRepositoryItem()
getRepositoryItem
in interface ChangedProperties
public void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
setRepositoryItem
in interface ChangedProperties
public 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 ChangedProperties
pPropertyValue
- the value to set for the given property valuepublic boolean equals(java.lang.Object pOrder)
equals
in interface Order
equals
in class java.lang.Object
pOrder
- the Order to compare
public 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 |