chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <muel...@gotux.de>
Subject Re: Navigating through a folder.
Date Fri, 06 Jan 2012 15:12:54 GMT

 Hi,

 You are probably looking for getDescendants(). It returns a tree of 
 folder children.


 - Florian


 Am Freitag, den 06.01.2012, 15:17 +0100 schrieb learning coding 
 <learning.coding25@gmail.com>:
> Hi ,
>
> i have a problem in navigating *through folders tree*.
> As i am not  very good progremmer, i am finding these difficulty . 
> Plz help
> me to understand some parts.
>
>
> ItemIterable<CmisObject> children = root.getChildren();
> *
>
> for* (CmisObject o : children) {
>
> System.*out*.println("Name" + o.getName() + "Modified By"+
> o.getLastModifiedBy());
>
> }// With this piece of code i can display the content of the root 
> folder.
>
> Root Folder.
>
>    1. *Sales Folder*
>    2. *Human resource Folder*
>    3. *Marketing Folder*
>
> but I want to display the content of the children of root folder.
>
> For example :
>
> Root folder.
>
>    1. Sales folder
>       1. Invoice folder
>          1. apple.doc
>          2. xyz folder.
>       2. receipts folder.
>          1. abc.doc
>          2. sdf.txt
>          3. jkl folder
>             1. zsx.txt
>          3. final.doc
>    2. Human resource Folder
>       1. .
>       2. ::::::
>       3. :::
>    3. Marketing Folder
>
> *I couldn't find the getChildren for **o "for* (CmisObject o : 
> children) *"*
>
> Please help me to understand this part.
>
> Thank you..
>
>
>
> Regards


Mime
View raw message