public class Product extends Object
Inside the script, an instance of this class, containing the data of the Product that the script will be run on, will be provided automatically and can be accessed as a variable Product
Product
Modifier and Type | Method and Description |
---|---|
Product |
addSalesInfo(Collection<SalesInfo> salesInfo) |
void |
deleteProductSalesInfo(Collection<BusinessObject> slaesInfoBOs) |
Product |
deleteSalesInfo(Collection<BusinessObject> salesInfo) |
List<AttachmentData> |
getAttachmentFilesByType(String fileType)
Get the list of the attachement file by file type.
|
AttachmentFolderData |
getAttachmentFolder(String folderName)
Get an attachement folder by folder name.
|
List<AttachmentFolderData> |
getAttachmentFolders()
Get the list of the attachment folder.
|
String |
getProductDataAttributeValue(String attributeURI)
To get the value of a Product data attribute by attribute URI.
|
String |
getProductErpId()
Retrieves the erp id of the country that the Product belongs to The
relationship is as follows: Product -> includesAddress -> hasCountry
|
String |
getProductID()
Retrieves the ID of the Product
|
String |
getProductRelationAttributeErpId(String attributeURI)
To get the ERPID of a Product relation attribute by attribute URI.
|
String |
getProductRelationAttributeObjectId(String attributeURI)
To get the object Id of a Product relation attribute by attribute URI.
|
String |
getProductRelationAttributeObjectName(String attributeURI)
To get the object name of a Product relation attribute by attribute URI.
|
String |
getProductRelationAttributeURI(String attributeURI)
To get the URI of a Product relation attribute by attribute URI.
|
String |
getProductTitle()
Retrieves the title of this Product
|
String |
getProductURI()
Retrieves the URI of this Product
|
Collection<BusinessObject> |
getSalesInfo(SalesInfo salesInfoRecord) |
Product |
setProductDataAttribute(String attributeURI,
Object value)
To set a value for the Product data attribute.
|
Product |
setProductRelationAttribute(String attributeURI,
String valueURI)
To set a value for the Product relation attribute.
|
String |
toString()
Returns a string representation of the Product, which prints all the line
items in hierarchical manner
|
public Product addSalesInfo(Collection<SalesInfo> salesInfo)
public void deleteProductSalesInfo(Collection<BusinessObject> slaesInfoBOs) throws IMCException
IMCException
public Product deleteSalesInfo(Collection<BusinessObject> salesInfo)
public List<AttachmentData> getAttachmentFilesByType(String fileType) throws IMCException
AttachmentData
.fileType
- as String. The file type.AttachmentData
in List.IMCException
public AttachmentFolderData getAttachmentFolder(String folderName) throws IMCException
AttachmentFolderData
.folderName
- the name of the folder.AttachmentFolderData
.IMCException
public List<AttachmentFolderData> getAttachmentFolders() throws IMCException
AttachmentFolderData
in List.IMCException
AttachmentFolderData}.
public String getProductDataAttributeValue(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the Product data attribute.IMCException
public String getProductErpId() throws IMCException
IMCException
public String getProductID() throws IMCException
IMCException
public String getProductRelationAttributeErpId(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the Product relation attribute.IMCException
public String getProductRelationAttributeObjectId(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the Product relation attribute.IMCException
public String getProductRelationAttributeObjectName(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the Product relation attribute.IMCException
public String getProductRelationAttributeURI(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the Product relation attribute.IMCException
public String getProductTitle() throws IMCException
IMCException
public String getProductURI()
public Collection<BusinessObject> getSalesInfo(SalesInfo salesInfoRecord) throws IMCException
IMCException
public Product setProductDataAttribute(String attributeURI, Object value) throws IMCException
attributeURI
- as String. The URI of the Product data attribute.value
- as Object. The value for the Product data attribute.Product
IMCException
- the platform exceptionpublic Product setProductRelationAttribute(String attributeURI, String valueURI) throws IMCException
attributeURI
- as String. The URI of the Product relation attribute.valueURI
- as Object. The value for the Product relation attribute.Product
IMCException
- the platform exception