jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Difference between supertype and mixintype
Date Thu, 02 Oct 2008 10:13:23 GMT
On Thu, Oct 2, 2008 at 7:15 AM, Sridhar Raman <sridhar.raman@gmail.com> wrote:
> Isn't this through the API?  Is there a way of adding mixin types in the
> node-types configuration file?

Think of mixin's as Java interfaces and node types as Java classes.
This measn in a node type definition you can inherit from multiple
mixins as well as from another plain node type (as in your example:
[tx:AuthorType] > nt:base,mix:versionable). In other words: a
supertype can be a normal node type or a mixin type.

Now when looking at real nodes, they must have one primary node type
(which can't be a mixin node type AFAIK) and which cannot be changed
after the node is created. In addition, a node can then have as many
mixins as you want, and they can be set through the API with
addMixin() and removeMixin().

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message