jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: SPI: ItemInfo.getParentId()
Date Fri, 03 Nov 2006 16:45:41 GMT
Julian Reschke schrieb:
> ...
> Looking at JCR2SPIs NodeImpl and HierarchyManagerImpl it seems that the 
> only way to access a Node by absolute path is to recursively access all 
> parent nodes, visiting their children.
> This seems to be not only inefficient, but may also cause a problem when 
>  the given user doesn't have read access to all parent nodes...
> Shouldn't we have something like:
>   NodeId RepositoryService.getNodeId(QPath path);


in the meantime I realized that the IdFactory can do that for me, 
assuming it allows

   .createNodeId((NodeId)null, path);

...where path would be absolute -- which the one in spi2dav doesn't 
(why?). (As a matter of fact a createNodeId(Path) signature would be 

So given the fact that the SPI API at least in theory has the capability 
to do the lookup without having to access the parent collections, 
shouldn't JCR2SPI use that when circumstances require that?

Best regards, Julian

View raw message