Return to Jive Software

Skip navigation
7,145 Views 3 Replies Last post: Sep 3, 2008 9:46 AM by todd.west RSS
petschni Novice 28 posts since
Jun 19, 2008
Currently Being Moderated

Sep 1, 2008 9:21 AM

Get all documents of a community

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

todd.west Jive Employee 15,926 posts since
Jul 14, 2008
Currently Being Moderated
Sep 2, 2008 11:13 AM in response to: petschni
Re: Get all documents of a community

Hi Peter,

 

Which lines are throwing syntax errors and what exactly are these errors saying? Thanks.

 

-Todd

todd.west Jive Employee 15,926 posts since
Jul 14, 2008
Currently Being Moderated
Sep 3, 2008 9:46 AM in response to: petschni
Re: Get all documents of a community

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

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.