Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by AndreasHartmann:
http://wiki.apache.org/lenya/DocumentCreationAPI

------------------------------------------------------------------------------
  
  attachment:documents-sequence.jpg
  
+ == Some comments by AndreasHartmann ==
+ 
+  * IMO there's still to much knowledge in the {{{Create}}} usecase. I'd 
rather delegate the whole creation process to the DocumentManager:
+ 
+    1. The {{{Create}}} usecase handler
+      1. builds the {{{Document}}} object using the {{{DocumentIdentityMap}}}
+      1. builds the {{{DocumentType}}} object using the 
{{{DocumentTypeBuilder}}}
+      1. calls {{{DocumentManager.add(document, documentType)}}}
+    1. The {{{DocumentManager}}} delegates the creation process to the 
{{{Creator}}} of the document type.
+    1. (optional) The {{{Create}}} usecase writes another content XML to the 
document (if a new language version is created).
+    1. (optional) The {{{Create}}} usecase initializes the 
publication-specific meta data.
  
  
- -
- 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to