Josias Thoeny wrote:
Hi,
In Lenya trunk, the SiteManager is an abstraction of the SiteTree, i.e.
Lenya should not directly use the SiteTree, but only the
SiteManager/SiteStructure.
Is that correct?
But then, how can sitetree attributes be handled?
Should the SiteManager (or the SiteStructure?) have methods to get/set
attributes like e.g. visibleInNav?
How could this be solved in a generic way?
Maybe:
String getAttribute(Document document, String name);
void setAttribute(Document document, String name, String value);
Map getAttributes(Document document);
But it doesn't really make sense because the attributes are associated
with nodes, not with documents.
Should there be an abstraction of a node (=set of all language versions
of a document) in Lenya?
There is such a class (o.a.lenya.cms.site.Node) which could be
used for this purpose.
Or should there be no sitetree attributes at all, only meta data?
IMO yes, there should be only meta data.
The problem about meta data is that they can't be resolved during
site structure traversal, e.g., in an XSLT that is applied to the
sitetree.
We could add a transformation to the sitetree which adds the meta data
as attributes (or a particular subset of the meta data). With JCR,
the performance issue might be secondary.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]