Package com.imc.iss.groovy.order
Class Order
java.lang.Object
com.imc.iss.groovy.order.Order
Order class
- Since:
- 2102
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords) Add partner function records into order's Partner Function.deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords) Remove partner function records into Order's Partner Function.Retrieves the list of all line items directly under this objectgetOrderDataAttributeValue(String attributeURI) To get the value of a order data attribute by attribute URI.getOrderRelationAttributeErpId(String attributeURI) To get the ERPID of a order relation attribute by attribute URI.getOrderRelationAttributeObjectId(String attributeURI) To get the object Id of a order relation attribute by attribute URI.getOrderRelationAttributeObjectName(String attributeURI) To get the object name of a order relation attribute by attribute URI.getOrderRelationAttributeURI(String attributeURI) To get the URI of a order relation attribute by attribute URI.Get the order uri as String.getPartnerErpId(String PartnerFunctionURI) To get the ERPId of the partner function by partner function URI.getPartnerObjectId(String partnerFunctionURI) To get the object Id of the partner function by partner function URI.getPartnerObjectName(String partnerFunctionURI) To get the object Name of the partner function by partner function URI.Retrieves the partner functions of the quote.getPartnersErpId(String partnerFunctionURI) To get all the ERPId for a type of partner function.getPartnersObjectId(String partnerFunctionURI) To get all the object Id for a type of partner function.getPartnersObjectName(String partnerFunctionURI) To get all the object names for a type of partner function.getPartnersURI(String partnerFunctionURI) To get all the object URI for a type of partner function.getPartnerURI(String PartnerFunctionURI) To get the object URI of a partner functiongetPriceItemByTypeName(String name) To get the price Item data by name.To get the price Item data by URI.To get all the price Item data by the name of the price item type.To get all the price Item data by price item URI.getPriceItemsJustified(String justificationURI) To get all user justified price Item data.To get associated quote URI.To get linked salesItemsTree of the order.booleanIndicates the context that order object is created fromsetDataAttribute(String attributeURI, Object value) To set a value for the order data attribute.setRelationAttribute(String attributeURI, String valueURI) To set a value for the order relation attribute.
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
addPartnerFunctions
Add partner function records into order's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to add into a order.- Returns:
- The
Orderinstance.
-
deletePartnerFunctions
Remove partner function records into Order's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to remove into a Order.- Returns:
- The
Orderinstance. - Throws:
IMCException
-
getChildren
Retrieves the list of all line items directly under this object- Returns:
- All
OrderItemobjects directly under this object
-
getOrderDataAttributeValue
To get the value of a order data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the order data attribute.- Returns:
- the value of the order data attribute as Object.
- Throws:
IMCException- the platform exception
-
getOrderRelationAttributeErpId
To get the ERPID of a order relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the order relation attribute.- Returns:
- the ERPId of the order relation attribute as String.
- Throws:
IMCException- the platform exception
-
getOrderRelationAttributeObjectId
To get the object Id of a order relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the order relation attribute.- Returns:
- the objectId of the order relation attribute as String.
- Throws:
IMCException- the platform exception
-
getOrderRelationAttributeObjectName
To get the object name of a order relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the order relation attribute.- Returns:
- the object name of the order relation attribute as String.
- Throws:
IMCException- the platform exception
-
getOrderRelationAttributeURI
To get the URI of a order relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the order relation attribute.- Returns:
- the object URI of the order relation attribute as String.
- Throws:
IMCException- the platform exception
-
getOrderURI
Get the order uri as String.- Returns:
- the orderURI
-
getPartnerErpId
To get the ERPId of the partner function by partner function URI.- Parameters:
PartnerFunctionURI- the URI of the partner function.- Returns:
- The partner function ERPId as String.
nullif not found. - Throws:
IMCException- the platform exception
-
getPartnerObjectId
To get the object Id of the partner function by partner function URI.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- The partner function object Id as String.
nullif not found. - Throws:
IMCException- the platform exception
-
getPartnerObjectName
To get the object Name of the partner function by partner function URI.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- The partner function object Id as String.
nullif not found. - Throws:
IMCException- the platform exception
-
getPartners
Retrieves the partner functions of the quote.- Returns:
- The partners as Map<String, List<AbstractObjectDTO>> with the uri of the partner function as key (eg: http://www.inmindcloud.com/application/schema.owl#BUYER_PARTY)
- Throws:
IMCException- the platform exception
-
getPartnersErpId
To get all the ERPId for a type of partner function.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- List of erpId in String.
- Throws:
IMCException- the platform exception
-
getPartnersObjectId
To get all the object Id for a type of partner function.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- List of object Id in String.
- Throws:
IMCException- the platform exception
-
getPartnersObjectName
To get all the object names for a type of partner function.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- List of object name in String.
- Throws:
IMCException- the platform exception
-
getPartnersURI
To get all the object URI for a type of partner function.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- List of object URI in String.
- Throws:
IMCException- the platform exception
-
getPartnerURI
To get the object URI of a partner function- Parameters:
PartnerFunctionURI- as String. The URI of the type of partner function.- Returns:
- The object URI of the partner function as String.
nullif not found. - Throws:
IMCException- the platform exception
-
getPriceItemByTypeName
To get the price Item data by name.PriceItemData- Parameters:
name- as String the name of the price item.- Returns:
PriceItemData.- Throws:
IMCException- the platform exception
-
getPriceItemByTypeUri
To get the price Item data by URI.PriceItemData- Parameters:
uri- as String the uri of the price item.- Returns:
PriceItemData.- Throws:
IMCException- the platform exception
-
getPriceItemsByTypeName
To get all the price Item data by the name of the price item type.PriceItemData- Parameters:
name- as String the name of the price item type.- Returns:
PriceItemData.- Throws:
IMCException- the platform exception
-
getPriceItemsByTypeUri
To get all the price Item data by price item URI.PriceItemData- Parameters:
uri- as String the URI of the price item type.- Returns:
PriceItemDatain List- Throws:
IMCException- the platform exception
-
getPriceItemsJustified
To get all user justified price Item data.PriceItemData.- Parameters:
justificationURI- as String. It can be URI of either UserJustified or SystemJustified- Returns:
PriceItemDatain List- Throws:
IMCException- the platform exception
-
getQuoteURI
To get associated quote URI.- Returns:
- The associated quote URI as String.
nullif not found. - Throws:
IMCException- the platform exception
-
getSalesItemsTree
To get linked salesItemsTree of the order.SalesItemsTree.- Returns:
- The linked salesItemTree
SalesItemsTree.nullif not found. - Throws:
IMCException- the platform exception
-
isCommerce
public boolean isCommerce()Indicates the context that order object is created from- Returns:
- the isCommerce as boolean. Return
TRUEif it is commerce order.
-
setDataAttribute
To set a value for the order data attribute.- Parameters:
attributeURI- as String. The URI of the order data attribute.value- as Object. The value for the order data attribute.- Returns:
- The
Order - Throws:
IMCException- the platform exception
-
setRelationAttribute
To set a value for the order relation attribute.- Parameters:
attributeURI- as String. The URI of the order relation attribute.valueURI- as Object. The value for the order relation attribute.- Returns:
- The
Order - Throws:
IMCException- the platform exception
-