Listing ALL assets

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2011 10:52 AM
Hi, I would like to list all assets under specified path, how can I do that? I tried listAssets from assetService
Is there any listAllStuffInSandbox() method? Can it work recursively over subdirs? Or do I have to write my own?
Thanks in advance
List<AssetInfo> submitted = assetService.listAssets(wpInfo.getStoreId(), ROOT_PATH, false);
but this list has only submitted stuff. So I tried to get list of new (or modified stuff) viaList<AssetInfo> changed = sandboxService.listChanged(wpInfo.getStoreId(), ROOT_PATH, false);
Is there any listAllStuffInSandbox() method? Can it work recursively over subdirs? Or do I have to write my own?
Thanks in advance
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2011 07:46 AM
I'm diving inside AVMBrowseBean to figure out how listings work. Both getFolders and getFiles refers to method, in which is something like
but when I use this code, it returns just submitted stuff again. I can't see any other piece of code, which turns this off. How can I get the rest of content (unsubmitted)?
Map<String, AVMNodeDescriptor> nodes = avmService.getDirectoryListing(-1, path);
but when I use this code, it returns just submitted stuff again. I can't see any other piece of code, which turns this off. How can I get the rest of content (unsubmitted)?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2011 08:32 AM
meantime I tried it with lucene search (I have 3.4.d-comm) and again - just submitted stuff:
sp.setQuery("TYPE:\"{http://www.alfresco.org/model/content/1.0}content\"");sp.addStore(new StoreRef(StoreRef.PROTOCOL_AVM, stagingStore));. . . results = searchService.query(sp);
