Package com.imc.iss.groovy.user
Class User
java.lang.Object
com.imc.iss.groovy.user.User
This is a class representing a User for use by groovy scripts
Inside the script, an instance of this class, containing the data of the user that the script will be run on, will be provided automatically and can be accessed as a variable named user
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUserDataAttributeValue(String attributeURI) To get the value of a user data attribute by attribute URI.getUserDataAttributeValue1(String attributeURI) To get the value of a user data attribute by attribute URI.getUserRelationAttributeErpId(String attributeURI) To get the ERPID of a user relation attribute by attribute URI.getUserRelationAttributeObjectId(String attributeURI) To get the object Id of a user relation attribute by attribute URI.getUserRelationAttributeObjectName(String attributeURI) To get the object name of a user relation attribute by attribute URI.getuserRelationAttributeURI(String attributeURI) To get the URI of a user relation attribute by attribute URI.Retrieves the URI of this UsersetUserDataAttribute(String attributeURI, Object value) To set a value for the user data attribute.setUserRelationAttribute(String attributeURI, String valueURI) To set a value for the user relation attribute.
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getUserDataAttributeValue
To get the value of a user data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the user data attribute.- Returns:
- the value of the user data attribute as Object.
- Throws:
IMCException
-
getUserDataAttributeValue1
To get the value of a user data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the user data attribute.- Returns:
- the value of the data attribute as Object.
- Throws:
IMCException
-
getUserRelationAttributeErpId
To get the ERPID of a user relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the quote relation attribute.- Returns:
- the ERPId of the user relation attribute as String.
- Throws:
IMCException
-
getUserRelationAttributeObjectId
To get the object Id of a user relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the user relation attribute.- Returns:
- the objectId of the user relation attribute as String.
- Throws:
IMCException
-
getUserRelationAttributeObjectName
To get the object name of a user relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the user relation attribute.- Returns:
- the object name of the user relation attribute as String.
- Throws:
IMCException
-
getuserRelationAttributeURI
To get the URI of a user relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the user relation attribute.- Returns:
- the object URI of the user relation attribute as String.
- Throws:
IMCException
-
getUserURI
Retrieves the URI of this User- Returns:
- The User URI as String
-
setUserDataAttribute
To set a value for the user data attribute.- Parameters:
attributeURI- as String. The URI of the user data attribute.value- as Object. The value for the user data attribute.- Returns:
- The
Userinstance. - Throws:
IMCException- the platform exception
-
setUserRelationAttribute
To set a value for the user relation attribute.- Parameters:
attributeURI- as String. The URI of the user relation attribute.valueURI- as Object. The value for the user relation attribute.- Returns:
- The
Userinstance. - Throws:
IMCException- the platform exception
-