Package com.imc.iss.groovy.agreements
Class Agreement
java.lang.Object
com.imc.iss.groovy.agreements.Agreement
This is a class representing an agreement for use by groovy scripts
Inside the script, an instance of this class, containing the data of the agreement that the script will be run on, will be provided automatically and can be accessed as a variable named agreement
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the account that the agreement belongs togetAgreementDataAttributeValue(String attributeURI) To get the value of a agreement data attribute by attribute URI.getAgreementRelationAttributeErpId(String attributeURI) To get the ERPID of a agreement relation attribute by attribute URI.getAgreementRelationAttributeObjectId(String attributeURI) To get the object Id of a agreement relation attribute by attribute URI.getAgreementRelationAttributeObjectName(String attributeURI) To get the object name of a agreement relation attribute by attribute URI.getAgreementRelationAttributeURI(String attributeURI) To get the URI of a agreement relation attribute by attribute URI.Retrieves the URI of this agreementsetAgreementDataAttribute(String attributeURI, Object value) To set a value for the agreement data attribute.setAgreementRelationAttribute(String attributeURI, String valueURI) To set a value for the agreement relation attribute.toString()Returns a string representation of the agreement, which prints all the attributes
-
Method Details
-
getAgreementAccountName
Retrieves the name of the account that the agreement belongs to- Returns:
- The account name of the agreement
- Throws:
IMCException
-
getAgreementDataAttributeValue
To get the value of a agreement data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreement data attribute.- Returns:
- the value of the agreement data attribute as Object.
- Throws:
IMCException
-
getAgreementRelationAttributeErpId
To get the ERPID of a agreement relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreement relation attribute.- Returns:
- the ERPId of the agreement relation attribute as String.
- Throws:
IMCException
-
getAgreementRelationAttributeObjectId
To get the object Id of a agreement relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreement relation attribute.- Returns:
- the objectId of the agreement relation attribute as String.
- Throws:
IMCException
-
getAgreementRelationAttributeObjectName
To get the object name of a agreement relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreement relation attribute.- Returns:
- the object name of the agreement relation attribute as String.
- Throws:
IMCException
-
getAgreementRelationAttributeURI
To get the URI of a agreement relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreement relation attribute.- Returns:
- the object URI of the agreement relation attribute as String.
- Throws:
IMCException
-
getAgreementURI
Retrieves the URI of this agreement- Returns:
- The agreement URI as String
-
setAgreementDataAttribute
To set a value for the agreement data attribute.- Parameters:
attributeURI- as String. The URI of the agreement data attribute.value- as Object. The value for the agreement data attribute.- Returns:
- The
Agreementinstance. - Throws:
IMCException- the platform exception
-
setAgreementRelationAttribute
public Agreement setAgreementRelationAttribute(String attributeURI, String valueURI) throws IMCException To set a value for the agreement relation attribute.- Parameters:
attributeURI- as String. The URI of the agreement relation attribute.valueURI- as Object. The value for the agreement relation attribute.- Returns:
- The
Agreementinstance. - Throws:
IMCException- the platform exception
-
toString
Returns a string representation of the agreement, which prints all the attributes
-