8 messages in org.apache.jackrabbit.usersRe: DM Rule #6: Files are Files are F...
FromSent OnAttachments
David NueschelerJul 7, 2007 4:29 am 
Tako SchotanusJul 10, 2007 4:37 am 
fmandelbaumOct 29, 2007 1:06 pm 
Julian ReschkeOct 30, 2007 12:37 am 
David NueschelerOct 30, 2007 3:13 am 
Julian ReschkeOct 30, 2007 4:10 am 
Felix MeschbergerOct 30, 2007 4:11 am 
Fabián MandelbaumOct 30, 2007 4:30 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: DM Rule #6: Files are Files are Files.Actions...
From:Fabián Mandelbaum (fman@gmail.com)
Date:Oct 30, 2007 4:30:52 am
List:org.apache.jackrabbit.users

Correcting myself (hopefully, my memory is bad these days...), nt:unstructured is the one that can have arbitrary properties.

Why not then, making them all nt:unstructured, with one property to mark the "type" as file or folder as needed?

Tako, I think the reason is that nt:file is not "customizable", while nt:resource is. That is, nt:file has a fixed set of properties, you cannot set your own.

David,

how does one "extend" a node? By just adding properties to it? Is that the definition of "extends" that applies here? Or you extend nt:resource programatically somehow?

Tako Schotanus wrote:

Agreed on the nt:file/nt:resource bit. I'm not sure what your reasons are to add extra properties to the resource instead of the file though. Care to elaborate a bit more? :-)

On 7/7/07, David Nuescheler <davi@gmail.com> wrote:

Explanation: ---

If a content model exposes something that even remotely "smells" like a file or a folder I try to use (or extend from) nt:file, nt:folder and nt:resource.