You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Julian Reschke <ju...@gmx.de> on 2006/08/31 20:55:08 UTC
SPI
Hi,
first of all thanks for adding the SPI stuff, and apologies for not
having done anything with it earlier (as I was among those who asked for
it being in SVN even if work in progress).
I have now started to look at the SPI interfaces with an eye how I could
implement them for the backend I'm currently looking at. Many things are
obvious, but some or not... For instance, ItemId and friends confuse me...:
/**
* <code>ItemId</code>...
*/
public interface ItemId {
public boolean denotesNode();
public String getUUID();
public Path getRelativePath();
}
Does this mean that any item needs to have both a unique ID, and a
relative path (relative to what...?).
Best regards, Julian
Re: SPI
Posted by Marcel Reutegger <ma...@gmx.net>.
Jukka Zitting wrote:
> On 10/3/06, Marcel Reutegger <ma...@gmx.net> wrote:
>> what is the correspondence identifier of the root node if it is not
>> referenceable?
>
> "/"?
you are right, of course. must be lack of sleep :-/ I thought the spec
said the path part must be relative, but that's not the case.
regards
marcel
Re: SPI
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 10/3/06, Marcel Reutegger <ma...@gmx.net> wrote:
> what is the correspondence identifier of the root node if it is not
> referenceable?
"/"?
BR,
Jukka Zitting
--
Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development
Re: SPI
Posted by Marcel Reutegger <ma...@gmx.net>.
Tobias Bocanegra wrote:
>> > Great, thanks. So it's basically a correspondence identifier, right?
>>
>> yes, exactly.
> why not rename it to CorrespondenceId then? since ItemId is also used
> inside jackrabbit core and might cause confusion.
sounds like a good idea.
here's another related question that I'm not 100% sure of what the
answer is:
what is the correspondence identifier of the root node if it is not
referenceable?
regards
marcel
Re: SPI
Posted by Tobias Bocanegra <to...@day.com>.
> > Great, thanks. So it's basically a correspondence identifier, right?
>
> yes, exactly.
why not rename it to CorrespondenceId then? since ItemId is also used
inside jackrabbit core and might cause confusion.
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 >---
Re: SPI
Posted by Marcel Reutegger <ma...@gmx.net>.
Julian Reschke wrote:
> Great, thanks. So it's basically a correspondence identifier, right?
yes, exactly.
regards
marcel
Re: SPI
Posted by Julian Reschke <ju...@gmx.de>.
Marcel Reutegger schrieb:
> Hi Julian,
>
> Julian Reschke wrote:
>> Does this mean that any item needs to have both a unique ID, and a
>> relative path (relative to what...?).
>
> I've added JavaDoc to the ItemId interface, which describes the
> semantics of the UUID and the relative path part of the ItemId.
>
> Feel free to ask if anything is unclear.
Great, thanks. So it's basically a correspondence identifier, right?
Best regards,
Julian
Re: SPI
Posted by Marcel Reutegger <ma...@gmx.net>.
Hi Julian,
Julian Reschke wrote:
> Does this mean that any item needs to have both a unique ID, and a
> relative path (relative to what...?).
I've added JavaDoc to the ItemId interface, which describes the
semantics of the UUID and the relative path part of the ItemId.
Feel free to ask if anything is unclear.
regards
marcel