You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Rolf Kulemann <ro...@apache.org> on 2004/04/08 18:26:28 UTC
RepsitoryPropertyHelper.getProperty(depth)?
Hello,
using WebDAV it is possible to make a methodPropfind(dept) which is
useful i.e. with depth=1 to show the content of a collection.
Would it make sense to extend the PropertyHelper with an appropriate
function?
I dunno all "other" repositories having such a feature, but I know
jcr-170 has similiar methods like getNodes(depth), which is returning
nodes and sub nodes without properties, but getProperty(depth) can also
be implemented on top of getNodes(depth).
I'm quite new to WebDAV and jcr so I may have mixed things.
WDYT?
--
Regards,
Rolf Kulemann
Re: RepsitoryPropertyHelper.getProperty(depth)?
Posted by Rolf Kulemann <ro...@apache.org>.
On Thu, 2004-04-08 at 19:57, Guido Casper wrote:
> Rolf Kulemann wrote:
[...]
> >
> > BTW: How should it be possible to receive lets say "all child nodes" of
> > a collection/node using the repository interface? Or is it a concern of
> > a RepositorySource?
>
> No, some mechanism to retrieve collection members (getChildren() or
> getMembers()) would be a welcome addition to the Repository interface IMO.
Ok. I wonder what those methods should return and how the signature
looks like.
Do we need sth. like a Node class/object?
interface Node{
// We could move this from the repository interface
String getContentAsString();
Doucment getContentAsDocument();
However getContentAsHowever();
String/Property getProperty(String name);
List getChildren(); // Returns a list of Nodes...uups this should be
on the repository interface
}
I do not know if this is a good idea, but sth. should be returned.
What should be returned by repository.getChildren(....) ?
What about the signature?
Guido and others, I'm really curious about what u think of the
getChildren() method.
--
Regards,
Rolf Kulemann
Re: RepsitoryPropertyHelper.getProperty(depth)?
Posted by Guido Casper <gc...@s-und-n.de>.
Rolf Kulemann wrote:
> On Thu, 2004-04-08 at 18:26, Rolf Kulemann wrote:
>
>>Hello,
>>
>>using WebDAV it is possible to make a methodPropfind(dept) which is
>>useful i.e. with depth=1 to show the content of a collection.
>>
>>Would it make sense to extend the PropertyHelper with an appropriate
>>function?
>>
>>I dunno all "other" repositories having such a feature, but I know
>>jcr-170 has similiar methods like getNodes(depth), which is returning
>>nodes and sub nodes without properties, but getProperty(depth) can also
>>be implemented on top of getNodes(depth).
>>
>
>
> BTW: How should it be possible to receive lets say "all child nodes" of
> a collection/node using the repository interface? Or is it a concern of
> a RepositorySource?
No, some mechanism to retrieve collection members (getChildren() or
getMembers()) would be a welcome addition to the Repository interface IMO.
Guido
--
Guido Casper
-------------------------------------------------
S&N AG, Competence Center Open Source
Tel.: +49-5251-1581-87
Klingenderstr. 5 mailto:gcasper@s-und-n.de
D-33100 Paderborn http://www.s-und-n.de
-------------------------------------------------
Re: RepsitoryPropertyHelper.getProperty(depth)?
Posted by Rolf Kulemann <ro...@apache.org>.
On Thu, 2004-04-08 at 18:26, Rolf Kulemann wrote:
> Hello,
>
> using WebDAV it is possible to make a methodPropfind(dept) which is
> useful i.e. with depth=1 to show the content of a collection.
>
> Would it make sense to extend the PropertyHelper with an appropriate
> function?
>
> I dunno all "other" repositories having such a feature, but I know
> jcr-170 has similiar methods like getNodes(depth), which is returning
> nodes and sub nodes without properties, but getProperty(depth) can also
> be implemented on top of getNodes(depth).
>
BTW: How should it be possible to receive lets say "all child nodes" of
a collection/node using the repository interface? Or is it a concern of
a RepositorySource?
--
Regards,
Rolf Kulemann