Simulating Handlers
To simulate built-in and user defined handlers, you need to select the "Simulate Handlers" option on the "Handlers" page.
Follow the instructions below to simulate a handler in the Governance Registry.
1. Sign in. Enter your user name and password to log on to the Management Console.
2. Click the "Extensions" button to access the "Extensions" menu.
3. From the left navigation menu, under "Extensions," select "Handlers."
4. On the "Handlers" page, click the "Simulate Handlers" link.
5. On the "Handler Simulator" page from the drop-down menu, select the operation name.
6. Fill at least the mandatory fields. The list of operations and related options is presented in the table below.
Operation | Mandatory Parameters | Optional Parameters | |
---|---|---|---|
get | Path - The path from which the resource is fetched. | Â | |
put |
| Media Type - The Media type of the resource. For more information about Media types, please, visit the Adding a Resource page. | |
resourceExists | Path - The path at which the resource existence is checked. | Â | |
delete | Path - The path from which the resource is deleted. | Â | |
importResource |
| Media Type - The Media type of the resource. | |
copy |
| Â | |
move |
| Â | |
rename |
| Â | |
removeLink | Path - The path at which the link is removed. | Â | |
createLink |
| Â | |
invokeAspect |
| Â | |
addAssociation |
| Â | |
removeAssociation |
| Â | |
getAssociations |
| ||
getAllAssociations | Path - The path at which the associations are fetched. | Â | |
createVersion | Path - The path at which the version is created. | Â | |
restoreVersion | Path - The path at which the version is restored (should include the version details). | Â | |
getVersions | Path - The path at which the versions are fetched from. | Â | |
applyTag | Path - The path at which the tag is applied. | Tag - The tag applied. | Â |
removeTag | Path - The path at which the tag is removed. | Tag - The tag removed. | Â |
getTags | Path - The path at which the tags are fetched. | Â | |
getResourcePathsWithTag | Tag - The tag for which the resource paths are obtained. | Â | |
rateResource |
| Â | |
getRating |
| Â | |
getAverageRating | Path - The path from which the average rating is fetched. | Â | |
addComment |
| Â | |
removeComment | Path - The path from which the comment is removed. | Â | |
editComment |
| Â | |
getComments | Path - The path from which the comments are fetched. | Â | |
searchContent | Keywords - The keywords used to search the content. | Â | |
executeQuery | Parameters - The query parameters (should be in the format, key1:val1,key2:val2,...) | Path - The path at which the query is stored. |
7. Click on the "Simulate" button to simulate the handlers that are executed as a result of invoking the selected operation along with the provided details. This will generate a graphical representation of the handlers invoked along with the status of each handler.