Versions Compared

Key

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

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 Installation Prerequisites for links on how to install it.

Instructions

1. Navigate to GREG_HOME/samples/handler/src to find the source code of the Handler Sample.

2. Add the following dependency to your POM file. Make sure you update the current version of carbon governance (e.g. 4.56.13).

Info

Project Object Model (POM) is an XML representation of a Maven project held in a file named pom.xml. You should find POM file by the name pom.xml inside GREG_HOME<G-REG_HOME>/ samples/handler/src/ directory.

Code Block
languagehtml/xml
<dependency>
    <groupId>org.wso2.carbon.governance</groupId>
    <artifactId>org.wso2.carbon.governance.api</artifactId>
    <version>{current version of the carbon.governance}</version>
</dependency>

...

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

5. Copy the GREG_HOMEthe <G-REG_HOME>/ samples/handler/src/target/ org.wso2.carbon.registry.samples.handler-45.52.0.jar into GREG_HOME file into the <G-REG_HOME>/repository/components/dropins/ directory.

6. Edit the registry.xml file which is in GREG_HOME/repository/conf folder and add the following XML snippet.

...