Package com.imc.iss.groovy.account
Class Account
java.lang.Object
com.imc.iss.groovy.account.Account
This is a class representing an account for use by groovy scripts
Inside the script, an instance of this class, containing the data of the account that the script will be run on, will be provided automatically and can be accessed as a variable named account
-
Method Summary
Modifier and TypeMethodDescriptionaddPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords) Add partner function records into account's Partner Function.addSalesInfo(Collection<SalesInfo> salesInfos) Add salesInfo records into account's salesInfo Function.deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords) Remove partner function records into account's Partner Function.deleteSalesInfo(Collection<BusinessObject> salesInfos) Remove salesInfo records into account's salesInfo Function.gets the list of Addresses for the AccountgetAccountDataAttributeValue(String attributeURI) To get the value of a account data attribute by attribute URI.getAccountRegionRelationAttributeURI(String attributeURI) To get the URI of a account relation attribute by attribute URI.getAccountRelationAttributeErpId(String attributeURI) To get the ERPID of a account relation attribute by attribute URI.getAccountRelationAttributeObjectId(String attributeURI) To get the object Id of a account relation attribute by attribute URI.getAccountRelationAttributeObjectName(String attributeURI) To get the object name of a account relation attribute by attribute URI.getAccountRelationAttributeURI(String attributeURI) To get the URI of a account relation attribute by attribute URI.Retrieves the URI of this accountGets a list of Address objects for the Account.Retrieves the contacts of the account.Retrieves the partner functions of the account.Retrieves the salesInfo of the account.voidsetAccountAddressDataAttribute(String addressURI, String attributeURI, Object value) sets the data attributes for the address of an accountvoidsetAccountAddressRelationAttribute(String addressURI, String attributeURI, String value) sets the relation attributes for the address of an accountsetAccountDataAttribute(String attributeURI, Object value) To set a value for the account data attribute.setAccountRelationAttribute(String attributeURI, String valueURI) To set a value for the account relation attribute.toString()Returns a string representation of the account
-
Method Details
-
addPartnerFunctions
Add partner function records into account's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to add into a account.- Returns:
- The
Accountinstance.
-
addSalesInfo
Add salesInfo records into account's salesInfo Function.- Parameters:
salesInfo- . The sales info to add into a account.- Returns:
- The
Accountinstance.
-
deletePartnerFunctions
Remove partner function records into account's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to remove into a account.- Returns:
- The
Accountinstance.
-
deleteSalesInfo
Remove salesInfo records into account's salesInfo Function.- Parameters:
salesInfo- . The sales info records to remove from account.- Returns:
- The
Accountinstance.
-
getAccountAddresses
gets the list of Addresses for the Account- Throws:
IMCException
-
getAccountDataAttributeValue
To get the value of a account data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the account data attribute.- Returns:
- the value of the account data attribute as Object.
- Throws:
IMCException
-
getAccountRegionRelationAttributeURI
To get the URI of a account relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the account relation attribute.- Returns:
- the object URI of the account relation attribute as String.
- Throws:
IMCException
-
getAccountRelationAttributeErpId
To get the ERPID of a account relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the quote relation attribute.- Returns:
- the ERPId of the account relation attribute as String.
- Throws:
IMCException
-
getAccountRelationAttributeObjectId
To get the object Id of a account relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the account relation attribute.- Returns:
- the objectId of the account relation attribute as String.
- Throws:
IMCException
-
getAccountRelationAttributeObjectName
To get the object name of a account relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the account relation attribute.- Returns:
- the object name of the account relation attribute as String.
- Throws:
IMCException
-
getAccountRelationAttributeURI
To get the URI of a account relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the account relation attribute.- Returns:
- the object URI of the account relation attribute as String.
- Throws:
IMCException
-
getAccountURI
Retrieves the URI of this account- Returns:
- The account URI as String
-
getAddresses
Gets a list of Address objects for the Account.- Returns:
- List
- Throws:
IMCException
-
getContacts
Retrieves the contacts of the account.- Returns:
- Collection <BusinessObject>.
- Throws:
IMCException
-
getPartnerFunctions
Retrieves the partner functions of the account.- Returns:
- Collection <BusinessObject>.
- Throws:
IMCException
-
getSalesInfo
Retrieves the salesInfo of the account.- Returns:
- Collection <BusinessObject>.
- Throws:
IMCException
-
setAccountAddressDataAttribute
public void setAccountAddressDataAttribute(String addressURI, String attributeURI, Object value) throws IMCException sets the data attributes for the address of an account- Parameters:
addressURI- as String. The URI of the address belonging to an accountattributeURI- as String. The URI of the Data Attribute to be updatedvalue- The value to be assigned to the Data attribute for the address of an account- Throws:
IMCException
-
setAccountAddressRelationAttribute
public void setAccountAddressRelationAttribute(String addressURI, String attributeURI, String value) throws IMCException sets the relation attributes for the address of an account- Parameters:
addressURI- as String. The URI of the address belonging to an accountattributeURI- as String. The URI of the relation Attribute to be updatedvalue- The value to be assigned to the relation attribute for the address of an account- Throws:
IMCException
-
setAccountDataAttribute
To set a value for the account data attribute.- Parameters:
attributeURI- as String. The URI of the account data attribute.value- as Object. The value for the account data attribute.- Returns:
- The
Accountinstance. - Throws:
IMCException- the platform exception
-
setAccountRelationAttribute
public Account setAccountRelationAttribute(String attributeURI, String valueURI) throws IMCException To set a value for the account relation attribute.- Parameters:
attributeURI- as String. The URI of the account relation attribute.valueURI- as Object. The value for the account relation attribute.- Returns:
- The
Accountinstance. - Throws:
IMCException- the platform exception
-
toString
Returns a string representation of the account
-