This sample explains how to create Accessible URLs for searches. You might also find the URL Accessibility For Reports Sample useful. We will be reusing the code of the Handler Sample in this example. This sample requires Apache Maven. See Installing Apache Maven for Governance Registry on Windows or Installing Apache Maven for Governance Registry on Linux.
Instructions
1. Navigate to GREG_HOME/
samples/handler/src
to find the source code of the Handler Sample.
...
Info | ||
---|---|---|
| ||
The command |
A successful run of Apache Maven will generate a report similar to the following:
...
Code Block | ||
---|---|---|
| ||
<handler class="org.wso2.carbon.registry.samples.handler.URIForSearchHandler"> <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher"> <property name="pattern">/_system/config/users/.*/searchFilters/.*</property> </filter> </handler> |
See also Handler Configuration Details.
7. Start the WSO2 Governance Registry. See Starting Governance Registry Management Console Installing on Windows or Starting Governance Registry Management Console Installing on Linux and Solaris.
8. Navigate to the Search page and search for resources by the name "_system".
See also Search.
9. Once the search has been completed, save the search with the Filter Name "SystemColSearch".
Click the "Save" button to save the search.
10. Finally navigate to the List URI page to see your URI added.
See also Managing URIs.
Excerpt | ||
---|---|---|
| ||
Instructions on how to create Accessible URLs for searches. |