WSO2 Governance Registry - Guide for Governance Registry Samples

WSO2 Governance Registry - Guide for Governance Registry Samples

Table of Contents

Distributed LifeCycle Management sample

Introduction

Software Project Lifecycle is a sample on how a user is able to make use of the "Lifecycle status" in a project development cycle. Initially an Architect designs 'Use case diagrams and other designs which is then implemented by the Developers. After finishing the implementation task, Developers promote the resource to the Testing state for further validation of the resource/product. After passing all the tests, QA allows customers to deploy the product/project. Therefore, altogether this has five states.

Running the sample

Note:- You also can add lifecycle configurations on the registry.xml file. Such configurations will be globally available to all users of this server instance.

WS-API Sample

The WS Registry API exposes a complete set of registry operations that can be accessed through Web Service calls. This readme explains how to run the sample that uses the WS Registry client sample.

Pre - Requirements

Steps to get this sample to work

Exporting/importing a file to Remote registry

Introduction

This sample demonstrates how to export a local file system into a remote registry, and how to import a remote registry into a local file system. We can build our content in the local file system with the folder hierarchy we want, including any type of content. Then we can use the registry API to export our local file system into the registry.
Once we upload a local file system into the registry we have socially enabled it. We can comment on resources, we can tag, we can rate, etc...
We can also build our hierarchy in the Registry with the structure we want, and then we can download or import the remote registry into our local file system. Then the registry will create the exact same folder structure and download all the files in the registry.

Running the sample

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

Exporting local file system into a remote registry

Run ant upload inside the GREG_HOME/samples/filesampleutils folder. You will be asked for:

Importing a file into the local file system

Now we go the other way. Again, run ant download first, and provide values:

Note:- You should put all the required jars into the GREG_HOME/lib folder.

Jars you may need to run the sample

Place all those jars in GREG_HOME/lib folder.

Project Proposal Handler Sample

Introduction

The idea of this sample is to demonstrate how to use media type handlers. The sample application is to process project proposals, so we'll be using a component that intercepts Registry put() requests with a particular "proposal" media-type. The Handler will read the proposal and mark it as valid or not. In order to be a valid proposal there should be a number of fields - if all of them are there then the handler will mark the proposal as valid. If one or more fields are missing then the proposal would be invalid.

Custom UI Sample

This sample demonstrates how a simple custom UI can be created to add, view, and edit, endpoints stored on the WSO2 Governance Registry. Please note that the Resource Name, Endpoint Name and the Endpoint URI are mandatory fields, and The URI must be valid.

Adding an endpoint reference as a resource

Browsing the resource

Shutterbug Sample

The idea of this sample is to demonstrate how to use the WSO2 Governance Registry to build real world applications. This sample is designed to be used to host a competition on the WSO2 Governance Registry that will select 12 images out of several hundreds of images to be published on a calendar. Each user will be allowed to upload up to 2 images, and can vote for 12 images. Finally the administrators can browse the images with the highest number of votes and decide on the winners.

Steps

Cooliris 3D Embed Wall

This sample uses the Cooliris 3D Embed Wall (online), to display uploaded images. More information on how to use the Cooliris 3D Embed Wall, and Terms and Conditions of usage can be found at http://www.cooliris.com.