You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2003/11/28 16:15:57 UTC

Handling Resources: Attached to document

Hi Lenya developers,

here's a follow-up to the first approach:

Ressources are stored together with the documents
they belong to. In the repository layer, there's
no distinction of documents and resources.

+-----------------------------------------------+
| Publication Layer                             |
+-----------------------------------------------+
| Repository Layer: Documents, Resources        |
+-----------------------------------------------+

Here we would introduce Resource objects as abstract
handles for real resources. A call to the API would look
like

Resource[] resources = publication.getResources(document);

Accessing the real content of a resource would depend
on the used repository API.

The advantage of this approach would be that the
complete access to the repository could be handled
within the publication object. Changing the repository
wouldn't be a big deal.

-- Andreas


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