AnsweredAssumed Answered

What is the best way to list the content of a folder ?

Question asked by sam69 on Apr 3, 2006
Latest reply on Sep 11, 2009 by shamabbas
Hello !
First of all, I am a newbie in the Alfresco WebServices, but I have already read the WebService Samples.
I can't really find an example to do this simple task:

I want to get all the items (documents and folder) of a specific folder.
I tried that :

RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();      
    Reference reference = new Reference(new Store(StoreEnum.workspace, "SpacesStore")
        , null, "/app:company_home/*[@cm:name=\"" + Data Dictionary + "\"]");
    Predicate predicate = new Predicate(new Reference[]{reference}, null, null);
    Node[] nodes = null;
      nodes = repositoryService.get(predicate);

      for (Node n : nodes) {

And the result is only :
But there are several elements in the folder Data Dictionary :-(

I suspect my Xpath query…
And I think also that there is a better and faster way to do what I want.

Anyone can help me ?

Thanks in advance !