User Metadata Queries
There are two user metadata queries you can make:
![*](chapterTOC_bullet.png)
Query for all <user-meta> commands in a specific mashup. You supply the mashup name as a parameter.
![*](chapterTOC_bullet.png)
Query for all<user-meta> commands that match a condition (an XPath expression) in a specific mashup. You supply the mashup name and the XPath expression.
Find All User Metadata Requests
Service Name | JEMSServiceHelper |
Operation Name | getUserMetadata |
Parameters | A single string parameter that is the name of the mashup for the query. |
Find Specific User Metadata
Service Name | JEMSServiceHelper |
Operation Name | getUserMetadata |
Parameters | 1. A string parameter that is the name of the mashup for the query. 2. A string parameter that is an XPath expression, relative to <user-meta>, with the condition to select specific user metadata. Typically, this condition matches the <user-meta> name. For example: @name ="myMeta" |
User Metadata Query Results
The default JSON response for user metatdata queries is in this form:
"response":"{
"serviceMetadata": {
"user-metas":[
{"myMeta":"some value"},
...
]
}
}
In XML format, the result is a document in this form:
<serviceMetadata>
<user-metas>
<!-- list of all matching commands -->
<user-meta name="myMeta">some value</user-meta>
...
</user-metas>
</serviceMetadata>