| java.lang.Object | |
| ↳ | org.mule.modules.drupal.DrupalConnector |
Known Direct Subclasses
|
Known Indirect Subclasses
|
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.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| apiUrl | Path to the REST api | ||||||||||
| client | Instance of a DrupalRestClient
|
||||||||||
| commentEndpoint | Path relative to the REST api url for the Comment Resource. | ||||||||||
| fileEndpoint | Path relative to the REST api url for the File Resource. | ||||||||||
| nodeEndpoint | Path relative to the REST api url for the Node Resource. | ||||||||||
| port | Port of the connecion | ||||||||||
| server | Uri of the server | ||||||||||
| taxonomyTermEndpoint | Path relative to the REST api url for the TaxonomyTerm Resource. | ||||||||||
| taxonomyVocabularyEndpoint | Path relative to the REST api url for the TaxonomyVocabulary Resource. | ||||||||||
| userEndpoint | Path relative to the REST api url for the User Resource. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Connect
| |||||||||||
Are we connected
| |||||||||||
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
| |||||||||||
Disconnect
| |||||||||||
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.
| |||||||||||
Are we connected
| |||||||||||
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
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Path to the REST api
Path relative to the REST api url for the Comment Resource.
Path relative to the REST api url for the File Resource.
Path relative to the REST api url for the Node Resource.
Port of the connecion
Uri of the server
Path relative to the REST api url for the TaxonomyTerm Resource.
Path relative to the REST api url for the TaxonomyVocabulary Resource.
Path relative to the REST api url for the User Resource.
Connect
| username | A username |
|---|---|
| password | A password |
| ConnectionException |
|---|
Are we connected
Count all comments in a node
| nodeId | Node Id |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Counts all new comments in a node.
| nodeId | Node Id |
|---|---|
| since | Unix like date format. Default value is 0. |
| 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.
| comment | Comment with a subject, body and node id |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Create a file
| file | File that has the content encoded in Base64 and the name of the file. |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Creates a node.
| node | Node. The minimum required fields that need to be set are the Type and Title. See Node |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Create a taxonomy term
| taxonomyTerm | TaxonomyTerm |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Create a taxonomyVocabulary
| taxonomyVocabulary | TaxonomyVocabulary |
|---|
| 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
| user | User with at least Name, mail and password set. |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Delete a comment
| commentId | Id of the comment |
|---|
| 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.
| fileId | Id of the file |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Delete a node
| nodeId | Id of the node |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Delete a Term
| taxonomyTermId | Id of the term |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Delete a Vocabulary
| taxonomyVocId | Id of the vocabulary |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Delete an User
| userId | Id of the User |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Disconnect
Get the list of comments of a node
| nodeId | The id of the node |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Get the list of files attached of a node
| nodeId | The node Id |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Get a list of Nodes related to the term
| taxonomyTermId | The term id of the tag we want the nodes to be associated with |
|---|
| 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.
| vocabularyId | Id of the TaxonomyVocabulary we want to get |
|---|---|
| parent | The TaxonomyTerm id we will use to filter the results. Defatuls to -1. In this case the parameter willl be ignored |
| maxdepth | 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 |
TaxonomyTerm| 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.
| fields | List of fields of the comment that we want to retrieve. See Comment |
|---|---|
| startPage | The start page of the result list. Default value is -1. In this case, parameter won't be used in the request |
| pagesize | The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request |
| 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.
| fields | List of fields of the File that we want to retrieve. See File |
|---|---|
| startPage | The start page of the result list. Default value is -1. In this case, parameter won't be used in the request |
| pagesize | The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request |
| 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.
| fields | List of fields of the node that we want to retrieve.See Node |
|---|---|
| startPage | The start page of the result list. Default value is -1. In this case, parameter won't be used in the request |
| pagesize | The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request |
| 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.
| fields | List of fields of the TaxonomyTerm that we want to retrieve. See TaxonomyTerm |
|---|---|
| startPage | The start page of the result list. Default value is -1. In this case, parameter won't be used in the request |
| pagesize | The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request |
| 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.
| fields | List of fields of the TaxonomyVocabulary that we want to retrieve. See TaxonomyVocabulary |
|---|---|
| startPage | The start page of the result list. Default value is -1. In this case, parameter won't be used in the request |
| pagesize | The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request |
| 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.
| fields | List of fields of the user that we want to retrieve. See User |
|---|---|
| startPage | The start page of the result list. Default value is -1. In this case, parameter won't be used in the request |
| pagesize | The maximum amount of results per page. Default value is 0.In this case, parameter won't be used in the request |
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Are we connected
Read a comment. See Comment
| commentId | Number of comment |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Read a file. See File
| fileId | Number of file |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Read a node. See Node.
| nodeId | Number of node |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Read a taxonomy term. See TaxonomyTerm
| taxonomyTermId | Number of the term |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Read a taxonomy vocabulary.
| vocabularyId | Number of the vocabulary |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Read an user. See User
| userId | Number of user |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Register a user
| user | User with at least Name, mail and password set. |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
| apiUrl |
|---|
| commentEndpoint |
|---|
| fileEndpoint |
|---|
| nodeEndpoint |
|---|
| port |
|---|
| server |
|---|
| taxonomyTermEndpoint |
|---|
| taxonomyVocabularyEndpoint |
|---|
| userEndpoint |
|---|
Update the comment
| comment | Comment with new fields set |
|---|
| 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
| nodeId | Id of the node |
|---|---|
| fieldName | Machine name of the field |
| customProperties | Map that contains the pair of key and values |
| DrupalException | When the server doesn't return code 200 |
|---|
Update file
| file | File with new fields set |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Update the node
| node | Node |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Update the taxonomy term
| taxonomyTerm | TaxonomyTerm with new fields set |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Update the taxonomyVocabulary
| taxonomyVocabulary | Taxonomy vocabulary with new fields set |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|
Update the user
| user | User with new fields set |
|---|
| DrupalException | When the server doesn't return code 200, it contains the code returned |
|---|