This sample explains how to create Accessible URLs for reports. You might also find the URL Accessibility For Searches Sample useful. We will be reusing the code of the Handler Sample and reusing logic of the Asset Models 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.URIForReportHandler"> <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher"> <property name="pattern">/_system/governance/reports/.*</property> </filter> <property name="registryURL">https://localhost:9443/registry</property> </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. Run the Asset Models Sample for Applications and create a few Applications in Governance Registry (to facilitate the generation of meaningful reports).
9. Navigate to the Manage Reports page, and Schedule the Application Report.
10. Fill in the following parameters and schedule the report generation:
- Cron Expression - 0/10 * * * * ?
- Registry URL - https://localhost:9443/registry
- Username - admin
- Password - admin
- Resource Path - /_system/governance/reports/ApplicationReport.pdf
Click the "Schedule" button to finish scheduling the report.
...
11. 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 reports. |