Problem accessing to folder children's

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2011 01:25 PM
when I run this code:
I need to access to all the links of the site "MySite" and I can't do that!
It's any reason for my code don't work? is any other way to get all the links from the site?
thanks,
Regards
CmisObject obj = session.getObjectByPath("Company Home/Sites/MySite");Folder f= (Folder) obj;ItemIterable<CmisObject> l = f.getChildren();for (CmisObject o : l){ System.out.println(o.getName() + "is from type " + o.getType());}
I cant see all the folders or files that are into the folder that contains my site!I need to access to all the links of the site "MySite" and I can't do that!
It's any reason for my code don't work? is any other way to get all the links from the site?
thanks,
Regards
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2011 11:57 AM
If you are looking for all of the link objects in a given site, they live in a folder called "links". From a CMIS perspective, all link objects are instances of "D:lnk:link". The properties of the link you are probably interested in are:
Jeff
- lnk:title
- lnk:description
- lnk:url
Jeff
