Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link added to how create a custom resource and description added on h…
…ow to share a resource
- Loading branch information
1 parent
bc0ca3c
commit 329e85e
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
12 changes: 10 additions & 2 deletions
12
...alms/yanel-website/data-repo/data/en/documentation/resources/what-is-a-resource-type.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>What is a Resource Type</title> <link rel="neutron-introspection" type="application/neutron+xml" href="?yanel.resource.usecase=introspection"/></head><body> <h1>What is a Resource Type</h1> <p>One could describe a resource as the atom of Yanel. Resources are | ||
responsible for processing requests and generating responses. Examples are</p><ul><li>Node/File resource which helps to retrieve static content, for example images or PDF documents.<br/></li><li>XML resource which helps to generate XHTML or generic XML pages by applying various XSLTs to some original XML</li><li>Calendar resource which helps to read/write calendars based on the ICS format (for example with Sunbird as a client)</li></ul>The Yanel distribution (source and binary) contains many more examples, which can be reused or customized.<br/><br/>For complete customization, one can also create a resource from scratch very easily, whereas a | ||
responsible for processing requests and generating responses. Examples are</p><ul><li>Node/File resource which helps to retrieve static content, for example images or PDF documents.<br/></li><li>XML resource which helps to generate XHTML or generic XML pages by applying various XSLTs to some original XML</li><li>Calendar resource which helps to read/write calendars based on the ICS format (for example with Sunbird as a client)</li></ul> | ||
|
||
<p>The Yanel distribution (source and binary) contains many more examples, which can be reused or customized.<br/><br/>For complete customization, one can also <a href="../create-new-resource.html">create a resource from scratch</a> very easily, whereas a | ||
resource from scratch doesn't do much in the first place. In order to actually get life into a from scratch resource one can implement various <a class="external" href="http://yanel.wyona.org/javadoc/org/wyona/yanel/core/api/attributes/package-summary.html">interfaces</a><img class="outlink" src="http://documentation.yanel.wyona.org/images/out.png" alt=""/>. In most cases one wants to implement the four basic functions called <a href="http://en.wikipedia.org/wiki/Create,_read,_update_and_delete">CRUD</a> (Create, Read, Update and Delete). | ||
</p> | ||
<p> | ||
A resource can also be used by another resource. | ||
For example the generic "user registration" resource can be extended by a custom user registration resource. | ||
In order to do so one makes the generic resource available by adding a pom file to this resource (e.g. <code>YANEL_HOME/src/resources/registration/src/build/pom.xml</code>) and by adding its dependency to the custom resource which is extending the generic resource (e.g. <code>MY_REALM/resources/custom-registration/src/build/dependencies.xml</code>). Please make sure to re-build Yanel in order to update the local maven repository based on the added pom file. | ||
</p> | ||
</body> | ||
</html> | ||
</html> |