Datamodel currently saved on the server.
Note that when you access this inside a callback of Api.subscribeFor, the datamodel already contains the corresponding changes
Allows performing Http(s)-calls to third-party REST APIs.
Api for the metamodel.
Api for managing surveys
Api for accessing user information
Api for accessing user group information
Create a date that can be set as attribute value or can be used within date intervals.
Number of milliseconds since Jan 01 1970 (UTC) Only use this to create date objects if you want to assign them to building blocks.
Create a date that can be set as attribute value or can be used within date intervals.
String representation supported by new Date()
(eg. 'October 3, 2018 17:34:00' or '2018-10-03T17:34:00')
For exact documentation of the supported formats see
https://docs.oracle.com/javase/8/docs/api/java/util/Date.html#parse-java.lang.String-
Create a date that can be set as attribute value or can be used within date intervals.
Year of the date
Month of the date (indexed from 0 to 11)
Day of the month (starting at 1)
Hour of the day
Minutes of the hour
Seconds of the minute
Milliseconds of the second
Execute LDAP query. Result based on search criteria. This function can throw exception. To get detailing information about exception use message field.
extend Distinguished Name for search criteria. Base DN is setting when configuring LDAP connection for Iteraplan application. For example: need execute search for next DN: "ou=People,dc=example,dc=com", and Iteraplan LDAP connection use "dc=example,dc=com" as BasDN, for this case extendedBase parameter has value: "ou=People".
Representation of the LDAP query. As example: "(&(objectCategory=user)(objectClass=user))"
Defines list of fields than will be included in result. Can be omitted. When this parameter is not set the result will contains all available fields that are return LDAP server.
Get history for Building Block.
Id of the building block
Persistent name of the type of the building block type
Get history for Building Block Type.
Persistent name of the building block type for which the history should be returned
Gets inner properties of Building Block attribute by its persistent name (mandatory, multiple and type attribute properties are available)
Type of the building block
Persistent name of the property
Get simple information about any user.
Name of the user
Log a message to the script log
Message to print
Register a callback function which gets called when the script is specifically executed.
Function to run when executing this script
If this is called in a Api.subscribeFor callback, it will reject all changes to the datamodel that caused the callback. The script will exit immediately. A corresponding error message will be shown to the user who triggered the change. If this change was caused from the REST API, the error message will be returned as response.
Optional message to be displayed to the user who triggered the change
Sends emails as a plain text. Returns an integer value of 1 if email was sent successfully, -1 if not.
Please see the Subscriptions for more information on how to configure Mail-notifications. // TODO: Delete or specify
Email address of recipient
Subject of the email
Plain text content of the email
Subscribes for changes at a Building Block Type. More than one function can subscribe for a certain Building Block Type. The system will call the function for each of these subscriptions.
Type of the building blocks for which to listen to changes
Callback called when a change occurs
Generated using TypeDoc
Api accessible in all plugin scripts