Namespace | http://www.mulesoft.org/schema/mule/drupal |
---|---|
Schema Location | http://www.mulesoft.org/schema/mule/drupal/current/mule-drupal.xsd (View Schema) |
Schema Version | 1.0 |
Minimum Mule Version | 3.2 |
Drupal is an open source content management platform powering millions of websites and applications. This connector allow you to integrate with a drupal server running the rest server.
Configuration | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
|
Message Processors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Count all comments in a node
| |||||||||||
Counts all new comments in a node.
| |||||||||||
Create a comment.
| |||||||||||
Create a file
| |||||||||||
Creates a node.
| |||||||||||
Create a taxonomy term
| |||||||||||
Create a taxonomyVocabulary
| |||||||||||
Create a User
| |||||||||||
Delete a comment
| |||||||||||
Delete a file.
| |||||||||||
Delete a node
| |||||||||||
Delete a Term
| |||||||||||
Delete a Vocabulary
| |||||||||||
Delete an User
| |||||||||||
Get the list of comments of a node
| |||||||||||
Get the list of files attached of a node
| |||||||||||
Get a list of Nodes related to the term
| |||||||||||
The the list of terms that match the requirements of the request.
| |||||||||||
Get a list of Comments with only the fields specified in the list of fields and the uri field for the comment.
| |||||||||||
Get a list of files with only the fields specified in the list of fields and the uri field for the File.
| |||||||||||
Get a list of Nodes with only the fields specified in the list of fields and the uri field for the node.
| |||||||||||
Get a list of taxonomy terms with only the fields specified in the list of fields and the uri field for the term.
| |||||||||||
Get a list of taxonomy vocabulary with only the fields specified in the list of fields and the uri field for the vocabulary.
| |||||||||||
Get a list of Users with only the fields specified in the list of fields and the uri field for the user.
| |||||||||||
Read a comment.
| |||||||||||
Read a file.
| |||||||||||
Read a node.
| |||||||||||
Read a taxonomy term.
| |||||||||||
Read a taxonomy vocabulary.
| |||||||||||
Read an user.
| |||||||||||
Register a user
| |||||||||||
Update the comment
| |||||||||||
Update one custom field with the properties set at the map
| |||||||||||
Update file
| |||||||||||
Update the node
| |||||||||||
Update the taxonomy term
| |||||||||||
Update the taxonomyVocabulary
| |||||||||||
Update the user
|
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:drupal="http://www.mulesoft.org/schema/mule/drupal" xsi:schemaLocation=" http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/drupal http://www.mulesoft.org/schema/mule/drupal/current/mule-drupal.xsd"> <!-- here goes your flows and configuration elements --> </mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Type | Name | Default Value | Description | Java Type | MIME Type | Encoding | Optional. Give a name to this configuration so it can be later referenced. | ||||
/rest/api | Optional. Path to the REST api | ||||||||||
comment | Optional. Path relative to the REST api url for the Comment Resource. | ||||||||||
file | Optional. Path relative to the REST api url for the File Resource. | ||||||||||
node | Optional. Path relative to the REST api url for the Node Resource. | ||||||||||
8888 | Optional. Port of the connecion | ||||||||||
localhost | Optional. Uri of the server | ||||||||||
taxonomy_term | Optional. Path relative to the REST api url for the TaxonomyTerm Resource. | ||||||||||
taxonomy_vocabulary | Optional. Path relative to the REST api url for the TaxonomyVocabulary Resource. | ||||||||||
user | Optional. Path relative to the REST api url for the User Resource. |
This connector offers automatic connection management via the use of a connection pool. The pool will act a storage mechanism for all the connections that are in-use by the user of this connector.
Prior to execution of a processor, the connector will attempt to lookup an already established connection and if one doesn't exists it will create one. That lookup mechanism is done in the connection pool via the use of connection variables declared as keys.
The user of the connector can configure the pool by adding a connection-pooling-profile
to the connector configuration like this:
<drupal:connection-pooling-profile maxActive="10" maxIdle="10" exhaustedAction="WHEN_EXHAUSTED_GROW" maxWait="120" minEvictionMillis="60000" evictionCheckIntervalMillis="30000"/>
The following is a list of connection attributes, each connection attribute can be configured at the config element level or they can also be added to each processor. If they are used at the processor level they get the benefit of full expression resolution.
Connection Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
Optional. Specify which configuration to use. | |||||||||||
A username | String | */* | UTF-8 | ||||||||
A password | String | */* | UTF-8 |
Reconnection Strategies specify how a connector behaves when its connection fails. You can control how Mule attempts to reconnect by specifying a number of criteria:
With a reconnection strategy, you can better control the behavior of a failed connection, by configuring it, for example, to re-attempt the connection only once every 15 minutes, and to give up after 30 attempts. You can also send an automatic notification to your IT administrator whenever this reconnection strategy goes into effect. You can even define a strategy that attempts to reconnect only during business hours. Such a setting can prove useful if your server is frequently shut down for nightly maintenance.
A reconnection strategy that allows the user to configure how many times a reconnection should be attempted and how long to wait between attempts.
<drupal:config> <reconnect count="5" frequency="1000"/> </drupal:config>
Reconnect Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Name | Default Value | Description | |||||||||
Optional. How often (in ms) to reconnect | |||||||||||
Optional. How many reconnection attempts to make |
For more information about reconnection strategies in Mule, or even how to write your own custom reconnection strategy please check this section.
Count all comments in a node
<drupal:count-all-comments nodeId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Node Id | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
int | Amount of comments on the given node |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Counts all new comments in a node.
<drupal:count-new-comments nodeId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Node Id | int | */* | |||||||||
0 | Optional. Unix like date format. Default value is 0. | int | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
int | Amount of new comments |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Create a comment.
The comment needs to have the node id set. If the comment is related to another comment in the same node, you need to specify the comment id by setting the pid. SeeComment
.
<drupal:create-comment> <drupal:comment subject="New Comment"> <drupal:comment-body> <drupal:und> <drupal:und> <value>Body content value</value> </drupal:und> </drupal:und> </drupal:comment-body> </drupal:comment> </drupal:create-comment>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. Comment with a subject, body and node id | Comment | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
Comment | The comment with the Id set by the server |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Create a file
<drupal:create-file> <drupal:file filename="temp.gif" content="ENCODED_CONTENT_BASE64"/> </drupal:create-file>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. File that has the content encoded in Base64 and the name of the file. | File | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
File | the file with the Id set. |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Creates a node.
<drupal:create-node> <drupal:node title="New Article" type="article"> <drupal:body> <drupal:und> <drupal:und> <value>Body content value</value> </drupal:und> </drupal:und> </drupal:body> </drupal:node> </drupal:create-node>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. Node. The minimum required fields that need to be set are the Type and Title. See Node |
Node | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
Node | The node with the Id set by the server |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Create a taxonomy term
<drupal:create-taxonomy-term> <drupal:taxonomy-term name="New term" description="This is a new term" vid="1"/> </drupal:create-taxonomy-term>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. TaxonomyTerm | TaxonomyTerm | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
TaxonomyTerm | the same TaxonomyTerm created |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Create a taxonomyVocabulary
<drupal:create-taxonomy-vocabulary> <drupal:taxonomy-vocabulary name="NewVoc" description="New taxonomy Vocabulary" machineName="new_voc"/> </drupal:create-taxonomy-vocabulary>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. TaxonomyVocabulary | TaxonomyVocabulary | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
TaxonomyVocabulary | the TaxonomyVocabulary. |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned. Error 500 is thrown when the vocabulary already exists |
Create a User
<drupal:create-user> <drupal:user name="NewUser" mail="foo@foo.com" password="dummy00"/> </drupal:create-user>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. User with at least Name, mail and password set. | User | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
User | The user with the Id set by the server |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Delete a comment
<drupal:delete-comment commentId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Id of the comment | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Delete a file. If the file is associated to any content, then it can not be deleted.
<drupal:delete-file fileId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Id of the file | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Delete a node
<drupal:delete-node nodeId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Id of the node | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Delete a Term
<drupal:delete-taxonomy-term taxonomyTermId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Id of the term | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Delete a Vocabulary
<drupal:delete-taxonomy-vocabulary taxonomyVocId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Id of the vocabulary | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Delete an User
<drupal:delete-user userId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Id of the User | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get the list of comments of a node
<drupal:get-comments-for-node nodeId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
The id of the node | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
List<Comment> | List of Comment |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get the list of files attached of a node
<drupal:get-files-for-node nodeId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
The node Id | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
List<File> | List of Files |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get a list of Nodes related to the term
<drupal:get-nodes-with-term taxonomyTermId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
The term id of the tag we want the nodes to be associated with | int | */* | |||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
List<Node> | List of nodes that have the term. |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
The the list of terms that match the requirements of the request.
<drupal:get-taxonomy-vocabulary-tree vocabularyId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Id of the TaxonomyVocabulary we want to get | int | */* | |||||||||
-1 | Optional. The TaxonomyTerm id we will use to filter the results. Defatuls to -1. In this case the parameter willl be ignored | int | */* | ||||||||
0 | Optional. Max depth value of the terms tree we want to retrieve. It is an exclusive limit. Only terms with lower depth value will be retrieved. Default value is 0. In this case parameter will be ignored | int | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
List<TaxonomyTerm> | A list of terms. The tree is actually the relationship that exists between the TaxonomyTerm parent field and the tid field. See TaxonomyTerm |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get a list of Comments with only the fields specified in the list of fields and the uri field for the comment.
<drupal:index-comments> <drupal:fields> <drupal:field>cid</drupal:field> <drupal:field>subject</drupal:field> </drupal:fields> </drupal:index-comments>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
-1 | Optional. The start page of the result list. Default value is -1. In this case, parameter won't be used in the request | int | */* | ||||||||
0 | Optional. The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request | int | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Name | Default Value | Description | Java Type |
---|---|---|---|
List of fields of the comment that we want to retrieve. See Comment |
List<String> |
Return Type | Description |
---|---|
List<Comment> | List of comments with the required fields and the uri |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get a list of files with only the fields specified in the list of fields and the uri field for the File.
<drupal:index-files> <drupal:fields> <drupal:field>vid</drupal:field> <drupal:field>created</drupal:field> </drupal:fields> </drupal:index-files>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
-1 | Optional. The start page of the result list. Default value is -1. In this case, parameter won't be used in the request | int | */* | ||||||||
0 | Optional. The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request | int | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Name | Default Value | Description | Java Type |
---|---|---|---|
List of fields of the File that we want to retrieve. See File |
List<String> |
Return Type | Description |
---|---|
List<File> | List of files with the required fields and the uri |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get a list of Nodes with only the fields specified in the list of fields and the uri field for the node.
<drupal:index-nodes> <drupal:fields> <drupal:field>nid</drupal:field> <drupal:field>type</drupal:field> <drupal:field>title</drupal:field> </drupal:fields> </drupal:index-nodes>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
-1 | Optional. The start page of the result list. Default value is -1. In this case, parameter won't be used in the request | int | */* | ||||||||
0 | Optional. The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request | int | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Name | Default Value | Description | Java Type |
---|---|---|---|
List of fields of the node that we want to retrieve.See Node |
List<String> |
Return Type | Description |
---|---|
List<Node> | List of nodes with the required fields and the uri |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get a list of taxonomy terms with only the fields specified in the list of fields and the uri field for the term.
<drupal:index-taxonomy-terms> <drupal:fields> <drupal:field>cid</drupal:field> <drupal:field>subject</drupal:field> </drupal:fields> </drupal:index-taxonomy-terms>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
-1 | Optional. The start page of the result list. Default value is -1. In this case, parameter won't be used in the request | int | */* | ||||||||
0 | Optional. The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request | int | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Name | Default Value | Description | Java Type |
---|---|---|---|
List of fields of the TaxonomyTerm that we want to retrieve. See TaxonomyTerm |
List<String> |
Return Type | Description |
---|---|
List<TaxonomyTerm> | List of terms with the required fields and the uri |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get a list of taxonomy vocabulary with only the fields specified in the list of fields and the uri field for the vocabulary.
<drupal:index-taxonomy-vocabulary> <drupal:fields> <drupal:field>vid</drupal:field> <drupal:field>created</drupal:field> </drupal:fields> </drupal:index-taxonomy-vocabulary>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
-1 | Optional. The start page of the result list. Default value is -1. In this case, parameter won't be used in the request | int | */* | ||||||||
0 | Optional. The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request | int | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Name | Default Value | Description | Java Type |
---|---|---|---|
List of fields of the TaxonomyVocabulary that we want to retrieve. See TaxonomyVocabulary |
List<String> |
Return Type | Description |
---|---|
List<TaxonomyVocabulary> | List of vocabularies with the required fields and the uri |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Get a list of Users with only the fields specified in the list of fields and the uri field for the user.
<drupal:index-users startPage="2" pagesize="5"> <drupal:fields> <drupal:field>mail</drupal:field> </drupal:fields> </drupal:index-users>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
-1 | Optional. The start page of the result list. Default value is -1. In this case, parameter won't be used in the request | int | */* | ||||||||
0 | Optional. The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request | int | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Name | Default Value | Description | Java Type |
---|---|---|---|
List of fields of the user that we want to retrieve. See User |
List<String> |
Return Type | Description |
---|---|
List<User> | List of users with the required fields and the uri |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Read a comment. See Comment
<drupal:read-comment commentId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Number of comment | String | */* | UTF-8 | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
Comment | Comment with the id specified |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Read a file. See File
<drupal:read-file fileId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Number of file | String | */* | UTF-8 | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
File | File with the id specified |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Read a node. See Node
.
<drupal:read-node nodeId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Number of node | String | */* | UTF-8 | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
Node | Node with the id specified |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Read a taxonomy term. See TaxonomyTerm
<drupal:read-taxonomy-term taxonomyTermId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Number of the term | String | */* | UTF-8 | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
TaxonomyTerm | Taxonomy term with the id specified |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Read a taxonomy vocabulary.
<drupal:read-taxonomy-vocabulary vocabularyId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Number of the vocabulary | String | */* | UTF-8 | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
TaxonomyVocabulary | Taxonomy vocabulary with the id specified |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Read an user. See User
<drupal:read-user userId="1"/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Number of user | String | */* | UTF-8 | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
User | User with the id specified |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Register a user
<drupal:register-user> <drupal:user name="NewUser" mail="foo@foo.com" password="dummy00"/> </drupal:register-user>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. User with at least Name, mail and password set. | User | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
User | The user created |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Update the comment
<drupal:update-comment> <drupal:comment subject="Updated subject" cid="1"> <drupal:comment-body> <drupal:und> <drupal:und> <value>Updated body content value</value> </drupal:und> </drupal:und> </drupal:comment-body> </drupal:comment> </drupal:update-comment>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. Comment with new fields set | Comment | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
Comment | the same comment |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Update one custom field with the properties set at the map
<drupal:update-custom-field-for-node nodeId="1" fieldName="field_test"> <drupal:custom-properties> <value>10.00</value> </drupal:custom-properties> </drupal:update-custom-field-for-node>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
Id of the node | int | */* | |||||||||
Machine name of the field | String | */* | UTF-8 | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Name | Default Value | Description | Java Type |
---|---|---|---|
Map that contains the pair of key and values | Map<String, String> |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200 |
Update file
<drupal:update-file/>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. File with new fields set | File | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
File | the same File |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Update the node
<drupal:update-node> <drupal:node title="Updated title" nid="1"/> </drupal:update-node>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. Node | Node | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
Node | the same node |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Update the taxonomy term
<drupal:update-taxonomy-term> <drupal:taxonomy-term description="Updated description" tid="1"/> </drupal:update-taxonomy-term>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. TaxonomyTerm with new fields set | TaxonomyTerm | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
TaxonomyTerm | the same taxonomyTerm |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Update the taxonomyVocabulary
<drupal:update-taxonomy-vocabulary> <drupal:taxonomy-vocabulary name="UpdateName" description="New description" vid="1"/> </drupal:update-taxonomy-vocabulary>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. Taxonomy vocabulary with new fields set | TaxonomyVocabulary | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
TaxonomyVocabulary | The same taxonomyVocabulary |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |
Update the user
<drupal:update-user> <drupal:user name="updatedUserName"/> </drupal:update-user>
Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional. Specify which configuration to use. | |||||||||||
#[payload] | Optional. User with new fields set | User | */* | ||||||||
Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
Optional. A username | String | */* | UTF-8 | ||||||||
Optional. A password | String | */* | UTF-8 |
Return Type | Description |
---|---|
User | the same user |
Payload Class | Description |
---|---|
DrupalException | When the server doesn't return code 200, it contains the code returned |