Versions Compared

Key

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

WSO2 Developer Studio can be used to manage a remote Governance Registry server from inside eclipse IDE. This document explains how to get this functionality.

Table of Contents

Add different remote registry instances

  1. Select

    Open the WSO2 registry perspective

    You can either open the Developer Studio dashboard and click Switch to registry perspective or go to click Window - > Open Perspective - > Other - > WSO2 Registry. In this perspective you will get a WSO2 Registry Browser view.

    Image RemovedImage Added

    Image RemovedImage Added

  2. Add a remote registry instance

    Right click on On the WSO2 Registry Browser view and fill , click the Add Registry icon.

    Image Added

    In the dialog box that appears, fill in the necessary information in the dialog box. The default information for WSO2 Governance Registry has been automatically filled in. In the path text box, you can give the path you want registry from. You can either specify root (/) or any other valid registry path for a collection (eg: /_system/local, /_system etc). Elements down the given path will be loaded in the Registry Browser view.

    Image RemovedImage Added

    If you select root selected root (/) as the path, you will get the following registry tree:

    Image RemovedImage Added

    If you select selected /_system/local as the path, you will get the following registry tree:

    Image Removed

    When you expand the added regisrty instance, you will see two main sections called UserStore and Repository. When you expand the UserStore node, you will get functionalities related to User Management. Similarly you will get the registry related functionalities when you expand the Repository node.

    Image RemovedImage Added

Add, edit

...

and delete collections

...

and resources

Info

Do not set the media type for WSDLs and WSDL resources (it is then automatically set to application/xml). This is done to ensure that the WSDL handler does not intercept the Registry Put operation.

  1. Add a new collection

    Expand the Repository node and select the root collection. Then right click on the collection and you will see the functionalities available. Click Add a new Collection and you will get an editor where you can enter a name, media type and description for the collection.

    This editor will act as a normal editor so to add the collection, you have to save the changes done in the editor. To save press ctrl+s and a new collection with the given name will be added to the node that you selected.


    In the media type combo box, you have the ability to create your own media type by selecting the Other option.

  2. Add a new resource

    Select a collection, right click on it and click Add a new resource. You will get the same editor as you get for the collection. You have three ways to add a resource.

    1. Upload content from file
    2. Create custom content
    3. Import content from URL

    1. Upload content from file
      This is the default method to add a resource. Browse the file you want to add from the file system. Resource name and media type will be filled accordingly. You can change those default values according to your preference as well.

    2. Create custom content

      Use this method to create your own resource files from the editor. Give a name, mediatype, description and content for the file. You can edit content according to the specified media type.

    3. Import content from URL

      Using this method, you can import content from a URL. When you give the URL, make sure it does not contain characters like ~ since it is considered as an invalid character for abdera. Name field and media type field will be filled according to the given URL. You have to ability to modify them according to your preference as well.

After adding a resource to your G-Reg project, the resource editor appears. If you close the editor and want to open it again at any point, simply select your registry resource project from the Project Explorer, right click and click Registry Resources Editor.

It is also possible to edit the provided information later. To edit media type or resource description, select the resource, right click on it and select Information from the menu. You can delete the collection or resource you added by right clicking on the resource or collection and clicking DeleteWhen you select the delete option, a confirmation dialog box pops up. Click Yes to proceed.

...