Hi,
in the google map plugin I found the following lines to receives all documents for a certain communtiy:
( http://www.jivesoftware.com/community/docs/DOC-1256 )
ResultFilter resultFilter = ResultFilter.createDefaultContentFilter();
Iterable<JiveContentObject> contentObjects = community.getCombinedContent(resultFilter, ContentRetrieval.ALL_TYPES);
rootCommunity.getCombinedContent(resultFilter, ContentRetrieval.ContentType.THREAD);
But that code seems not to work in version 2 any more. Eclipse is claiming syntax errors. Is there a new simple way to receive all the documents?
regards,
peter
Hi Peter,
Which lines are throwing syntax errors and what exactly are these errors saying? Thanks.
-Todd
It is the line (198):
Iterable<JiveContentObject> contentObjects = community.getCombinedContent(resultFilter, ContentRetrieval.ALL_TYPES);
And Eclipse is marking "ContentRetrieval.ALL_TYPES" red, but has no suggestion how to resolve the problem. It also complains about the "rootcommunity" and notices that it does not recognizes it.
If I have Eclipse searching for possible options for the "community" in line 198 it does not offer me any option like "getCombinedContent".
Basically I am just looking for a way to receive all content for a community - that was why I was looking at that script...
Thanks in advance!
Hi Peter,
What if you do something like this:
CommunityManager communityManager = getJiveContext().getCommunityManager();
Community community = communityManager.getCommunity(1);
ResultFilter resultFilter = ResultFilter.createDefaultContentFilter();
Iterable<JiveContentObject> content = communityManager.getCombinedContent(community, resultFilter, community.getAvailableContentTypes());
I haven't tested this at all so I can't say for sure that it will work, but please let me know if it doesn't. Thanks!
-Todd
Jive combines the most powerful features of collaboration software, community software,
social networking software & social media monitoring into the leading SBS solution.
© Copyright 2000–2010 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205
Sales: 877-495-3700 | General: 503-295-3700
Privacy Policy | Sitemap | Jobs | Contact Us