public class Order extends Object
| Constructor and Description |
|---|
Order() |
| Modifier and Type | Method and Description |
|---|---|
Order |
addPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords)
Add partner function records into order's Partner Function.
|
Order |
deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords)
Remove partner function records into Order's Partner Function.
|
List<OrderItem> |
getChildren()
Retrieves the list of all line items directly under this object
|
Object |
getOrderDataAttributeValue(String attributeURI)
To get the value of a order data attribute by attribute URI.
|
String |
getOrderRelationAttributeErpId(String attributeURI)
To get the ERPID of a order relation attribute by attribute URI.
|
String |
getOrderRelationAttributeObjectId(String attributeURI)
To get the object Id of a order relation attribute by attribute URI.
|
String |
getOrderRelationAttributeObjectName(String attributeURI)
To get the object name of a order relation attribute by attribute URI.
|
String |
getOrderRelationAttributeURI(String attributeURI)
To get the URI of a order relation attribute by attribute URI.
|
String |
getOrderURI()
Get the order uri as String.
|
String |
getPartnerErpId(String PartnerFunctionURI)
To get the ERPId of the partner function by partner function URI.
|
String |
getPartnerObjectId(String partnerFunctionURI)
To get the object Id of the partner function by partner function URI.
|
String |
getPartnerObjectName(String partnerFunctionURI)
To get the object Name of the partner function by partner function URI.
|
Map<String,List<AbstractObjectDTO>> |
getPartners()
Retrieves the partner functions of the quote.
|
List<String> |
getPartnersErpId(String partnerFunctionURI)
To get all the ERPId for a type of partner function.
|
List<String> |
getPartnersObjectId(String partnerFunctionURI)
To get all the object Id for a type of partner function.
|
List<String> |
getPartnersObjectName(String partnerFunctionURI)
To get all the object names for a type of partner function.
|
List<String> |
getPartnersURI(String partnerFunctionURI)
To get all the object URI for a type of partner function.
|
String |
getPartnerURI(String PartnerFunctionURI)
To get the object URI of a partner function
|
PriceItemData |
getPriceItemByTypeName(String name)
To get the price Item data by name.
|
PriceItemData |
getPriceItemByTypeUri(String uri)
To get the price Item data by URI.
|
List<PriceItemData> |
getPriceItemsByTypeName(String name)
To get all the price Item data by the name of the price item type.
|
List<PriceItemData> |
getPriceItemsByTypeUri(String uri)
To get all the price Item data by price item URI.
|
List<PriceItemData> |
getPriceItemsJustified(String justificationURI)
To get all user justified price Item data.
|
String |
getQuoteURI()
To get associated quote URI.
|
SalesItemsTree |
getSalesItemsTree()
To get linked salesItemsTree of the order.
|
boolean |
isCommerce()
Indicates the context that order object is created from
|
Order |
setDataAttribute(String attributeURI,
Object value)
To set a value for the order data attribute.
|
Order |
setRelationAttribute(String attributeURI,
String valueURI)
To set a value for the order relation attribute.
|
public Order addPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords)
partnerFunctionRecords. - The partner function records to add into a
order.Order instance.public Order deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords)
partnerFunctionRecords. - The partner function records to remove
into a Order.Order instance.IMCExceptionpublic List<OrderItem> getChildren()
OrderItem objects directly under this objectpublic Object getOrderDataAttributeValue(String attributeURI) throws IMCException
attributeURI - as String. The URI of the order data attribute.IMCException - the platform exceptionpublic String getOrderRelationAttributeErpId(String attributeURI) throws IMCException
attributeURI - as String. The URI of the order relation attribute.IMCException - the platform exceptionpublic String getOrderRelationAttributeObjectId(String attributeURI) throws IMCException
attributeURI - as String. The URI of the order relation attribute.IMCException - the platform exceptionpublic String getOrderRelationAttributeObjectName(String attributeURI) throws IMCException
attributeURI - as String. The URI of the order relation attribute.IMCException - the platform exceptionpublic String getOrderRelationAttributeURI(String attributeURI) throws IMCException
attributeURI - as String. The URI of the order relation attribute.IMCException - the platform exceptionpublic String getOrderURI()
public String getPartnerErpId(String PartnerFunctionURI) throws IMCException
PartnerFunctionURI - the URI of the partner function.null if not
found.IMCException - the platform exceptionpublic String getPartnerObjectId(String partnerFunctionURI) throws IMCException
partnerFunctionURI - the URI of the partner function.null if
not found.IMCException - the platform exceptionpublic String getPartnerObjectName(String partnerFunctionURI) throws IMCException
partnerFunctionURI - the URI of the partner function.null if
not found.IMCException - the platform exceptionpublic Map<String,List<AbstractObjectDTO>> getPartners() throws IMCException
IMCException - the platform exceptionpublic List<String> getPartnersErpId(String partnerFunctionURI) throws IMCException
partnerFunctionURI - the URI of the partner function.IMCException - the platform exceptionpublic List<String> getPartnersObjectId(String partnerFunctionURI) throws IMCException
partnerFunctionURI - the URI of the partner function.IMCException - the platform exceptionpublic List<String> getPartnersObjectName(String partnerFunctionURI) throws IMCException
partnerFunctionURI - the URI of the partner function.IMCException - the platform exceptionpublic List<String> getPartnersURI(String partnerFunctionURI) throws IMCException
partnerFunctionURI - the URI of the partner function.IMCException - the platform exceptionpublic String getPartnerURI(String PartnerFunctionURI) throws IMCException
PartnerFunctionURI - as String. The URI of the type of partner
function.null if not found.IMCException - the platform exceptionpublic PriceItemData getPriceItemByTypeName(String name) throws IMCException
PriceItemDataname - as String the name of the price item.PriceItemData.IMCException - the platform exceptionpublic PriceItemData getPriceItemByTypeUri(String uri) throws IMCException
PriceItemDatauri - as String the uri of the price item.PriceItemData.IMCException - the platform exceptionpublic List<PriceItemData> getPriceItemsByTypeName(String name) throws IMCException
PriceItemDataname - as String the name of the price item type.PriceItemData.IMCException - the platform exceptionpublic List<PriceItemData> getPriceItemsByTypeUri(String uri) throws IMCException
PriceItemDatauri - as String the URI of the price item type.PriceItemData in ListIMCException - the platform exceptionpublic List<PriceItemData> getPriceItemsJustified(String justificationURI) throws IMCException
PriceItemData.justificationURI - as String. It can be URI of either UserJustified
or SystemJustifiedPriceItemData in ListIMCException - the platform exceptionpublic String getQuoteURI() throws IMCException
null if not
found.IMCException - the platform exceptionpublic SalesItemsTree getSalesItemsTree() throws IMCException
SalesItemsTree.SalesItemsTree.
null if not found.IMCException - the platform exceptionpublic boolean isCommerce()
TRUE if it is
commerce order.public Order setDataAttribute(String attributeURI, Object value) throws IMCException
attributeURI - as String. The URI of the order data attribute.value - as Object. The value for the order data attribute.OrderIMCException - the platform exceptionpublic Order setRelationAttribute(String attributeURI, String valueURI) throws IMCException
attributeURI - as String. The URI of the order relation attribute.valueURI - as Object. The value for the order relation attribute.OrderIMCException - the platform exception