Package com.imc.iss.groovy.opportunity
Class Opportunity
java.lang.Object
com.imc.iss.groovy.opportunity.Opportunity
This is a class representing an opportunity for use by groovy scripts
Inside the script, an instance of this class, containing the data of the opportunity that the script will be run on, will be provided automatically and can be accessed as a variable named opportunity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords) Add partner function records into opportunity's Partner Function.addSalesInfo(Collection<SalesInfo> opportunitySalesInfo) deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords) remove partner function records into opportunity's Partner Function.voiddeleteSalesInfo(Collection<SalesInfo> salesInfos) Remove salesInfo records into opportunity's salesInfo Function.getOpportunityDataAttributeValue(String attributeURI) To get the value of a opportunity data attribute by attribute URI.getOpportunityRelationAttributeURI(String attributeURI) setOpportunityDataAttribute(String attributeURI, Object value) To set a value for the opportunity data attribute.setOpportunityRelationAttribute(String attributeURI, String valueURI) To set a value for the opportunity relation attribute.toString()Returns a string representation of the opportunity
-
Constructor Details
-
Opportunity
public Opportunity()
-
-
Method Details
-
addPartnerFunctions
Add partner function records into opportunity's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to add into a opportunity.- Returns:
- The
Opportunityinstance.
-
addSalesInfo
-
deletePartnerFunctions
remove partner function records into opportunity's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to remove into a opportunity.- Returns:
- The
opportunityinstance.
-
deleteSalesInfo
Remove salesInfo records into opportunity's salesInfo Function.- Parameters:
salesInfo- . The sales info records to remove from opportunity.
-
getOpportunityDataAttributeValue
To get the value of a opportunity data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the opportunity data attribute.- Returns:
- the value of the opportunity data attribute as Object.
- Throws:
IMCException
-
getOpportunityRelationAttributeURI
- Throws:
IMCException
-
getOpportunityURI
-
getPartnerFunction
- Throws:
IMCException
-
setOpportunityDataAttribute
public Opportunity setOpportunityDataAttribute(String attributeURI, Object value) throws IMCException To set a value for the opportunity data attribute.- Parameters:
attributeURI- as String. The URI of the opportunity data attribute.value- as Object. The value for the opportunity data attribute.- Returns:
- The
Opportunity - Throws:
IMCException- the platform exception
-
setOpportunityRelationAttribute
public Opportunity setOpportunityRelationAttribute(String attributeURI, String valueURI) throws IMCException To set a value for the opportunity relation attribute.- Parameters:
attributeURI- as String. The URI of the opportunity relation attribute.valueURI- as Object. The value for the opportunity relation attribute.- Returns:
- The
Opportunity - Throws:
IMCException- the platform exception
-
toString
Returns a string representation of the opportunity
-