|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.pricing.PricingCommerceItem
public class PricingCommerceItem
A simple CommerceItem that is used just as a placeholder while pricing items. This CommerceItem cannot be added to an order. The pricing engines only understand how to compute prices in the context of a CommerceItem. Many times when we wish to price an entity for the user we do not have a CommerceItem in hand. This is most evident when prices are shown for products in the catalog. Products and SKUs are usually represented by RepositoryItems, which the pricing engines do not deal with. Therefore we need an inexpensive CommerceItem class which we can create and plug in the product and SKU objects. The item pricing droplets uses the PricingCommerceItem as this wrapper to perform pricing. The item pricing droplets understand how to deal with input which are plain RepositoryItems and "convert" them into CommerceItems.
These CommerceItems cannot be used in the default Order management system. If you need to add a CommerceItem to an order one should use the OrderManager APIs.
OrderManager
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
PricingCommerceItem()
Constructs an instanceof PricingCommerceItem |
Method Summary | |
---|---|
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 |
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 |
addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)
Add the ShippingGroupRelationship to the container. |
void |
addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
int pIndex)
Add the ShippingGroupRelationship to the container at the given index. |
void |
clear()
Clears the instance as if it was just constructed |
AuxiliaryData |
getAuxiliaryData()
returns the AuxiliaryData. |
java.lang.String |
getCatalogId()
Returns property CatalogId |
java.lang.String |
getCatalogKey()
Returns property CatalogKey |
java.lang.String |
getCatalogRefId()
Returns property CatalogRefId |
java.lang.String |
getCommerceItemClassType()
Returns the commerceItemClassType |
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.lang.String |
getId()
Returns property Id |
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 |
ItemPriceInfo |
getPriceInfo()
Returns property PriceInfo |
long |
getQuantity()
Returns property Quantity |
long |
getReturnedQuantity()
Returns the returnedQuantity |
ShippingGroupRelationship |
getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
Returns the ShippingGroupRelationship whose id is pShippingGroupRelationshipId. |
int |
getShippingGroupRelationshipCount()
Returns the number of ShippingGroupRelationships in the container. |
java.util.List |
getShippingGroupRelationships()
Returns a List of ShippingGroupRelationships |
int |
getState()
Returns property State |
java.lang.String |
getStateDetail()
Returns property StateDetail |
void |
removeAllCostCenterRelationships()
Removes all the CostCenterRelationships |
void |
removeAllPaymentGroupRelationships()
Removes all the PaymentGroupRelationships |
void |
removeAllShippingGroupRelationships()
Removes all the ShippingGroupRelationships |
CostCenterRelationship |
removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Removes a CostCenterRelationship whose id is passed in. |
PaymentGroupRelationship |
removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
Removes a PaymentGroupRelationship whose id is passed in. |
ShippingGroupRelationship |
removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
Removes a ShippingGroupRelationship whose id is passed in. |
void |
setCatalogId(java.lang.String pCatalogId)
Sets property CatalogId |
void |
setCatalogKey(java.lang.String pCatalogKey)
Sets property CatalogKey |
void |
setCatalogRefId(java.lang.String pCatalogRefId)
Sets property CatalogRefId |
void |
setCommerceItemClassType(java.lang.String pCommerceItemClassType)
Sets the commerceItemClassType |
void |
setId(java.lang.String pId)
Sets property Id |
void |
setPriceInfo(ItemPriceInfo pPriceInfo)
Sets property PriceInfo |
void |
setQuantity(long pQuantity)
Sets property Quantity |
void |
setReturnedQuantity(long pReturnedQuantity)
Sets the returnedQuantity |
void |
setState(int pState)
Sets property State |
void |
setStateDetail(java.lang.String pStateDetail)
Sets property StateDetail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public PricingCommerceItem()
Method Detail |
---|
public void setId(java.lang.String pId)
public java.lang.String getId()
getId
in interface CommerceIdentifier
public void setCommerceItemClassType(java.lang.String pCommerceItemClassType)
setCommerceItemClassType
in interface CommerceItem
public java.lang.String getCommerceItemClassType()
getCommerceItemClassType
in interface CommerceItem
public void setCatalogKey(java.lang.String pCatalogKey)
setCatalogKey
in interface CommerceItem
public java.lang.String getCatalogKey()
getCatalogKey
in interface CommerceItem
public void setCatalogId(java.lang.String pCatalogId)
setCatalogId
in interface CommerceItem
public java.lang.String getCatalogId()
getCatalogId
in interface CommerceItem
public void setCatalogRefId(java.lang.String pCatalogRefId)
setCatalogRefId
in interface CommerceItem
public java.lang.String getCatalogRefId()
getCatalogRefId
in interface CommerceItem
public void setQuantity(long pQuantity)
setQuantity
in interface CommerceItem
pQuantity
- the new value for the quantitypublic long getQuantity()
getQuantity
in interface CommerceItem
public long getReturnedQuantity()
getReturnedQuantity
in interface CommerceItem
public void setReturnedQuantity(long pReturnedQuantity)
public void setState(int pState)
setState
in interface CommerceItem
public int getState()
getState
in interface CommerceItem
public void setStateDetail(java.lang.String pStateDetail)
setStateDetail
in interface CommerceItem
public java.lang.String getStateDetail()
getStateDetail
in interface CommerceItem
public void setPriceInfo(ItemPriceInfo pPriceInfo)
setPriceInfo
in interface CommerceItem
pPriceInfo
- the PriceInfo object to setpublic ItemPriceInfo getPriceInfo()
getPriceInfo
in interface CommerceItem
public AuxiliaryData getAuxiliaryData()
getAuxiliaryData
in interface CommerceItem
public java.util.List getShippingGroupRelationships()
getShippingGroupRelationships
in interface ShippingGroupRelationshipContainer
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships
in interface ShippingGroupRelationshipContainer
public ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount
in interface ShippingGroupRelationshipContainer
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
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |