Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
titleNote

The command mvn clean install will trigger an Apache Maven Build in your command line. This requires you having installed Apache Maven. See Installing Apache Maven for Governance Registry on Windows or  or Installing Apache Maven for Governance Registry on Linux.

A successful run of Apache Maven will generate a report similar to the following:

...

Code Block
languagehtml/xml
<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 on Windows or Starting Governance Registry Management Console on Linux.

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".

...

10. Finally navigate to the List URI page to see your URI added.

See also Managing URIs.

Excerpt
hiddentrue

Instructions on how to create Accessible URLs for searches.