hi bob,

On 4/4/07, Bob Johnson <[EMAIL PROTECTED]> wrote:

Tobias,

Clearly you are the expert here. However, the example given in section 7.4.4
of (jsr-170-1.0.pdf) seems to contradict your interpretation. If I
understand it correctly it, the example refers to convenience mechanism in a
fully complaint repository. Specifically, an nt:file node is not required to
implement mix:versionable by default:

generally in the spec sentences like "A repository may do something..." are
used to accommodate legacy-based JCR implementations. there are existing
legacy repositories that only support versionable files. while the built-in
nt:file type doesn't mandate this the said phrase was added in order to
allow implementations to transparently add e.g. mix:versionable.


----------------- Section 7.4.4. of jsr-170-1.0.pdf -----------
For example if, as a matter of configuration, all  nt:file
nodes in a repository are to be versionable, then the repository
may automatically assign the mixin type mix:versionable to each
such node as it is created.
-------------------------------------------------------------------

I accept the fact that the functionality is not currently available. I am
hoping that a review of the motivation for excluding it may lead to an
implementation of this handy feature. Further, I would push for more

please note that we didn't consider this a 'feature' which a jsr-170 compliant
repository must support, it's rather a backdoor for legacy systems.

however, if you think having this sort of functionality in jackrabbit would
be useful please feel free to file a feature request in jira.

btw: the use case mentioned in the first post (automatically adding
mix:versionable to nt:file nodes on creation) can be elegantly covered by
creating a new type which extends from both nt:file and mix:versionable,
e.g.

[foo:file] > nt:file mix:versionable

cheers
stefan

transparency of the JCR type configuration in general.

Regards,

Bob




Tobias Bocanegra wrote:
>
> hi,
> in jackrabbit you can't do that. you need to add the mixin when you
> add the node yourself.
>
>> The spec says that it should be configurable to modify and
>> change mixin type at creation.
> [...]
>> A repository may automatically assign a mixin type to a node upon
>> creation.
>
> i only says: "may automatically...". the spec contains this clause to
> for such repositories that lack the total nodetype flexibility and
> need to assign a mixin in order to be compliant.
>
> regards, toby
> --
> -----------------------------------------< [EMAIL PROTECTED] >---
> Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
> T +41 61 226 98 98, F +41 61 226 98 97
> -----------------------------------------------< http://www.day.com >---
>
>

--
View this message in context: 
http://www.nabble.com/Configure-mixin-type-for-nt%3Afile-at-creation-of-repository-tf3508825.html#a9846323
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Reply via email to