[Yanel-commits] rev 32415 - public/yanel/trunk/src/realms/yanel-website/content

michi at wyona.com michi at wyona.com
Mon Feb 25 12:07:42 CET 2008


Author: michi
Date: 2008-02-25 12:07:41 +0100 (Mon, 25 Feb 2008)
New Revision: 32415

Modified:
   public/yanel/trunk/src/realms/yanel-website/content/85d5aaeb-3f3a-4456-9119-9df00d960967
   public/yanel/trunk/src/realms/yanel-website/content/documentation.xhtml
Log:
resource type registration explained

Modified: public/yanel/trunk/src/realms/yanel-website/content/85d5aaeb-3f3a-4456-9119-9df00d960967
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/85d5aaeb-3f3a-4456-9119-9df00d960967	2008-02-25 11:02:22 UTC (rev 32414)
+++ public/yanel/trunk/src/realms/yanel-website/content/85d5aaeb-3f3a-4456-9119-9df00d960967	2008-02-25 11:07:41 UTC (rev 32415)
@@ -1,2 +1,2 @@
-<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><head>  <title>Using a resource type</title>  <link rel="neutron-introspection" type="application/neutron+xml" href="?yanel.resource.usecase=introspection"/></head><body>  <h1>Using a resource type</h1>  <p>Depending on the realm configuration one first has to figure out where the realm specific resource configurations are located. Take a look at the realm configuration file <i>realm.xml</i> and search for the XML element with the name &quot;rti&quot;. In the case of the &quot;from scratch&quot; realm  the value should be <i>config/rti-repository.xml</i> (whereas the path is resolved relative to the file <i>realm.xml</i>). <br/></p><p>Then take a look at this file and depending on the configured repository implementation one should be able to figure out where the resource configurations are located. In the case of the &quot;from scratch&quot; realm, the resource configurations are located within the directory !
 <i>res-configs</i>.<br/></p></body>
+<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><head>  <title>Using a resource type</title>  <link rel="neutron-introspection" type="application/neutron+xml" href="?yanel.resource.usecase=introspection"/></head><body>  <h1>Registering and using a resource type</h1><br/><h2>Registering a resource type<br/></h2>In order to use an existing resource type within a realm one first needs to register the resource type such that the Yanel core knows about it. A resource can either be registered by providing a directory path to where the definition of the resource type is located<br/><br/><i>&lt;yanel:resource-type src=&quot;/home/USER/yanel-resource-types/calendar/&quot;/&gt;<br/></i><br/>or by providing a package name if the resource type is available as jar file<br/><br/><i>&lt;yanel:resource-type package=&quot;org.wyona.yanel.impl.resources.redirect&quot;/&gt;</i><br/><br/>In the case of a binary webapp distribution one needs to add such an entry to the file <i>W!
 EB-INF/classes/resource-types.xml</i>.<br/><br/>In the case of the source distribution one should copy the file <i>conf/resource-types.xml</i> to <i>conf/local/local.resource-types.xml</i> and add such a resource-type entry to this local file (which can also be configured within src/build/(local.)build.properties with the local.config.dir parameter).<br/><br/><h2>Using a resource type</h2><p>Depending on the realm configuration one first has to figure out where the realm specific resource configurations are located. Take a look at the realm configuration file <i>realm.xml</i> and search for the XML element with the name &quot;rti&quot;. In the case of the &quot;from scratch&quot; realm  the value should be <i>config/rti-repository.xml</i> (whereas the path is resolved relative to the file <i>realm.xml</i>). <br/></p><p>Then take a look at this file and depending on the configured repository implementation one should be able to figure out where the resource configurations a!
 re located. In the case of the &quot;from scratch&quot; realm,!
  the res
ource configurations are located within the directory <i>res-configs</i>.<br/></p></body>
 </html>
\ No newline at end of file

Modified: public/yanel/trunk/src/realms/yanel-website/content/documentation.xhtml
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/documentation.xhtml	2008-02-25 11:02:22 UTC (rev 32414)
+++ public/yanel/trunk/src/realms/yanel-website/content/documentation.xhtml	2008-02-25 11:07:41 UTC (rev 32415)
@@ -21,8 +21,8 @@
 <li>Resource Types</li>
 <ul>
   <li><a href="resources/what-is-a-resource-type.html">What is a resource type</a></li>
+  <li><a href="resources/using-a-resource-type.html">Registering and using a resource type</a></li>
   <li><a href="create-new-resource.html">Create a new resource type from scratch</a></li>
-  <li><a href="resources/using-a-resource-type.html">Using a resource type</a></li>
   <li>Enhancing a resource type (CRUD: Create, Read, Update, Delete)
   <ul>
     <li><a href="resources/viewable.html">Making a resource type Readable/Viewable</a></li>
@@ -31,7 +31,7 @@
     <li><a href="resources/deletable.html">Making a resource type Deleteable</a></li>
   </ul>
   </li>
-  <li><a href="access-data-in-resourcetype.html" shape="rect">Access global and resource type specific data from a resource type</a></li>
+  <li><a shape="rect" href="access-data-in-resourcetype.html">Access global and resource type specific data from a resource type</a></li>
 </ul>
 <li>Best Practice
   <ul>
@@ -45,7 +45,6 @@
 <li><a href="security/login-screen-customization.html">Login Screen Customization</a></li>
 <li><a href="security/ssl.html">SSL</a></li>
 <li><a href="security/custom-identity-manager-custom-policy-manager.html">Custom IdentityManager, custom PolicyManager and custom WebAuthenticator<br/></a></li>
-
 </ul>
 </li>
 <li>Yarep as Data Abstraction Layer
@@ -66,7 +65,7 @@
 <ul>
     <li><a href="deployment/deployment_all_in_one.html">All In One</a></li><li><a href="deployment/deployment-static.html">Serving Content Statically</a></li><li><a href="deployment/deployment-enterprise.html">Enterprise</a> (including Load-Balancer and Tomcat Cluster)<br/></li>
     <li><a href="deployment-with-a-reverse-proxy.html">Deployment with a Reverse Proxy</a></li>
-    <li><a href="how-to-add-ssl-to-apache-httpd.html">Install Apache-Httpd with SSL support</a></li><li><a shape="rect" href="deployment/deployment_within-foaf-environment.html">Within FOAF environment</a></li>
+    <li><a href="how-to-add-ssl-to-apache-httpd.html">Install Apache-Httpd with SSL support</a></li><li><a href="deployment/deployment_within-foaf-environment.html" shape="rect">Within FOAF environment</a></li>
 </ul>
 </li>
     <li><a href="i18n.html">Yanel and i18n</a></li>



More information about the Yanel-commits mailing list