Configure mixin type for nt:file at creation of repository

This is a discussion on Configure mixin type for nt:file at creation of repository within the Apache forums in Application Servers & Tools category; Hi, I want to configure mixin type for nt:file node during initialization of repository. The spec says that it should be configurable to modify and change mixin type at creation. " SPEC - jcr170-1.0 : 7.4.4 Automatic Addition and Removal of Mixins A repository may automatically assign a mixin type to a node upon creation. 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 am looking for some example where we ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-02-2007, 07:07 PM
Sudhan
Guest
 
Default Configure mixin type for nt:file at creation of repository


Hi,

I want to configure mixin type for nt:file node during initialization of
repository. The spec says that it should be configurable to modify and
change mixin type at creation.
"
SPEC - jcr170-1.0 :

7.4.4 Automatic Addition and Removal of Mixins

A repository may automatically assign a mixin type to a node upon
creation. 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 am looking for some example where we can modify or set mixin type at
creation of repository.

thanks for you time and help.


Sudhan



--
View this message in context: http://www.nabble.com/Configure-mixi....html#a9800788
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Reply With Quote
  #2  
Old 04-04-2007, 03:04 PM
Tobias Bocanegra
Guest
 
Default Re: Configure mixin type for nt:file at creation of repository

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
--
-----------------------------------------< tobias.bocanegra@day.com >---
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 >---

Reply With Quote
  #3  
Old 04-04-2007, 05:48 PM
Bob Johnson
Guest
 
Default Re: Configure mixin type for nt:file at creation of repository


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:

----------------- 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
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
> --
> -----------------------------------------< tobias.bocanegra@day.com >---
> 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-mixi....html#a9846323
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Reply With Quote
  #4  
Old 04-05-2007, 04:20 AM
Stefan Guggisberg
Guest
 
Default Re: Configure mixin type for nt:file at creation of repository

hi bob,

On 4/4/07, Bob Johnson <johnson@bpinnovators.com> 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
> > --
> > -----------------------------------------< tobias.bocanegra@day.com >---
> > 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-mixi....html#a9846323
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:53 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.