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 2005/08/05 14:35:31 UTC

[JCR] Meta data stored as JCR properties

Hi Lenya devs,

just a heads-up to keep you up to date:


I pushed the meta data handling down from the publication API layer
(Document) to the repository layer (o.a.l.cms.repository.Node). This
allows custom meta data managers for repository implementations.

A small change to the MetaDataManager was required, which returns
now MetaData objects (this allows custom implementations of the
meta data types).

The document now delegates meta data handling to the corresponding
repository node.


The JCRSourceNode uses a JCRMetaDataManager, which stores meta data
as JCR properties with the same QName as the XML-based meta data
storage implementation. The properties are defined by a mixin node
type (lenya:contentNode), which is assigned to all fileNodes by the
LenyaJCRSourceFactory. The namespaces and node type are registered by
the LenyaRepository component.

We could try to move to an XML-based node type declaration mechanism
which was used by Josias Thoeny and Felix Roethenbacher (I'm not yet
familiar with it).

Feel free to add your comments.

-- Andreas


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


Re: [JCR] Meta data stored as JCR properties

Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann wrote:

[...]

> We could try to move to an XML-based node type declaration mechanism
> which was used by Josias Thoeny and Felix Roethenbacher (I'm not yet
> familiar with it).

I just noticed that Jackrabbit creates the custom node type declaration
XML file when the node types are registered:

samples/blocks/jcr/repotest/repository/nodetypes/custom_nodetypes.xml

I suggest that we leave it like that for now and remove the
Java-based registration when things have stabilized a little.

-- Andreas

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