Package com.imc.iss.groovy.agreements
Class AgreementHeader
java.lang.Object
com.imc.iss.groovy.agreements.AgreementHeader
This is a class representing an agreementHeader for use by groovy scripts
Inside the script, an instance of this class, containing the data of the agreementHeader that the script will be run on, will be provided automatically and can be accessed as a variable named agreementHeader
-
Method Summary
Modifier and TypeMethodDescriptionaddPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords) Add partner function records into agreementHeader's Partner Function.deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords) remove partner function records into agreementHeader's Partner Function.getAgreementHeaderDataAttributeValue(String attributeURI) To get the value of a agreementHeader data attribute by attribute URI.getAgreementHeaderRelationAttributeErpId(String attributeURI) To get the ERPID of a agreementHeader relation attribute by attribute URI.getAgreementHeaderRelationAttributeObjectId(String attributeURI) To get the object Id of a agreementHeader relation attribute by attribute URI.getAgreementHeaderRelationAttributeObjectName(String attributeURI) To get the object name of a agreementHeader relation attribute by attribute URI.getAgreementHeaderRelationAttributeURI(String attributeURI) To get the URI of a agreementHeader relation attribute by attribute URI.Retrieves the latest revision of this agreementHeaderRetrieves the title of this agreementHeaderRetrieves the URI of this agreementHeaderRetrieves the immediate AgreementLines.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 agreementHeader.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 functionsetAgreementHeaderDataAttribute(String attributeURI, Object value) To set a value for the agreementHeader data attribute.setAgreementHeaderRelationAttribute(String attributeURI, String valueURI) To set a value for the agreementHeader relation attribute.toString()Returns a string representation of the agreementHeader, which prints all the line items in hierarchical manner
-
Method Details
-
addPartnerFunctions
public AgreementHeader addPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords) Add partner function records into agreementHeader's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to add into a agreementHeader.- Returns:
- The
AgreementHeaderinstance.
-
deletePartnerFunctions
remove partner function records into agreementHeader's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to remove into a agreementHeader.- Returns:
- The
AgreementHeaderinstance.
-
getAgreementHeaderDataAttributeValue
To get the value of a agreementHeader data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreementHeader data attribute.- Returns:
- the value of the agreementHeader data attribute as Object.
- Throws:
IMCException
-
getAgreementHeaderRelationAttributeErpId
To get the ERPID of a agreementHeader relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreementHeader relation attribute.- Returns:
- the ERPId of the agreementHeader relation attribute as String.
- Throws:
IMCException
-
getAgreementHeaderRelationAttributeObjectId
To get the object Id of a agreementHeader relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreementHeader relation attribute.- Returns:
- the objectId of the agreementHeader relation attribute as String.
- Throws:
IMCException
-
getAgreementHeaderRelationAttributeObjectName
public String getAgreementHeaderRelationAttributeObjectName(String attributeURI) throws IMCException To get the object name of a agreementHeader relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreementHeader relation attribute.- Returns:
- the object name of the agreementHeader relation attribute as String.
- Throws:
IMCException
-
getAgreementHeaderRelationAttributeURI
To get the URI of a agreementHeader relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the agreementHeader relation attribute.- Returns:
- the object URI of the agreementHeader relation attribute as String.
- Throws:
IMCException
-
getAgreementHeaderRevision
Retrieves the latest revision of this agreementHeader- Returns:
- The agreementHeader version as Integer
- Throws:
IMCException
-
getAgreementHeaderTitle
Retrieves the title of this agreementHeader- Returns:
- The agreementHeader title as String
- Throws:
IMCException
-
getAgreementHeaderURI
Retrieves the URI of this agreementHeader- Returns:
- The agreementHeader URI as String
-
getAgreementLines
Retrieves the immediate AgreementLines.- Returns:
- All
AgreementLineobjects directly under this object
-
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
-
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
-
getPartners
Retrieves the partner functions of the agreementHeader.- 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
-
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
-
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
-
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
-
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
-
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
-
setAgreementHeaderDataAttribute
public AgreementHeader setAgreementHeaderDataAttribute(String attributeURI, Object value) throws IMCException To set a value for the agreementHeader data attribute.- Parameters:
attributeURI- as String. The URI of the agreementHeader data attribute.value- as Object. The value for the agreementHeader data attribute.- Returns:
- The
AgreementHeader - Throws:
IMCException- the platform exception
-
setAgreementHeaderRelationAttribute
public AgreementHeader setAgreementHeaderRelationAttribute(String attributeURI, String valueURI) throws IMCException To set a value for the agreementHeader relation attribute.- Parameters:
attributeURI- as String. The URI of the agreementHeader relation attribute.valueURI- as Object. The value for the agreementHeader relation attribute.- Returns:
- The
AgreementHeader - Throws:
IMCException- the platform exception
-
toString
Returns a string representation of the agreementHeader, which prints all the line items in hierarchical manner
-