Registry Asset-Models Sample
============================

The purpose of this sample is to demonstrate how a registry extension is created. Additionally it shows how to create Reports to registry extension artifacts.

Registry extension includes the following components,
1. Registry extension file (.rxt) which define new metadata type. Some metadata model can have sevaral registry extension files. For more information on how to create a registry extension file please refer http://docs.wso2.org/wiki/display/Governance450/Configurable+Governance+Artifacts.
2. Handler definition and Handler code (.jar) for the new metatype (Not mandatory). For more information on how to create a registry handler 
please refer http://docs.wso2.org/wiki/display/Governance450/Extensions.

In each this samples you can find the registry extension files as well as the hanlder code.

Report generation includes,
1. Report template which is a jasper report template (.jrxml). You can use jasper reporting guide to create the jasper report template.
2. Report generator code which use to populate the data to the report from the registry.

In each this samples you can find sample report templates as well as report generator code. 

Populating the extensions
=========================

For more information on populating the extension of this sample, see inside Populator. For further information on asset models or customize the samples check inside the other directories containing various implementations.

Running the sample populator is just a matter of executing an ant file. If you don't have ant, you can download it at http://ant.apache.org/.

After you run the populator you can see following types added in the management console.
1. Registry extension files in "/_system/governance/repository/components/org.wso2.carbon.governance/types".
2. New artifact types in Metadata -> Add/List.
3. Handler definition in Extensions -> Configure -> Handlers if available.
4. Handler jar in Extensions -> Extensions -> List  if available.
5. Reporting template in "/_system/governance/repository/components/org.wso2.carbon.governance/templates".
6. Report list in Resources -> Reports. 

Using extensions
================

After populating the asset model samples, 
1. You can add/list/delete/update new artifact types. Generate reports  
2. You can use the added reports in Resources -> Reports to generate/schedule reports for different asset models.
