API Reference
API
Each script in XDM has access to the api variable.
This variable provides access to most of the XDM objects.
In Scripts you can find all variables available in the different scripts.
The api variable has the following attributes to access the respective object list.
Each attribute is a list of objects of the respective type.
The type is indicated by the column Element type.
The api only returns these objects on which the current user has READ access.
|
Variable |
Element type |
Description |
|---|---|---|
announcements |
Announcement |
Access to the list of defined announcements. |
applicationModels |
ApplicationModel |
Access to the list of defined application models. |
classificationTerms |
ClassificationTerm |
Access to the list of all defined classification terms. |
connections |
Connection |
This variable contains a list of all connections. The list does not differentiate between the connection type. The connection type is part of each connection entry. |
credentials |
Credential |
This list contains all defined credentials. |
customParameters |
CustomParameterDefinition |
This list contains all defined custom parameters. |
dataShops |
DataRequestForm |
Contains the list of all defined data shops. |
environments |
Environment |
Contains a list of all defined environments. |
files |
File |
Contains a list of all defined XDM files. |
hooks |
TaskStageHook |
Contains a list of all defined task stage hooks. |
mappingTableContainers |
MappingTableContainer |
Contains a list of all defined mapping table container. |
matchers |
Matcher |
Contains a list of all defined matcher objects. |
modificationMethods |
ModificationMethod |
Contains a list of all defined modification methods. |
modificationSets |
ModificationSet |
Contains a list of all defined modification sets. |
permissionRecipients |
PermissionRecipient |
Contains a list of all defined permission recipients. |
storageLocations |
StorageLocation |
Contains a list of all defined storage locations. |
tags |
Tag |
Contains a list of all defined tags. |
taskStageHooks |
TaskStageHook |
Contains a list of all defined task stage hooks. |
taskTemplates |
TaskTemplate |
Contains a list of all defined task template. The task template type is indicated by the task type field of each individual entry. |
workflowTemplates |
WorkflowTemplate |
Contains a list of all defined workflow templates. |
MetaMap
A map that contains the meta information for each data shop form parameter. It is available only in dataShop scripts. In Scripts you can find all variables available in the different scripts. The form parameters are stored in the map by the name of the mapped property. The following properties are available by field:
Field |
Type |
Updatable |
Description |
|---|---|---|---|
description |
String |
Yes |
The description of the form parameter. |
displayName |
String |
Yes |
The display name of the form parameter. |
error |
String |
Yes |
An error message that can be set if the input value of the form parameter is invalid. |
field |
String |
No |
The name of the mapped property of the form parameter. |
options |
List |
Yes |
The list of possible values. Each entry of the list has the attribute |
required |
Boolean |
Yes |
A flag that controls whether a value must be specified for the parameter or whether the parameter value can be empty. |
updatable |
Boolean |
Yes |
A flag that controls if the field is editable or not. If the field is not editable the user cannot change the value of the field. |
visible |
Boolean |
Yes |
A flag that controls whether the form parameter is displayed on the form is not. |
User
The variable of type user contains information about the current user that performs an action. In Modification Methods, Task Stage Hooks, and Workflows there are two different users available. The variable startedBy contains the user who executes an execution and the variable requestedBy contains the user who requested the execution. In all other cases the user is available in variable user. In Scripts you can find all variables available in the different scripts. The user object contains the following fields:
Field |
Type |
Description |
|---|---|---|
active |
Boolean |
This flag indicates whether the user is active or inactive. Inactive users are typically disabled by an administrator and are not allowed to log into the XDM user interface. |
admin |
Boolean |
This flag indicates whether the user is in one of the defined administration roles and has administration permissions. |
authorities |
List |
The list of roles in which the user is a member of. These roles are provided by the used authorization provide like LDAP, OpenID. |
String |
This field stores the user’s email address. The email address is only available if the underlying authentication provider, such as LDAP or OpenID, makes the email address available to XDM during the login process. |
|
name |
String |
This field stores the full name of the user. It contains the first and last name of the user. It is only available if the underlying authentication provider, such as LDAP or OpenID, makes the full name available to XDM during the login process. |
purchaser |
Boolean |
This flag indicates if the user is a member of the purchaser role. |
userName |
String |
The technical user ID of the current user. This is the user ID used to log in at the XDM user interface. |