You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2005/05/13 12:27:00 UTC

[Lenya Wiki] Update of "DocumentCreationAPI" by WolfgangKaltz

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 WolfgangKaltz:
http://wiki.apache.org/lenya/DocumentCreationAPI

New page:
This page presents the current state of the document creation API in trunk (Lenya 1.4)

Class diagram: 

attachment:documents.jpg

== Changes planned ==

 * move actual document creation from usecases to {{{DocumentManager.add()}}}
 * consequently, {{{DocumentManager.add()}}} would no longer access the {{{SiteManager}}}, this would be the responsibility of the usecase. (This is necessary because not all publications need have a {{{SiteManager}}}  -> see blog)
 * {{{DocumentManager.add()}}} is extended to take all necessary parameters for document creation, that is:
   * (TODO: complete)
   * Lenya internal meta-data, such as "resource type". Other meta-data is optional and thus not passed to {{{DocumentManager.add()}}}, it is the responsibility of the individual usecase.
 * Open issue: what about DocumentIdentityMap ? Currently it creates a Document instance when get() is called on a (new) id. Do we want to keep that mechanism ?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org