Author: deepal
Date: Sun Feb 10 04:04:07 2008
New Revision: 13513

Log:

updating docs for 1.0 release 

Added:
   branches/registry/1_0/modules/documentation/src/site/resources/
   branches/registry/1_0/modules/documentation/src/site/resources/images/
   
branches/registry/1_0/modules/documentation/src/site/resources/images/Image9.jpg
   (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/Imageq10.jpg
   (contents, props changed)
   branches/registry/1_0/modules/documentation/src/site/resources/images/Recent 
Activitivity.png   (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/entries.png
   (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/image1.jpg
   (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/image3.jpg
   (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/image5.jpg
   (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/image6.jpg
   (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/image7.jpg
   (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/logo.jpg  
 (contents, props changed)
   
branches/registry/1_0/modules/documentation/src/site/resources/images/permissions.png
   (contents, props changed)
   branches/registry/1_0/modules/documentation/xdocs/index.xml
Removed:
   branches/registry/1_0/modules/documentation/resources/
Modified:
   branches/registry/1_0/modules/documentation/src/site/site.xml
   branches/registry/1_0/modules/documentation/xdocs/userguide.xml

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/Image9.jpg
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/Imageq10.jpg
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/Recent 
Activitivity.png
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/entries.png
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/image1.jpg
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/image3.jpg
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/image5.jpg
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/image6.jpg
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/image7.jpg
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/logo.jpg
==============================================================================
Binary file. No diff available.

Added: 
branches/registry/1_0/modules/documentation/src/site/resources/images/permissions.png
==============================================================================
Binary file. No diff available.

Modified: branches/registry/1_0/modules/documentation/src/site/site.xml
==============================================================================
--- branches/registry/1_0/modules/documentation/src/site/site.xml       
(original)
+++ branches/registry/1_0/modules/documentation/src/site/site.xml       Sun Feb 
10 04:04:07 2008
@@ -1,23 +1,26 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<project name="Maven">
+<project name="WSO2 Registry">
   <bannerLeft>
     <name>WSO2 Registry</name>
-    <src>http://www.apache.org/images/asf_logo_wide.png</src>
+    <!--<src>http://www.apache.org/images/asf_logo_wide.png</src>
+    Need to put oxygentank logo
+    -->
     <href>http://wso2.org/produts/registry/</href>
   </bannerLeft>
   <bannerRight>
-    <src>http://ws.apache.org/axis2/images/axis.jpg</src>
+    <src>/images/logo.jpg</src>
   </bannerRight>
   <body>
                <menu name="Documents">
-                       <item name="Introduction" href="userguide.xml" />
+                       <item name="Introduction" href="userguide.html" />
+                  <item name="JavaDocs" href="../apidocs/index.html" />
                </menu>
 <menu name="Project Information">
                        <item name="Project Team" href="team-list.html" />
                                <item name="Issue Tracking" 
href="issue-tracking.html" />
                  <item name="Mailing List " href="mail-lists.html" />
                        <item name="Source Code"
-                               
href="http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/?root=Apache-SVN";
 />
+                               
href="https://wso2.org/repos/wso2/trunk/registry/"; />
                        <item name="License"
                                
href="http://www.apache.org/licenses/LICENSE-2.0.html"; />
                </menu>

Added: branches/registry/1_0/modules/documentation/xdocs/index.xml
==============================================================================
--- (empty file)
+++ branches/registry/1_0/modules/documentation/xdocs/index.xml Sun Feb 10 
04:04:07 2008
@@ -0,0 +1,74 @@
+<!--
+  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml";>
+<body>
+<h1>Welcome to WSO2 Registry </h1>
+
+<h2>February 11th, 2008 - WSO2 Registry , 1.0 Released!</h2>
+
+
+<p>The WSO2 Registry is a hub for managing data in a web-friendly and
+community-enabled way.  It was built with enterprise metadata for SOA in
+mind, but really it's up to you - the Registry can hold any kind of
+"stuff" including images, service descriptions, text files, office
+documents... and every resource you put in the Registry becomes a center
+for social activity.</p>
+
+<p>The Registry stores and indexes arbitrary data.  Your data.</p>
+<ul>
+  <li>Fully versioned, supports rollbacks</li>
+  <li>Social features foster community and emergent connections</li>
+  <li>Rich security model with users/roles/permissions</li>
+  <li>REST model for remote access by any HTTP/Atom client</li>
+  <li>Lifecycle management</li>
+  <li>Extensible</li>
+  <li>Deploys embedded, standalone, or in a WAR.</li>
+</ul>
+
+<p>The Registry Server implements the Atom and Atom Publishing Protocol
+specifications.  Each directory in the Registry is also an Atom
+collection, and can be subscribed to with any standard feed reader
+(Google Reader, Bloglines, etc).  The results of searches, tags,
+comments - all can be viewed and accessed in a standard, uniform way. 
+And of course there's also a lightweight Java API so it's easy to integrate 
into your projects.</p>
+
+<p>The Registry has been designed both to encourage "grass-roots" community
+around your data and also to allow for IT-friendly governance.  With
+custom properties, extensions to handle particular URLs or media types, 
+and a rich security system, you can engage as much or as little control as you 
like.  
+For instance, you could ensure that tests are being performed, or 
+WSDLs fit certain policies, before promoting them to production use.</p>
+
+<h3>The WSO2 Registry, as with all of our software, is free and open-source.
+Download it and give it a try!</h3>
+
+<h2>Mailing Lists</h2>
+
+<p>Your feedback on WSO2 Registry is most appreciated. Please send them to our
+user mailing lists:</p>
+<ul>
+  <li>WSO2 Registry , Developers' mailing list<a
+    href="mailto:[email protected]";>[email protected]</a> | <a
+    href="mailto:[EMAIL PROTECTED]">Subscribe</a>
+    | <a
+    href="mailto:[EMAIL PROTECTED]">Unsubscribe</a>
+    | <a href="http://www.wso2.org/mailarchive/registry-dev-request/";>Mail
+    Archive</a></li>
+</ul>
+</body>
+</html>

Modified: branches/registry/1_0/modules/documentation/xdocs/userguide.xml
==============================================================================
--- branches/registry/1_0/modules/documentation/xdocs/userguide.xml     
(original)
+++ branches/registry/1_0/modules/documentation/xdocs/userguide.xml     Sun Feb 
10 04:04:07 2008
@@ -1,574 +1,582 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
-<html xmlns="http://www.w3.org/1999/xhtml";>
-<head>
-  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-  <title>WSO2 Registry - User Guide</title>
-  <meta name="generator" content="Amaya 9.54, see http://www.w3.org/Amaya/"; />
-</head>
-
-<body>
-<h1>Introduction</h1>
-
-<p></p>
-
-<p>Service Oriented Architecture is fundamentally based on metadata
-descriptions, schemas, URIs and policies. The key to a successful SOA
-deployment is to manage this data in a structured repository. WSO2 Registry
-is an open source product that enables you to store, catalog, index and
-manage your enterprise metadata in a simple, scalable and easy-to-use model.
-In fact, the WSO2 Registry can not only store such metadata but any other
-kind of data and maintain it in a versioned and URI-accessible manner. Think
-of the registry as a structured wiki designed to help you manage your
-metadata in a simple business-friendly system. Registry allows the storage of
-unstructured data such as Word documents, Excel spreadsheets and text
-formats. Using these approaches, you can build a catalog of services and
-service descriptions. A simple, RESTful programming API allows any and all
-resources stored in the WSO2 Registry to become a part of your dynamic SOA
-infrastructure- for example, by storing policies in the registry and using
-them for runtime policy enforcement. Built in community features allow WSO2
-Registry users to comment on, tag and rate resources stored in the registry.
-Registry can be navigated using the given Web application, via an AtomPub API
-or via Java API (for both local and remote registries via AtomPub).</p>
-
-<p></p>
-
-<p>This document applies to version 0.1 of the WSO2 Registry.</p>
-
-<p></p>
-
-<h1>Installing the WSO2 Registry</h1>
-
-<p></p>
-
-<p>Installing the WSO2 registry is a matter of copying wso2resgistry.war file
-into a servlet container such as Apache Tomcat. We recommend you use the
-latest version of Tomcat, version 6.* but it should work with version 5.*s as
-well. In Apache Tomcat, drop the .war file into webapps directory. (We assume
-that you have Java v1.5 at least.)</p>
-
-<p></p>
-
-<p>This initial release of WSO2 Registry only supports an unpacked (exploded)
-method of WAR deployment. Data you store in the registry will be saved in a
-database embedded in the WAR file and the files themselves will be located
-within the exploded WAR directory. Clearly, this is only used for reference -
-for if you want to add data, then you must configure an external data source
-or a JDBC connection as explained in the section below. If your application
-server does not automatically unpack the WAR file (e.g., JBossAS), then you
-must configure a data source to persist the data.</p>
-
-<p></p>
-
-<h2>Configuring a Data Source or Database</h2>
-<ul>
-  <li>Configure a data source in the application sever and edit the
-    WEB-INF/registry.xml by adding a database configuration with the data
-    source name.</li>
-  <li>Configure a database using connection parameters (connection URL,
-    driver class name, user name, password) in the registry.xml file.</li>
-</ul>
-
-<p>In both scenarios, you need to create database tables using scripts
-bundled in the source distribution. After deploying the .war file, start the
-application server, if it has not already.</p>
-
-<p></p>
-
-<h4>Configuring the WSO2 Registry to work with Apache Derby</h4>
-
-<p></p>
-
-<p>Below are the steps for configuring WSO2 Registry with Apache Derby
-database.</p>
-
-<p></p>
-<ol>
-  <li>Download and install Apache Derby in you computer, if it is not already
-    done.</li>
-  <li>Goto the &lt;derby-installation directory&gt;/bin directory and run the
-    derby network server starting script. Usually this is named as
-    "startNetworkServer".</li>
-  <li>Open another console and run the ij tool located in the
-    &lt;derby-installation directory&gt;/bin directory.</li>
-  <li>Create the registry database and connect to it using the following
-    command inside the ij prompt (replace the database file path, user name
-    and password in below command to suite your requirements).
-    <p>connect
-    
'jdbc:derby:/home/user1/wso2registry/db;user=regadmin;password=regadmin;create=true'</p>
-  </li>
-  <li>Run the derby script provided with the WSO2 Registry using the below
-    command (this will create all necessary tables for the WSO2 Registry and
-    the WSO2 User Manager embedded inside the Registry). 
-    <p>run '/home/user1/wso2registry/derby-complete.sql';</p>
-  </li>
-  <li>Verify whether all the tables are created by using the below command.
-    <p>show tables;</p>
-  </li>
-  <li>Exit the ij command using the exit command.
-    <p>exit;</p>
-  </li>
-  <li>Place the derbyclient.jar in the class path of the WSO2 Registry web
-    application.</li>
-  <li>Edit the registry.xml file of the deployed registry instance as below
-    (note the highlighted configurations).</li>
-</ol>
-
-<p></p>
-<pre>&lt;wso2regsitry&gt;</pre>
-<pre></pre>
-<pre>&lt;currentConfig&gt;derby-db&lt;/currentConfig&gt;</pre>
-<pre></pre>
-<pre>&lt;dbconfig name="in-memory"&gt;</pre>
-<pre>&lt;/dbconfig&gt;</pre>
-<pre></pre>
-<pre>&lt;dbconfig name="sample"&gt;</pre>
-<pre>&lt;/dbconfig&gt;</pre>
-<pre></pre>
-<pre>&lt;dbconfig name="derby-db"&gt;</pre>
-<pre>&lt;url&gt;jdbc:derby:/home/user1/wso2registry/db&lt;/url&gt;</pre>
-<pre>&lt;userName&gt;regadmin&lt;/userName&gt;</pre>
-<pre>&lt;password&gt;regadmin&lt;/password&gt;</pre>
-<pre>&lt;driverName&gt;org.apache.derby.jdbc.EmbeddedDriver&lt;/driverName&gt;</pre>
-<pre>&lt;/dbconfig&gt;</pre>
-<pre></pre>
-<pre>......</pre>
-<pre></pre>
-<pre>......</pre>
-<pre></pre>
-<pre>&lt;/wso2registry&gt;</pre>
-
-<p></p>
-
-<p>11. Restart the servlet container. Now WSO2 Registry is running using the
-Apache Derby database!</p>
-
-<p></p>
-
-<h2>Welcome Page</h2>
-
-<p></p>
-
-<p>After successfully deploying the WSO2 Registry webapp, launch a Web
-browser and point it to the the following
-URL:http://localhost:8080/wso2registry(you may need to change the port if
-your servlet runtime is listening on a different port).</p>
-
-<p></p>
-
-<p>This takes you to the welcome page of the registry console as given
-below:</p>
-
-<p></p>
-<img src="../resources/images/image1.jpg" alt="Registry console - welcome 
page"/>
-<p></p>
-
-<p>Figure: Welcome page on WSO2 Registry's UI console</p>
-
-<p></p>
-
-<p>Note: By default the welcome screen displays the resources page of the
-root folder. Please Refer the 'Resources' section of this documentation for
-details on features provided on this page.</p>
-
-<p></p>
-
-<h2>Signing into WSO2 Registry</h2>
-
-<p></p>
-
-<p>The option to sign in is available as a link on the top right hand corner
-of the welcome screen.</p>
-
-<p><img src="../resources/images/image3.jpg" alt="Registry console - login 
screen"/></p>
-
-<p>User will be logged in upon entering valid credentials.</p>
-
-<p>The default system has an administrator configured with username/password
-combination as 'admin'/'admin'.</p>
-
-<p></p>
-
-<h3>Navigation Bar</h3>
-
-<p>Navigation bar on the top right hand corner consists of the following
-options:</p>
-<ul>
-  <li>Resources</li>
-  <li>People</li>
-  <li>Activity</li>
-  <li>Sign in</li>
-</ul>
-
-<p>We will now discuss each of these menu options in detail:</p>
-
-<p></p>
-
-<h3>Resources</h3>
-
-<p>This is the default option activated upon log-in.</p>
-
-<p></p>
-
-<p>In the left hand side column of the resources page you'll find three
-blocks, namely, Information, Entries and Permissions.</p>
-
-<p></p>
-
-<h4>Information</h4>
-
-<p>Information block includes details of a chosen resource including the
-creation date and time under the 'Created' label with 'Author' information,
-'Last Updated' date and time with author information related to the update as
-'By', link to different versions available through 'Versions' label and
-ratings for resources including current user rating and average rating. A
-'Description' for the selected resource is also available.</p>
-
-<p>Upon selecting "Edit Description" command button, an editor will be
-provided to insert a description for the chosen resource. Users can type a
-description and select the "Save" button to save updates.</p>
-
-<p></p>
-
-<h5>Adding a new Resource</h5>
-
-<p>Adding a resource could be done for a collection of resources or for an
-individual resource. To add a collection or directory, click on the button
-provided and a page will be presented to fill in the required information.
-Optionally, a description can be included for the resource in question.</p>
-
-<p></p>
-
-<p>Note : Adding and and deleting resources within the registry are
-considered version operations. Therefore, provision is made to rollback or
-restore a resource to any previous version. Refer Versions for additional
-information on this topic.</p>
-
-<p></p>
-
-<h5>Deleting a Resource</h5>
-
-<p>To delete a resource , click on the cylindric icon provided. However, upon
-doing so a resource will not be removed from the database but instead marked
-as deleted. This provides the opportunity to restore a previously deleted
-resource.</p>
-
-<p></p>
-
-<h4>Entries</h4>
-
-<p>Using the 'entries' block, users are able to add additional resources and
-collections to the active folder.</p>
-
-<p>To add a new resource:</p>
-
-<p></p>
-
-<p>1. Select the add resource icon provided on the top right hand corner of
-the entries block as illustrated in the diagram below</p>
-
-<p>2. To add a file in the local machine as a resource, select "import
-content from file" option and browse and select the file. To import a remote
-resource, select the "Import content from URL" option and give the URL.</p>
-
-<p>3. Change the name of the resource, media type and the description, if
-required.</p>
-
-<p>4. Click "Add" button to add the new resource.</p>
-
-<p></p>
-
-<p>To add a new collection</p>
-
-<p></p>
-
-<p>1. Select the add collection icon in the entries block.</p>
-
-<p>2. Type the name of the new collection.</p>
-
-<p>3. Select a media type for the collection and type a description, if
-necessary. Note that the normal collections have the "default" media type.</p>
-
-<p>4. Click "Add" button to add the new collection.</p>
-
-<p><img src="../resources/images/entries.png" alt="Registry console - Entries 
view"/></p>
-
-<h4>Permissions</h4>
-
-<p>Using the following screen, WSO2 Registry permissions can be assigned to
-different roles and individual users.</p>
-
-<p>The top half of the permission's screen is used to define user roles and
-the bottom half for defining role permissions.</p>
-
-<p><img src="../resources/images/permissions.png" alt="Registry console - 
Permissions view"/></p>
-
-<p>To assign permissions to users or roles follow the steps given below:</p>
-
-<p></p>
-
-<p>1. select user/role from User/Role drop down</p>
-
-<p>2. choose an action from the 'Action' drop down menu</p>
-
-<p>3. select permission type. users are able to choose 'Allow' or 'Deny' by
-selecting appropriate option button.</p>
-
-<p>4. Click 'Add Permission' to apply selection</p>
-
-<p></p>
-
-<p>Existing permissions can be changed by selecting and clearing the check
-boxes for required permissions and clicking the "Apply All Permissions"
-button.</p>
-
-<p></p>
-
-<p>Note: 'User permissions' have higher priority over 'role permissions'.
-'Deny' permissions have higher priority over 'allow' priorities. Essentially,
-this means that permissions assigned to users overrides permissions assigned
-for a role and that a deny permission always overrides an 'allow' permission
-assigned to a user.</p>
-
-<p></p>
-
-<p>The right side of the resources page houses 3 additional blocks, namely:
-Tags, Comments and Versions.</p>
-
-<p></p>
-
-<h4>Tags</h4>
-
-<p>Provides space to enter tags for a given resource. These tags can be used
-when searching for a resource as key words for search criteria.</p>
-
-<p>Users can enter as many tags as they like provided individual tags are
-separated by commas and a given tag is not used by the same author to
-identify the same resource repeatedly.</p>
-
-<p><img src="../resources/images/image6.jpg" alt="Registry console - 
Tags"/></p>
-
-<h4>Comments</h4>
-
-<p>Users can either comment or refer comments made by others using the
-comments block.</p>
-
-<p>To add a new comment:</p>
-
-<p></p>
-
-<p>1. select the "ADD" icon located on the title of the bar of the comments
-block</p>
-
-<p>2. enter comment in the text box provided</p>
-
-<p>3. click the 'Add' button to continue.</p>
-
-<p><img src="../resources/images/image5.jpg" alt="Registry console - 
Comments"/></p>
-
-<h4>Versions</h4>
-
-<p>Versions block provides version-specific information including different
-versions of a given resource. These include last modified date &amp; time and
-By(username). Links are provided to visit a resource's specific version page,
-together with provision to rollback back to a chosen version of a
-resource.</p>
-
-<p><img src="../resources/images/image7.jpg" alt="Registry console - Versions 
view"/></p>
-
-<h2>People</h2>
-
-<p>Selecting "People" option on the navigation menu opens up the following
-screen. Authorized users could manage users and roles using options given.</p>
-
-<p><img src="../resources/images/Image9.jpg" alt="Registry console - 
People"/></p>
-
-<p>A list of "users" with details including User name, Name and Action
-appears on the left side column of the window together with a list of "roles"
-including Role Name and Action available on the right side column.</p>
-
-<p>"Username" column lists the username assigned for users with the "Name"
-column providing the friendly name. Under the "Actions" column action delete
-is indicated as an icon that provides the facility to delete chosen users
-from the users list.</p>
-
-<p></p>
-
-<p>To add new users:</p>
-
-<p>1. select "Add New user" icon from the title bar of the users window</p>
-
-<p>2. enter user details including Username, Password, Confirm Password and
-Role type in the space provided</p>
-
-<p>3. upon completion selection a user role for the new user and click "Add"
-button to continue.</p>
-
-<p>4. the newly created user will be listed as the last item in the users
-list.</p>
-
-<p></p>
-
-<p>Note:If an attempt is made by unauthorized users to create new users, the
-system will not allow this and will respond displaying the following error
-message: "User is unauthorized to perform the action". Sign in with valid
-credentials before attempting this activity.</p>
-
-<p><img src="../resources/images/Imageq10.jpg" alt="Registry console - 
Roles"/></p>
-
-<p>Note:Icon next to add new user/add new role icon is an expand/collapse
-icon to switch between the two views.</p>
-
-<p></p>
-
-<h2>Activity</h2>
-
-<p>The 'Activity' options presents the user with a search facility for
-searching activities performed on the Registry. The block titled "Search
-Activities" consists of space to enter search criteria such as Username,
-Path, Date and Filter by drop down in searching for recent activities. A
-screen shot of Search Activities block is given below. Notice the list of
-sample activities provided at the bottom of the block for the given
-Username.</p>
-
-<p><img src="../resources/images/Recent Activitivity.png" alt="Registry 
console - Recent Activity"/></p>
-
-<h2>Sign In/Out:</h2>
-
-<p>This toggle option provides the ability to sign in into WSO2 registry or
-sign out of WSO2 Register, as needed.</p>
-
-<p></p>
-
-<h1>Embedding the WSO2 Registry</h1>
-
-<p></p>
-
-<p>WSO2 Registry can be embedded inside other Java applications as a library
-to provide resource/community oriented features. Once embedded, Java
-applications can access all the features of the registry using the Registry
-API (org.wso2.registry.Registry). If you want to use all the
-resource/community features (exposed in the WSO2 Registry web application),
-you should embed both WSO2 Registry and WSO2 User Manager libraries in your
-application. To start with, first place the WSO2 Registry jar and the WSO2
-User Manager jar files in the class path of your application. There are many
-combinations in which you can use the embedded registry. We will discuss each
-scenario below.</p>
-
-<p></p>
-
-<h3>Creating an in-memory Registry without authorizations</h3>
-
-<p>You can just instantiate and use in-memory registry as shown below. In
-this mode, Registry uses an in-memory database and any data stored in the
-registry will not be persisted. Note that this mode is recommended only for
-testing and functional evaluation and not recommended for production
-deployments.</p>
-
-<p></p>
-<pre>Registry registry = new InMemoryJDBCRegistry();</pre>
-
-<p></p>
-
-<p>Now you can call API methods of the registry to access the registry
-features.</p>
-
-<p></p>
-
-<h3>Creating an in-memory Registry with authorizations</h3>
-
-<p>You can create a RegistryRealm and pass it to the constructor of the
-InMemoryRegistry to create a authorization aware registry. Note that it is
-highly recommended to use in-memory realm with the in-memory registry.
-Otherwise it may cause unexpected behaviors as only a part (users or
-resources) of the data get persisted.</p>
-
-<p></p>
-<pre>Ream realm = new InMemoryRegistryRealm();</pre>
-<pre>Registry registry = new InMemoryJDBCRegistry(realm);</pre>
-
-<p></p>
-
-<p>Upon the instantiation of the RegistryRealm, registry user store will be
-populated with predefined set of users and permissions. Then you can create a
-SecureRegistry instance for the admin user (pre-populated) and use it to add
-initial set of users and resources to the registry.</p>
-
-<p></p>
-<pre>SecureRegistry adminRegistry = new SecureRegistry("admin", "admin", 
registry, realm);</pre>
-
-<p></p>
-
-<p>Use the realm of the adminRegistry to add initial set of user, roles and
-permissions.</p>
-
-<p></p>
-<pre>Realm adminRealm = adminRegistry.getUserRealm();</pre>
-
-<p></p>
-
-<p>Once all initial users/resources are added, you can create SecureRegistry
-instances for each user and use those instances to access the registry. When
-the registry is accessed via a SecureRegistry instance, all the actions are
-authorized. That is, only the actions permitted for the user of the
-SecureRegistry are allowed.</p>
-
-<p></p>
-
-<h3>Creating a persistence Registry without authorizations</h3>
-
-<p></p>
-
-<p>If a DataSource is available for your application, you can simply create a
-non-secure persistence registry by providing a DataSource instance for the
-JDBCRegistry constructor.</p>
-
-<p></p>
-<pre>Registry registry = new JDBCRegistry(datasource);</pre>
-
-<p></p>
-
-<p></p>
-
-<p>If a DataSource is not available, you can use the RegistryDataSource
-constructed using database attributes.</p>
-
-<p></p>
-<pre>DataSource datasource = new 
RegistryDataSource("jdbc:derby:/home/reguser/db/registryDB", 
"org.apache.derby.jdbc.EmbeddedDriver", "user1", "user1password");</pre>
-<pre></pre>
-<pre>Registry registry = new JDBCRegistry(datasource);</pre>
-
-<p></p>
-
-<p>Now you can use this registry instance as before. All your data will be
-persisted to the given database.</p>
-
-<p></p>
-
-<h3>Creating a persistence Registry with authorizations</h3>
-
-<p></p>
-
-<p>First create a persistence realm using a datasource.</p>
-
-<p></p>
-<pre>Realm realm = new RegistryRealm(datasource);</pre>
-
-<p></p>
-
-<p>Then create a JDBCRegistry instance using the above realm and a
-datasource.</p>
-
-<p></p>
-<pre>Registry registry = new JDBCRegistry(datasource, realm);</pre>
-
-<p></p>
-
-<p>Then you can create SecureRegistry instances and access the registry with
-authorizations as mentioned in the second scenario. All your data about the
-resources and users will be persisted to the given database. </p>
-
+<!--
+  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml";>
+<body>
+<h1>Introduction</h1>
+
+<p></p>
+
+<p>Service Oriented Architecture is fundamentally based on metadata
+descriptions, schemas, URIs and policies. The key to a successful SOA
+deployment is to manage this data in a structured repository. WSO2 Registry
+is an open source product that enables you to store, catalog, index and
+manage your enterprise metadata in a simple, scalable and easy-to-use model.
+In fact, the WSO2 Registry can not only store such metadata but any other
+kind of data and maintain it in a versioned and URI-accessible manner. Think
+of the registry as a structured wiki designed to help you manage your
+metadata in a simple business-friendly system. Registry allows the storage of
+unstructured data such as Word documents, Excel spreadsheets and text
+formats. Using these approaches, you can build a catalog of services and
+service descriptions. A simple, RESTful programming API allows any and all
+resources stored in the WSO2 Registry to become a part of your dynamic SOA
+infrastructure- for example, by storing policies in the registry and using
+them for runtime policy enforcement. Built in community features allow WSO2
+Registry users to comment on, tag and rate resources stored in the registry.
+Registry can be navigated using the given Web application, via an AtomPub API
+or via Java API (for both local and remote registries via AtomPub).</p>
+
+<p></p>
+
+<p>This document applies to version 0.1 of the WSO2 Registry.</p>
+
+<p></p>
+
+<h1>Installing the WSO2 Registry</h1>
+
+<p></p>
+
+<p>Installing the WSO2 registry is a matter of copying wso2resgistry.war file
+into a servlet container such as Apache Tomcat. We recommend you use the
+latest version of Tomcat, version 6.* but it should work with version 5.*s as
+well. In Apache Tomcat, drop the .war file into webapps directory. (We assume
+that you have Java v1.5 at least.)</p>
+
+<p></p>
+
+<p>This initial release of WSO2 Registry only supports an unpacked (exploded)
+method of WAR deployment. Data you store in the registry will be saved in a
+database embedded in the WAR file and the files themselves will be located
+within the exploded WAR directory. Clearly, this is only used for reference -
+for if you want to add data, then you must configure an external data source
+or a JDBC connection as explained in the section below. If your application
+server does not automatically unpack the WAR file (e.g., JBossAS), then you
+must configure a data source to persist the data.</p>
+
+<p></p>
+
+<h2>Configuring a Data Source or Database</h2>
+<ul>
+  <li>Configure a data source in the application sever and edit the
+    WEB-INF/registry.xml by adding a database configuration with the data
+    source name.</li>
+  <li>Configure a database using connection parameters (connection URL,
+    driver class name, user name, password) in the registry.xml file.</li>
+</ul>
+
+<p>In both scenarios, you need to create database tables using scripts
+bundled in the source distribution. After deploying the .war file, start the
+application server, if it has not already.</p>
+
+<p></p>
+
+<h4>Configuring the WSO2 Registry to work with Apache Derby</h4>
+
+<p></p>
+
+<p>Below are the steps for configuring WSO2 Registry with Apache Derby
+database.</p>
+
+<p></p>
+<ol>
+  <li>Download and install Apache Derby in you computer, if it is not already
+    done.</li>
+  <li>Goto the &lt;derby-installation directory&gt;/bin directory and run the
+    derby network server starting script. Usually this is named as
+    "startNetworkServer".</li>
+  <li>Open another console and run the ij tool located in the
+    &lt;derby-installation directory&gt;/bin directory.</li>
+  <li>Create the registry database and connect to it using the following
+    command inside the ij prompt (replace the database file path, user name
+    and password in below command to suite your requirements).
+    <p>connect
+    
'jdbc:derby:/home/user1/wso2registry/db;user=regadmin;password=regadmin;create=true'</p>
+  </li>
+  <li>Run the derby script provided with the WSO2 Registry using the below
+    command (this will create all necessary tables for the WSO2 Registry and
+    the WSO2 User Manager embedded inside the Registry). 
+    <p>run '/home/user1/wso2registry/derby-complete.sql';</p>
+  </li>
+  <li>Verify whether all the tables are created by using the below command.
+    <p>show tables;</p>
+  </li>
+  <li>Exit the ij command using the exit command.
+    <p>exit;</p>
+  </li>
+  <li>Place the derbyclient.jar in the class path of the WSO2 Registry web
+    application.</li>
+  <li>Edit the registry.xml file of the deployed registry instance as below
+    (note the highlighted configurations).</li>
+</ol>
+
+<p></p>
+<pre>&lt;wso2regsitry&gt;</pre>
+<pre></pre>
+<pre>&lt;currentConfig&gt;derby-db&lt;/currentConfig&gt;</pre>
+<pre></pre>
+<pre>&lt;dbconfig name="in-memory"&gt;</pre>
+<pre>&lt;/dbconfig&gt;</pre>
+<pre></pre>
+<pre>&lt;dbconfig name="sample"&gt;</pre>
+<pre>&lt;/dbconfig&gt;</pre>
+<pre></pre>
+<pre>&lt;dbconfig name="derby-db"&gt;</pre>
+<pre>&lt;url&gt;jdbc:derby:/home/user1/wso2registry/db&lt;/url&gt;</pre>
+<pre>&lt;userName&gt;regadmin&lt;/userName&gt;</pre>
+<pre>&lt;password&gt;regadmin&lt;/password&gt;</pre>
+<pre>&lt;driverName&gt;org.apache.derby.jdbc.EmbeddedDriver&lt;/driverName&gt;</pre>
+<pre>&lt;/dbconfig&gt;</pre>
+<pre></pre>
+<pre>......</pre>
+<pre></pre>
+<pre>......</pre>
+<pre></pre>
+<pre>&lt;/wso2registry&gt;</pre>
+
+<p></p>
+
+<p>11. Restart the servlet container. Now WSO2 Registry is running using the
+Apache Derby database!</p>
+
+<p></p>
+
+<h2>Welcome Page</h2>
+
+<p></p>
+
+<p>After successfully deploying the WSO2 Registry webapp, launch a Web
+browser and point it to the the following
+URL:http://localhost:8080/wso2registry(you may need to change the port if
+your servlet runtime is listening on a different port).</p>
+
+<p></p>
+
+<p>This takes you to the welcome page of the registry console as given
+below:</p>
+
+<p></p>
+<img src="images/image1.jpg" alt="Registry console - welcome page"/>
+<p></p>
+
+<p>Figure: Welcome page on WSO2 Registry's UI console</p>
+
+<p></p>
+
+<p>Note: By default the welcome screen displays the resources page of the
+root folder. Please Refer the 'Resources' section of this documentation for
+details on features provided on this page.</p>
+
+<p></p>
+
+<h2>Signing into WSO2 Registry</h2>
+
+<p></p>
+
+<p>The option to sign in is available as a link on the top right hand corner
+of the welcome screen.</p>
+
+<p><img src="images/image3.jpg" alt="Registry console - login screen"/></p>
+
+<p>User will be logged in upon entering valid credentials.</p>
+
+<p>The default system has an administrator configured with username/password
+combination as 'admin'/'admin'.</p>
+
+<p></p>
+
+<h3>Navigation Bar</h3>
+
+<p>Navigation bar on the top right hand corner consists of the following
+options:</p>
+<ul>
+  <li>Resources</li>
+  <li>People</li>
+  <li>Activity</li>
+  <li>Sign in</li>
+</ul>
+
+<p>We will now discuss each of these menu options in detail:</p>
+
+<p></p>
+
+<h3>Resources</h3>
+
+<p>This is the default option activated upon log-in.</p>
+
+<p></p>
+
+<p>In the left hand side column of the resources page you'll find three
+blocks, namely, Information, Entries and Permissions.</p>
+
+<p></p>
+
+<h4>Information</h4>
+
+<p>Information block includes details of a chosen resource including the
+creation date and time under the 'Created' label with 'Author' information,
+'Last Updated' date and time with author information related to the update as
+'By', link to different versions available through 'Versions' label and
+ratings for resources including current user rating and average rating. A
+'Description' for the selected resource is also available.</p>
+
+<p>Upon selecting "Edit Description" command button, an editor will be
+provided to insert a description for the chosen resource. Users can type a
+description and select the "Save" button to save updates.</p>
+
+<p></p>
+
+<h5>Adding a new Resource</h5>
+
+<p>Adding a resource could be done for a collection of resources or for an
+individual resource. To add a collection or directory, click on the button
+provided and a page will be presented to fill in the required information.
+Optionally, a description can be included for the resource in question.</p>
+
+<p></p>
+
+<p>Note : Adding and and deleting resources within the registry are
+considered version operations. Therefore, provision is made to rollback or
+restore a resource to any previous version. Refer Versions for additional
+information on this topic.</p>
+
+<p></p>
+
+<h5>Deleting a Resource</h5>
+
+<p>To delete a resource , click on the cylindric icon provided. However, upon
+doing so a resource will not be removed from the database but instead marked
+as deleted. This provides the opportunity to restore a previously deleted
+resource.</p>
+
+<p></p>
+
+<h4>Entries</h4>
+
+<p>Using the 'entries' block, users are able to add additional resources and
+collections to the active folder.</p>
+
+<p>To add a new resource:</p>
+
+<p></p>
+
+<p>1. Select the add resource icon provided on the top right hand corner of
+the entries block as illustrated in the diagram below</p>
+
+<p>2. To add a file in the local machine as a resource, select "import
+content from file" option and browse and select the file. To import a remote
+resource, select the "Import content from URL" option and give the URL.</p>
+
+<p>3. Change the name of the resource, media type and the description, if
+required.</p>
+
+<p>4. Click "Add" button to add the new resource.</p>
+
+<p></p>
+
+<p>To add a new collection</p>
+
+<p></p>
+
+<p>1. Select the add collection icon in the entries block.</p>
+
+<p>2. Type the name of the new collection.</p>
+
+<p>3. Select a media type for the collection and type a description, if
+necessary. Note that the normal collections have the "default" media type.</p>
+
+<p>4. Click "Add" button to add the new collection.</p>
+
+<p><img src="images/entries.png" alt="Registry console - Entries view"/></p>
+
+<h4>Permissions</h4>
+
+<p>Using the following screen, WSO2 Registry permissions can be assigned to
+different roles and individual users.</p>
+
+<p>The top half of the permission's screen is used to define user roles and
+the bottom half for defining role permissions.</p>
+
+<p><img src="images/permissions.png" alt="Registry console - Permissions 
view"/></p>
+
+<p>To assign permissions to users or roles follow the steps given below:</p>
+
+<p></p>
+
+<p>1. select user/role from User/Role drop down</p>
+
+<p>2. choose an action from the 'Action' drop down menu</p>
+
+<p>3. select permission type. users are able to choose 'Allow' or 'Deny' by
+selecting appropriate option button.</p>
+
+<p>4. Click 'Add Permission' to apply selection</p>
+
+<p></p>
+
+<p>Existing permissions can be changed by selecting and clearing the check
+boxes for required permissions and clicking the "Apply All Permissions"
+button.</p>
+
+<p></p>
+
+<p>Note: 'User permissions' have higher priority over 'role permissions'.
+'Deny' permissions have higher priority over 'allow' priorities. Essentially,
+this means that permissions assigned to users overrides permissions assigned
+for a role and that a deny permission always overrides an 'allow' permission
+assigned to a user.</p>
+
+<p></p>
+
+<p>The right side of the resources page houses 3 additional blocks, namely:
+Tags, Comments and Versions.</p>
+
+<p></p>
+
+<h4>Tags</h4>
+
+<p>Provides space to enter tags for a given resource. These tags can be used
+when searching for a resource as key words for search criteria.</p>
+
+<p>Users can enter as many tags as they like provided individual tags are
+separated by commas and a given tag is not used by the same author to
+identify the same resource repeatedly.</p>
+
+<p><img src="images/image6.jpg" alt="Registry console - Tags"/></p>
+
+<h4>Comments</h4>
+
+<p>Users can either comment or refer comments made by others using the
+comments block.</p>
+
+<p>To add a new comment:</p>
+
+<p></p>
+
+<p>1. select the "ADD" icon located on the title of the bar of the comments
+block</p>
+
+<p>2. enter comment in the text box provided</p>
+
+<p>3. click the 'Add' button to continue.</p>
+
+<p><img src="images/image5.jpg" alt="Registry console - Comments"/></p>
+
+<h4>Versions</h4>
+
+<p>Versions block provides version-specific information including different
+versions of a given resource. These include last modified date &amp; time and
+By(username). Links are provided to visit a resource's specific version page,
+together with provision to rollback back to a chosen version of a
+resource.</p>
+
+<p><img src="images/image7.jpg" alt="Registry console - Versions view"/></p>
+
+<h2>People</h2>
+
+<p>Selecting "People" option on the navigation menu opens up the following
+screen. Authorized users could manage users and roles using options given.</p>
+
+<p><img src="images/Image9.jpg" alt="Registry console - People"/></p>
+
+<p>A list of "users" with details including User name, Name and Action
+appears on the left side column of the window together with a list of "roles"
+including Role Name and Action available on the right side column.</p>
+
+<p>"Username" column lists the username assigned for users with the "Name"
+column providing the friendly name. Under the "Actions" column action delete
+is indicated as an icon that provides the facility to delete chosen users
+from the users list.</p>
+
+<p></p>
+
+<p>To add new users:</p>
+
+<p>1. select "Add New user" icon from the title bar of the users window</p>
+
+<p>2. enter user details including Username, Password, Confirm Password and
+Role type in the space provided</p>
+
+<p>3. upon completion selection a user role for the new user and click "Add"
+button to continue.</p>
+
+<p>4. the newly created user will be listed as the last item in the users
+list.</p>
+
+<p></p>
+
+<p>Note:If an attempt is made by unauthorized users to create new users, the
+system will not allow this and will respond displaying the following error
+message: "User is unauthorized to perform the action". Sign in with valid
+credentials before attempting this activity.</p>
+
+<p><img src="images/Imageq10.jpg" alt="Registry console - Roles"/></p>
+
+<p>Note:Icon next to add new user/add new role icon is an expand/collapse
+icon to switch between the two views.</p>
+
+<p></p>
+
+<h2>Activity</h2>
+
+<p>The 'Activity' options presents the user with a search facility for
+searching activities performed on the Registry. The block titled "Search
+Activities" consists of space to enter search criteria such as Username,
+Path, Date and Filter by drop down in searching for recent activities. A
+screen shot of Search Activities block is given below. Notice the list of
+sample activities provided at the bottom of the block for the given
+Username.</p>
+
+<p><img src="images/Recent Activitivity.png" alt="Registry console - Recent 
Activity"/></p>
+
+<h2>Sign In/Out:</h2>
+
+<p>This toggle option provides the ability to sign in into WSO2 registry or
+sign out of WSO2 Register, as needed.</p>
+
+<p></p>
+
+<h1>Embedding the WSO2 Registry</h1>
+
+<p></p>
+
+<p>WSO2 Registry can be embedded inside other Java applications as a library
+to provide resource/community oriented features. Once embedded, Java
+applications can access all the features of the registry using the Registry
+API (org.wso2.registry.Registry). If you want to use all the
+resource/community features (exposed in the WSO2 Registry web application),
+you should embed both WSO2 Registry and WSO2 User Manager libraries in your
+application. To start with, first place the WSO2 Registry jar and the WSO2
+User Manager jar files in the class path of your application. There are many
+combinations in which you can use the embedded registry. We will discuss each
+scenario below.</p>
+
+<p></p>
+
+<h3>Creating an in-memory Registry without authorizations</h3>
+
+<p>You can just instantiate and use in-memory registry as shown below. In
+this mode, Registry uses an in-memory database and any data stored in the
+registry will not be persisted. Note that this mode is recommended only for
+testing and functional evaluation and not recommended for production
+deployments.</p>
+
+<p></p>
+<pre>Registry registry = new InMemoryJDBCRegistry();</pre>
+
+<p></p>
+
+<p>Now you can call API methods of the registry to access the registry
+features.</p>
+
+<p></p>
+
+<h3>Creating an in-memory Registry with authorizations</h3>
+
+<p>You can create a RegistryRealm and pass it to the constructor of the
+InMemoryRegistry to create a authorization aware registry. Note that it is
+highly recommended to use in-memory realm with the in-memory registry.
+Otherwise it may cause unexpected behaviors as only a part (users or
+resources) of the data get persisted.</p>
+
+<p></p>
+<pre>Ream realm = new InMemoryRegistryRealm();</pre>
+<pre>Registry registry = new InMemoryJDBCRegistry(realm);</pre>
+
+<p></p>
+
+<p>Upon the instantiation of the RegistryRealm, registry user store will be
+populated with predefined set of users and permissions. Then you can create a
+SecureRegistry instance for the admin user (pre-populated) and use it to add
+initial set of users and resources to the registry.</p>
+
+<p></p>
+<pre>SecureRegistry adminRegistry = new SecureRegistry("admin", "admin", 
registry, realm);</pre>
+
+<p></p>
+
+<p>Use the realm of the adminRegistry to add initial set of user, roles and
+permissions.</p>
+
+<p></p>
+<pre>Realm adminRealm = adminRegistry.getUserRealm();</pre>
+
+<p></p>
+
+<p>Once all initial users/resources are added, you can create SecureRegistry
+instances for each user and use those instances to access the registry. When
+the registry is accessed via a SecureRegistry instance, all the actions are
+authorized. That is, only the actions permitted for the user of the
+SecureRegistry are allowed.</p>
+
+<p></p>
+
+<h3>Creating a persistence Registry without authorizations</h3>
+
+<p></p>
+
+<p>If a DataSource is available for your application, you can simply create a
+non-secure persistence registry by providing a DataSource instance for the
+JDBCRegistry constructor.</p>
+
+<p></p>
+<pre>Registry registry = new JDBCRegistry(datasource);</pre>
+
+<p></p>
+
+<p></p>
+
+<p>If a DataSource is not available, you can use the RegistryDataSource
+constructed using database attributes.</p>
+
+<p></p>
+<pre>DataSource datasource = new 
RegistryDataSource("jdbc:derby:/home/reguser/db/registryDB", 
"org.apache.derby.jdbc.EmbeddedDriver", "user1", "user1password");</pre>
+<pre></pre>
+<pre>Registry registry = new JDBCRegistry(datasource);</pre>
+
+<p></p>
+
+<p>Now you can use this registry instance as before. All your data will be
+persisted to the given database.</p>
+
+<p></p>
+
+<h3>Creating a persistence Registry with authorizations</h3>
+
+<p></p>
+
+<p>First create a persistence realm using a datasource.</p>
+
+<p></p>
+<pre>Realm realm = new RegistryRealm(datasource);</pre>
+
+<p></p>
+
+<p>Then create a JDBCRegistry instance using the above realm and a
+datasource.</p>
+
+<p></p>
+<pre>Registry registry = new JDBCRegistry(datasource, realm);</pre>
+
+<p></p>
+
+<p>Then you can create SecureRegistry instances and access the registry with
+authorizations as mentioned in the second scenario. All your data about the
+resources and users will be persisted to the given database. </p>
+
 <h2>RemoteRegistry</h2>
 
 <p>In simple words, the RemoteRegistry is a Java API for interacting with a
@@ -617,13 +625,13 @@
 URL("http://localhost:8080/wso2registry/atom";), "admin", "admin");</code></pre>
 
 <p>In this example, we have created the remote_registry instance with
-username=&rdquo;admin&rdquo; and the password as also &ldquo;admin&rdquo;.</p>
+username="admin" and the password as also "admin".</p>
 
 <h3>Reading a resource</h3>
 
 <p>Once we have the registry instance in place, navigation is
 straightforward. It is the same as working with the Registry API. Say we have
-a resource called &ldquo;/foo/c1&rdquo; in the Registry and you can access it
+a resource called "/foo/c1" in the Registry and you can access it
 using the remote_registry instance as given below:</p>
 
 <p></p>
@@ -645,7 +653,7 @@
 <p>To add a resource to the remote_registry instance, first thing we need to
 do is to create a Resource object and then to call its put method:</p>
 
-<p>First let's try to cerate a collection called &ldquo;/foo/c2&rdquo;</p>
+<p>First let's try to cerate a collection called "/foo/c2"</p>
 
 <p></p>
 
@@ -675,7 +683,7 @@
 
 <p>We can use the following code to confirm whether the resource exists:</p>
 
-<pre>boolean value 
=remote_registry.resourceExists(&ldquo;/c1/c2/r1&rdquo;);</pre>
+<pre>boolean value =remote_registry.resourceExists("/c1/c2/r1");</pre>
 
 <p>If the resource does exist, a boolean value of true will be returned, else
 false.</p>
@@ -684,10 +692,10 @@
 
 <p>Additionally, we can use the remote_registry instance to delete resources.
 Deleting a resource is a matter of calling the delete method of the
-remote_registry. Let's just say we want to delete &ldquo;/c1/c2/r1&rdquo;.
+remote_registry. Let's just say we want to delete "/c1/c2/r1".
 Then we can use the following code:</p>
 
-<pre>RemoteRegistry.delete(&ldquo;/c1/c2/r1&rdquo;);</pre>
+<pre>RemoteRegistry.delete("/c1/c2/r1");</pre>
 
 <p></p>
 
@@ -698,11 +706,11 @@
 
 <p></p>
 
-<pre>remote_registry.rename(&ldquo;/c1/c2/r1&rdquo; ,
-&ldquo;/c1/c2/r2&rdquo;);</pre>
+<pre>remote_registry.rename("/c1/c2/r1" ,
+"/c1/c2/r2");</pre>
 
-<p>Above line of code renames &ldquo;&ldquo;/c1/c2/r1&rdquo;&rdquo; to
-&ldquo;/c1/c2/r2&rdquo;</p>
+<p>Above line of code renames "/c1/c2/r1" to
+"/c1/c2/r2"</p>
 
 <p></p>
 
@@ -712,7 +720,7 @@
 below. The result would be an array of String, containing links to the
 different versions of the resource.</p>
 
-<pre>String [] versions = 
remote_registry.getVersions(&ldquo;/c1/c2&rdquo;);</pre>
+<pre>String [] versions = remote_registry.getVersions("/c1/c2");</pre>
 
 <h3>Restoring to an old version</h3>
 
@@ -732,11 +740,11 @@
 
 <p>We can perform tagging operations using the remote_registry. To tag a
 resource, we need the resource path and the tagging words. Let's say we need
-to tag a resource named &ldquo;/c1/c2/r2&rdquo; as &ldquo;rename
-resource&rdquo;. We can do this as:</p>
+to tag a resource named "/c1/c2/r2" as "rename
+resource". We can do this as:</p>
 
-<pre>remote_registry.applyTag(&ldquo;/c1/c2/r2&rdquo; , &ldquo;rename
-resource&rdquo;);</pre>
+<pre>remote_registry.applyTag("/c1/c2/r2" , "rename
+resource");</pre>
 
 <p></p>
 
@@ -746,14 +754,14 @@
 will return an array of Tag type and we can iterate the array to see the
 content.</p>
 
-<pre>Tag[] tags = remote_registry.getTags(&ldquo;/c1/c2/r2&rdquo;);</pre>
+<pre>Tag[] tags = remote_registry.getTags("/c1/c2/r2");</pre>
 
 <h3>Deleting a Tag</h3>
 
 <p>We can remove a tag using the tag name. Use the following code:</p>
 
-<pre>remote_registry.removeTag(&ldquo;/c1/c2/r2&rdquo;,&ldquo;rename
-resource&rdquo;);</pre>
+<pre>remote_registry.removeTag("/c1/c2/r2","rename
+resource");</pre>
 
 <h3>Commenting a Resource</h3>
 
@@ -772,16 +780,16 @@
 <p></p>
 
 <p>The above lines of code will add a comment to the resource named:
-&ldquo;c1/c2/r2 &ldquo;.</p>
+"c1/c2/r2 ".</p>
 
 <h3>Edit a Comment</h3>
 
 <p>We can also make changes to comments we have already made using the
 remote_registry instance. Here, we need the path and new text for the comment
-we are adding. Say we want to change from &ldquo;This is my comment&rdquo; to
-&ldquo;This is cool&rdquo;, For that, we can do the following:</p>
+we are adding. Say we want to change from "This is my comment" to
+"This is cool", For that, we can do the following:</p>
 
-<pre>remote_registry.editComment(commentpath,&ldquo;This is cool&rdquo;)</pre>
+<pre>remote_registry.editComment(commentpath,"This is cool")</pre>
 
 <h3>Rating a Resource</h3>
 
@@ -789,7 +797,7 @@
 remote_registry instance. Rating a resource can be done using following line
 of code:</p>
 
-<pre>remote_registry.rateResource(&ldquo;c1/c2/r2 &rdquo; , 4);</pre>
+<pre>remote_registry.rateResource("c1/c2/r2 " , 4);</pre>
 
 <p>In addition to the above operations, there are a number of others that we
 can perform using the remote_registry instance. In this document we have
@@ -805,13 +813,13 @@
 operation on any kind of version management system. Following code
 demonstrates how to import a local file system into the Registry:</p>
 
-<p>File file = new File(&ldquo;Path of the file&rdquo;);</p>
+<p>File file = new File("Path of the file");</p>
 
 <pre><code>RemoteRegistry remote_registry = new RemoteRegistry(new
 URL("http://localhost:8080/wso2registry/atom";), "admin", "admin");
 
 RegistryClientUtils.importToRegistry(file ,
-&ldquo;/myfile/filesystem&rdquo; ,remote_registry);</code></pre>
+"/myfile/filesystem" ,remote_registry);</code></pre>
 
 <p></p>
 
@@ -825,21 +833,21 @@
 system. Even if we have the resource with binary data, then it will create
 all of the necessary files in the file system.</p>
 
-<p>Let's say we want to export &ldquo;/myfile/filesystem&rdquo; into my local
+<p>Let's say we want to export "/myfile/filesystem" into my local
 file system then we can use the following code:</p>
 
-<pre><code>File toFile = new File(&ldquo;Path of the new file&rdquo;);
+<pre><code>File toFile = new File("Path of the new file");
 
 RemoteRegistry remote_registry = new RemoteRegistry(new
 URL("http://localhost:8080/wso2registry/atom";), "admin", "admin");
 
 RegistryClientUtils.importToRegistry( toFile,
-&ldquo;/myfile/filesystem&rdquo; ,remote_registry);</code></pre>
+"/myfile/filesystem" ,remote_registry);</code></pre>
 
 <p></p>
 
 <p>We need to keep in mind when exporting the Registry to a file system, that
 it will only export the resources but not the comments, tags and any rating
-associated.</p>
-</body>
-</html>
+associated.</p>
+</body>
+</html>

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to