You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/09/21 19:37:09 UTC
svn commit: r578209 -
/lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/usecase/part1.xml
Author: andreas
Date: Fri Sep 21 10:37:08 2007
New Revision: 578209
URL: http://svn.apache.org/viewvc?rev=578209&view=rev
Log:
Continued usecase tutorial
Modified:
lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/usecase/part1.xml
Modified: lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/usecase/part1.xml
URL: http://svn.apache.org/viewvc/lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/usecase/part1.xml?rev=578209&r1=578208&r2=578209&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/usecase/part1.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/usecase/part1.xml Fri Sep 21 10:37:08 2007
@@ -42,9 +42,10 @@
<li>Add a usecase handler class to provide the functionality to connect people,</li>
<li>
Add a <a href="http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html">JX template</a>
- which acts as the view for the usecase, and
+ which acts as the view for the usecase,
</li>
- <li>Add a menu item to trigger the usecase.</li>
+ <li>Add a menu item to trigger the usecase, and</li>
+ <li>Specify who is allowed to invoke the usecase.</li>
</ul>
</section>
@@ -144,6 +145,18 @@
person document, e.g.:
</p>
<source xml:space="preserve"><![CDATA[<foaf:knows rdf:resource="lenya-document:5e13b150-6855-11dc-8b37-f5f12a4217db"/>]]></source>
+ </section>
+
+ <section>
+ <title>Implement the Person Document Wrapper</title>
+ <p>
+ In Lenya projects, the wrapper pattern (also known as adapter pattern) has proven
+ useful to simplify the handling of XML documents. A wrapper object provides
+ access to a certain object, in our case a Lenya document, to client objects. It can
+ be used to add a layer of abstraction. In our case we use the wrapper to abstract
+ from the XML content and provide the functionality of adding "knows" relations
+ between person documents.
+ </p>
</section>
<section>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org