1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.plugin.feed; |
21 |
|
|
22 |
|
import java.io.IOException; |
23 |
|
import java.util.Collection; |
24 |
|
import java.util.Collections; |
25 |
|
import java.util.HashMap; |
26 |
|
import java.util.List; |
27 |
|
import java.util.Map; |
28 |
|
|
29 |
|
import com.sun.syndication.feed.synd.SyndEntry; |
30 |
|
import com.sun.syndication.feed.synd.SyndFeed; |
31 |
|
import com.sun.syndication.feed.synd.SyndImage; |
32 |
|
import com.xpn.xwiki.XWiki; |
33 |
|
import com.xpn.xwiki.XWikiContext; |
34 |
|
import com.xpn.xwiki.XWikiException; |
35 |
|
import com.xpn.xwiki.plugin.PluginApi; |
36 |
|
import com.xpn.xwiki.web.XWikiRequest; |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 318 (318) |
Complexity: 104 |
Complexity Density: 0.52 |
|
38 |
|
public class FeedPluginApi extends PluginApi<FeedPlugin> |
39 |
|
{ |
40 |
|
private static final String BLOG_POST_CLASS_NAME = "Blog.BlogPostClass"; |
41 |
|
|
42 |
|
private static final String BLOG_POST_TEMPLATE_NAME = "Blog.BlogPostTemplate"; |
43 |
|
|
44 |
|
private static final Map<String, Object> BLOG_FIELDS_MAPPING; |
45 |
|
|
46 |
|
public static final String FEED_PLUGIN_EXCEPTION = "FeedPluginException"; |
47 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
48 |
0 |
static {... |
49 |
0 |
BLOG_FIELDS_MAPPING = new HashMap<String, Object>(); |
50 |
0 |
BLOG_FIELDS_MAPPING.put(SyndEntryDocumentSource.FIELD_TITLE, "Blog.BlogPostClass_title"); |
51 |
0 |
BLOG_FIELDS_MAPPING.put(SyndEntryDocumentSource.FIELD_DESCRIPTION, "Blog.BlogPostClass_content"); |
52 |
0 |
BLOG_FIELDS_MAPPING.put(SyndEntryDocumentSource.FIELD_CATEGORIES, "Blog.BlogPostClass_category"); |
53 |
0 |
BLOG_FIELDS_MAPPING.put(SyndEntryDocumentSource.FIELD_PUBLISHED_DATE, "Blog.BlogPostClass_publishDate"); |
54 |
0 |
BLOG_FIELDS_MAPPING.put(SyndEntryDocumentSource.CONTENT_LENGTH, 400); |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0 |
public FeedPluginApi(FeedPlugin plugin, XWikiContext context)... |
58 |
|
{ |
59 |
0 |
super(plugin, context); |
60 |
|
} |
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
@return |
66 |
|
@deprecated@link |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0 |
@Deprecated... |
69 |
|
public FeedPlugin getPlugin() |
70 |
|
{ |
71 |
0 |
return super.getInternalPlugin(); |
72 |
|
} |
73 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0 |
public SyndFeed getFeeds(String sfeeds) throws IOException... |
75 |
|
{ |
76 |
0 |
return getProtectedPlugin().getFeeds(sfeeds, getXWikiContext()); |
77 |
|
} |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
0 |
public SyndFeed getFeeds(String sfeeds, boolean force) throws IOException... |
80 |
|
{ |
81 |
0 |
return getProtectedPlugin().getFeeds(sfeeds, force, getXWikiContext()); |
82 |
|
} |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0 |
public SyndFeed getFeeds(String sfeeds, boolean ignoreInvalidFeeds, boolean force) throws IOException... |
85 |
|
{ |
86 |
0 |
return getProtectedPlugin().getFeeds(sfeeds, ignoreInvalidFeeds, force, getXWikiContext()); |
87 |
|
} |
88 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
0 |
public SyndFeed getFeed(String sfeed) throws IOException... |
90 |
|
{ |
91 |
0 |
return getProtectedPlugin().getFeed(sfeed, false, getXWikiContext()); |
92 |
|
} |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0 |
public SyndFeed getFeed(String sfeed, boolean force) throws IOException... |
95 |
|
{ |
96 |
0 |
return getProtectedPlugin().getFeed(sfeed, force, getXWikiContext()); |
97 |
|
} |
98 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
0 |
public SyndFeed getFeed(String sfeed, boolean ignoreInvalidFeeds, boolean force) throws IOException... |
100 |
|
{ |
101 |
0 |
return getProtectedPlugin().getFeed(sfeed, ignoreInvalidFeeds, force, getXWikiContext()); |
102 |
|
} |
103 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
0 |
public int updateFeeds() throws XWikiException... |
105 |
|
{ |
106 |
0 |
return updateFeeds("XWiki.FeedList"); |
107 |
|
} |
108 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
109 |
0 |
public int updateFeeds(String feedDoc) throws XWikiException... |
110 |
|
{ |
111 |
0 |
return updateFeeds(feedDoc, true); |
112 |
|
} |
113 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
0 |
public int updateFeeds(String feedDoc, boolean fullContent) throws XWikiException... |
115 |
|
{ |
116 |
0 |
return updateFeeds(feedDoc, fullContent, true); |
117 |
|
} |
118 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
119 |
0 |
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry) throws XWikiException... |
120 |
|
{ |
121 |
0 |
if (hasProgrammingRights()) { |
122 |
0 |
return getProtectedPlugin().updateFeeds(feedDoc, fullContent, oneDocPerEntry, getXWikiContext()); |
123 |
|
} else { |
124 |
0 |
return -1; |
125 |
|
} |
126 |
|
} |
127 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
128 |
0 |
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force)... |
129 |
|
throws XWikiException |
130 |
|
{ |
131 |
0 |
if (hasProgrammingRights()) { |
132 |
0 |
return getProtectedPlugin().updateFeeds(feedDoc, fullContent, oneDocPerEntry, force, getXWikiContext()); |
133 |
|
} else { |
134 |
0 |
return -1; |
135 |
|
} |
136 |
|
} |
137 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
138 |
0 |
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force, String space)... |
139 |
|
throws XWikiException |
140 |
|
{ |
141 |
0 |
if (hasProgrammingRights()) { |
142 |
0 |
return getProtectedPlugin().updateFeeds(feedDoc, fullContent, oneDocPerEntry, force, space, |
143 |
|
getXWikiContext()); |
144 |
|
} else { |
145 |
0 |
return -1; |
146 |
|
} |
147 |
|
} |
148 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
149 |
0 |
public int updateFeedsInSpace(String spaceReference, boolean fullContent, boolean force) throws XWikiException... |
150 |
|
{ |
151 |
0 |
if (hasProgrammingRights()) { |
152 |
0 |
return getProtectedPlugin().updateFeedsInSpace(spaceReference, fullContent, true, force, getXWikiContext()); |
153 |
|
} else { |
154 |
0 |
return -1; |
155 |
|
} |
156 |
|
} |
157 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
158 |
0 |
public int updateFeed(String feedname, String feedurl)... |
159 |
|
{ |
160 |
0 |
if (hasProgrammingRights()) { |
161 |
0 |
return getProtectedPlugin().updateFeed(feedname, feedurl, false, true, getXWikiContext()); |
162 |
|
} else { |
163 |
0 |
return -1; |
164 |
|
} |
165 |
|
} |
166 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
167 |
0 |
public int updateFeed(String feedname, String feedurl, boolean fullContent)... |
168 |
|
{ |
169 |
0 |
if (hasProgrammingRights()) { |
170 |
0 |
return getProtectedPlugin().updateFeed(feedname, feedurl, fullContent, true, getXWikiContext()); |
171 |
|
} else { |
172 |
0 |
return -1; |
173 |
|
} |
174 |
|
} |
175 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
176 |
0 |
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry)... |
177 |
|
{ |
178 |
0 |
if (hasProgrammingRights()) { |
179 |
0 |
return getProtectedPlugin().updateFeed(feedname, feedurl, fullContent, oneDocPerEntry, getXWikiContext()); |
180 |
|
} else { |
181 |
0 |
return -1; |
182 |
|
} |
183 |
|
} |
184 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
185 |
0 |
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force)... |
186 |
|
{ |
187 |
0 |
if (hasProgrammingRights()) { |
188 |
0 |
return getProtectedPlugin().updateFeed(feedname, feedurl, fullContent, oneDocPerEntry, force, |
189 |
|
getXWikiContext()); |
190 |
|
} else { |
191 |
0 |
return -1; |
192 |
|
} |
193 |
|
} |
194 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
195 |
0 |
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force,... |
196 |
|
String space) |
197 |
|
{ |
198 |
0 |
if (hasProgrammingRights()) { |
199 |
0 |
return getProtectedPlugin().updateFeed(feedname, feedurl, fullContent, oneDocPerEntry, force, space, |
200 |
|
getXWikiContext()); |
201 |
|
} else { |
202 |
0 |
return -1; |
203 |
|
} |
204 |
|
} |
205 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
206 |
0 |
public boolean startUpdateFeedsInSpace(String space, int scheduleTimer) throws XWikiException... |
207 |
|
{ |
208 |
0 |
return getProtectedPlugin().startUpdateFeedsInSpace(space, false, scheduleTimer, this.context); |
209 |
|
} |
210 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
211 |
0 |
public boolean startUpdateFeedsInSpace(String space, boolean fullContent, int scheduleTimer) throws XWikiException... |
212 |
|
{ |
213 |
0 |
return getProtectedPlugin().startUpdateFeedsInSpace(space, fullContent, scheduleTimer, this.context); |
214 |
|
} |
215 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
216 |
0 |
public void stopUpdateFeedsInSpace(String space) throws XWikiException... |
217 |
|
{ |
218 |
0 |
getProtectedPlugin().stopUpdateFeedsInSpace(space, this.context); |
219 |
|
} |
220 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
221 |
0 |
public UpdateThread getUpdateThread(String space)... |
222 |
|
{ |
223 |
0 |
return getProtectedPlugin().getUpdateThread(space, this.context); |
224 |
|
} |
225 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
226 |
0 |
public Collection<String> getActiveUpdateThreads()... |
227 |
|
{ |
228 |
0 |
return getProtectedPlugin().getActiveUpdateThreads(); |
229 |
|
} |
230 |
|
|
231 |
|
|
232 |
|
@link |
233 |
|
|
234 |
|
@param@link |
235 |
|
@param |
236 |
|
@return |
237 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.33 |
|
238 |
0 |
public SyndEntrySourceApi getSyndEntrySource(String className, Map<String, Object> params)... |
239 |
|
{ |
240 |
0 |
getXWikiContext().remove(FEED_PLUGIN_EXCEPTION); |
241 |
0 |
try { |
242 |
0 |
SyndEntrySource source = getProtectedPlugin().getSyndEntrySource(className, params, getXWikiContext()); |
243 |
0 |
return new SyndEntrySourceApi(source, getXWikiContext()); |
244 |
|
} catch (XWikiException e) { |
245 |
0 |
getXWikiContext().put(FEED_PLUGIN_EXCEPTION, e); |
246 |
0 |
return null; |
247 |
|
} |
248 |
|
} |
249 |
|
|
250 |
|
|
251 |
|
@see |
252 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
253 |
0 |
public SyndEntrySourceApi getSyndEntrySource(String className)... |
254 |
|
{ |
255 |
0 |
return this.getSyndEntrySource(className, null); |
256 |
|
} |
257 |
|
|
258 |
|
|
259 |
|
|
260 |
|
|
261 |
|
@param |
262 |
|
@return@link@link |
263 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
264 |
0 |
public SyndEntrySourceApi getSyndEntryDocumentSource(Map<String, Object> params)... |
265 |
|
{ |
266 |
0 |
return this.getSyndEntrySource(SyndEntryDocumentSource.class.getName()); |
267 |
|
} |
268 |
|
|
269 |
|
|
270 |
|
@see |
271 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
272 |
0 |
public SyndEntrySourceApi getSyndEntryDocumentSource()... |
273 |
|
{ |
274 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
275 |
0 |
return getSyndEntryDocumentSource(params); |
276 |
|
} |
277 |
|
|
278 |
|
|
279 |
|
|
280 |
|
|
281 |
|
@return@link |
282 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
283 |
0 |
public SyndEntrySourceApi getSyndEntryArticleSource()... |
284 |
|
{ |
285 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
286 |
0 |
return getSyndEntryArticleSource(params); |
287 |
|
} |
288 |
|
|
289 |
|
|
290 |
|
|
291 |
|
|
292 |
|
|
293 |
|
@return@link |
294 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
295 |
0 |
public SyndEntrySourceApi getSyndEntryArticleSource(Map<String, Object> params)... |
296 |
|
{ |
297 |
0 |
Map<String, Object> defParams = new HashMap<String, Object>(); |
298 |
0 |
defParams.put(SyndEntryDocumentSource.FIELD_TITLE, "XWiki.ArticleClass_title"); |
299 |
0 |
defParams.put(SyndEntryDocumentSource.FIELD_DESCRIPTION, "XWiki.ArticleClass_content"); |
300 |
0 |
defParams.put(SyndEntryDocumentSource.FIELD_CATEGORIES, "XWiki.ArticleClass_category"); |
301 |
0 |
defParams.put(SyndEntryDocumentSource.CONTENT_LENGTH, 400); |
302 |
0 |
defParams.putAll(params); |
303 |
0 |
return this.getSyndEntrySource(SyndEntryDocumentSource.class.getName(), defParams); |
304 |
|
} |
305 |
|
|
306 |
|
|
307 |
|
|
308 |
|
|
309 |
|
@return |
310 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
311 |
0 |
public SyndEntry getFeedEntry()... |
312 |
|
{ |
313 |
0 |
return getProtectedPlugin().getFeedEntry(getXWikiContext()); |
314 |
|
} |
315 |
|
|
316 |
|
|
317 |
|
|
318 |
|
|
319 |
|
@return |
320 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
321 |
0 |
public SyndImage getFeedImage()... |
322 |
|
{ |
323 |
0 |
return getProtectedPlugin().getFeedImage(this.context); |
324 |
|
} |
325 |
|
|
326 |
|
|
327 |
|
|
328 |
|
|
329 |
|
@param |
330 |
|
@param |
331 |
|
@param |
332 |
|
@return |
333 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
334 |
0 |
public SyndImage getFeedImage(String url, String link, String title, String description)... |
335 |
|
{ |
336 |
0 |
SyndImage image = getFeedImage(); |
337 |
0 |
image.setUrl(url); |
338 |
0 |
image.setLink(link); |
339 |
0 |
image.setTitle(title); |
340 |
0 |
image.setDescription(description); |
341 |
0 |
return image; |
342 |
|
} |
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
|
347 |
|
|
348 |
|
@return |
349 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 5 |
Complexity Density: 0.5 |
|
350 |
0 |
public SyndImage getDefaultFeedImage()... |
351 |
|
{ |
352 |
|
|
353 |
|
|
354 |
|
|
355 |
|
|
356 |
0 |
XWiki xwiki = getXWikiContext().getWiki(); |
357 |
0 |
String fileName = xwiki.getSkinPreference("logo", "logo.png", getXWikiContext()); |
358 |
0 |
String url = xwiki.getSkinFile(fileName, getXWikiContext()); |
359 |
0 |
String port = ""; |
360 |
0 |
XWikiRequest request = getXWikiContext().getRequest(); |
361 |
0 |
if (("http".equals(request.getScheme()) && request.getServerPort() != 80) |
362 |
|
|| ("https".equals(request.getScheme()) && request.getServerPort() != 443)) { |
363 |
0 |
port = ":" + request.getServerPort(); |
364 |
|
} |
365 |
0 |
url = request.getScheme() + "://" + request.getServerName() + port + url; |
366 |
0 |
String link = "http://" + request.getServerName(); |
367 |
0 |
return getFeedImage(url, link, "XWiki Logo", "XWiki Logo"); |
368 |
|
} |
369 |
|
|
370 |
|
|
371 |
|
|
372 |
|
|
373 |
|
@return |
374 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
375 |
0 |
public SyndFeed getFeed()... |
376 |
|
{ |
377 |
0 |
return getProtectedPlugin().getFeed(getXWikiContext()); |
378 |
|
} |
379 |
|
|
380 |
|
|
381 |
|
|
382 |
|
|
383 |
|
@param |
384 |
|
@param |
385 |
|
@param |
386 |
|
@return |
387 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
388 |
0 |
public SyndFeed getFeed(List<Object> list, SyndEntrySourceApi sourceApi, Map<String, Object> sourceParams)... |
389 |
|
{ |
390 |
0 |
Map<String, Object> metadata = Collections.emptyMap(); |
391 |
0 |
return getFeed(list, sourceApi, sourceParams, metadata); |
392 |
|
} |
393 |
|
|
394 |
|
|
395 |
|
|
396 |
|
|
397 |
|
|
398 |
|
@param@link@link |
399 |
|
@param |
400 |
|
@return |
401 |
|
@see |
402 |
|
@see |
403 |
|
@see |
404 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
405 |
0 |
public SyndFeed getDocumentFeed(List<Object> list, Map<String, Object> params)... |
406 |
|
{ |
407 |
0 |
Map<String, Object> metadata = Collections.emptyMap(); |
408 |
0 |
return getDocumentFeed(list, params, metadata); |
409 |
|
} |
410 |
|
|
411 |
|
|
412 |
|
|
413 |
|
|
414 |
|
|
415 |
|
@param |
416 |
|
@return |
417 |
|
@see |
418 |
|
@see |
419 |
|
@see |
420 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
421 |
0 |
public SyndFeed getArticleFeed(List<Object> list)... |
422 |
|
{ |
423 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
424 |
0 |
return getArticleFeed(list, params); |
425 |
|
} |
426 |
|
|
427 |
|
|
428 |
|
|
429 |
|
|
430 |
|
@param@link@link |
431 |
|
@return |
432 |
|
@see |
433 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
434 |
0 |
public SyndFeed getWebFeed(List<Object> list)... |
435 |
|
{ |
436 |
0 |
Map<String, Object> metadata = new HashMap<String, Object>(); |
437 |
0 |
return getWebFeed(list, metadata); |
438 |
|
} |
439 |
|
|
440 |
|
|
441 |
|
|
442 |
|
|
443 |
|
@param |
444 |
|
@return |
445 |
|
@see |
446 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
447 |
0 |
public SyndFeed getBlogFeed(List<Object> list)... |
448 |
|
{ |
449 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
450 |
0 |
return getBlogFeed(list, params); |
451 |
|
} |
452 |
|
|
453 |
|
|
454 |
|
|
455 |
|
|
456 |
|
|
457 |
|
@param |
458 |
|
@param |
459 |
|
@param |
460 |
|
@param |
461 |
|
@param |
462 |
|
@return |
463 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
464 |
0 |
public SyndFeed getFeed(String query, int count, int start, SyndEntrySourceApi sourceApi,... |
465 |
|
Map<String, Object> sourceParams) |
466 |
|
{ |
467 |
0 |
Map<String, Object> metadata = Collections.emptyMap(); |
468 |
0 |
return getFeed(query, count, start, sourceApi, sourceParams, metadata); |
469 |
|
} |
470 |
|
|
471 |
|
|
472 |
|
|
473 |
|
|
474 |
|
|
475 |
|
@param |
476 |
|
@param |
477 |
|
@param |
478 |
|
@param |
479 |
|
@return |
480 |
|
@see |
481 |
|
@see |
482 |
|
@see |
483 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
484 |
0 |
public SyndFeed getDocumentFeed(String query, int count, int start, Map<String, Object> params)... |
485 |
|
{ |
486 |
0 |
Map<String, Object> metadata = Collections.emptyMap(); |
487 |
0 |
return getDocumentFeed(query, count, start, params, metadata); |
488 |
|
} |
489 |
|
|
490 |
|
|
491 |
|
|
492 |
|
|
493 |
|
|
494 |
|
@param |
495 |
|
@param |
496 |
|
@param |
497 |
|
@return |
498 |
|
@see |
499 |
|
@see |
500 |
|
@see |
501 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
502 |
0 |
public SyndFeed getArticleFeed(String query, int count, int start)... |
503 |
|
{ |
504 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
505 |
0 |
return getArticleFeed(query, count, start, params); |
506 |
|
} |
507 |
|
|
508 |
|
|
509 |
|
|
510 |
|
|
511 |
|
@param |
512 |
|
@param |
513 |
|
@param |
514 |
|
@return |
515 |
|
@see |
516 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
517 |
0 |
public SyndFeed getWebFeed(String query, int count, int start)... |
518 |
|
{ |
519 |
0 |
Map<String, Object> metadata = new HashMap<String, Object>(); |
520 |
0 |
return getWebFeed(query, count, start, metadata); |
521 |
|
} |
522 |
|
|
523 |
|
|
524 |
|
|
525 |
|
|
526 |
|
@param |
527 |
|
@param |
528 |
|
@param |
529 |
|
@return |
530 |
|
@see |
531 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
532 |
0 |
public SyndFeed getBlogFeed(String query, int count, int start)... |
533 |
|
{ |
534 |
0 |
return getBlogFeed(query, count, start, Collections.<String, Object> emptyMap()); |
535 |
|
} |
536 |
|
|
537 |
|
|
538 |
|
|
539 |
|
|
540 |
|
|
541 |
|
@param |
542 |
|
@param |
543 |
|
@param |
544 |
|
@param |
545 |
|
@return |
546 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
547 |
0 |
public SyndFeed getFeed(List<Object> list, SyndEntrySourceApi sourceApi, Map<String, Object> sourceParams,... |
548 |
|
Map<String, Object> metadata) |
549 |
|
{ |
550 |
0 |
getXWikiContext().remove(FEED_PLUGIN_EXCEPTION); |
551 |
0 |
try { |
552 |
0 |
return getProtectedPlugin().getFeed(list, sourceApi.getSyndEntrySource(), sourceParams, metadata, |
553 |
|
getXWikiContext()); |
554 |
|
} catch (XWikiException e) { |
555 |
0 |
getXWikiContext().put(FEED_PLUGIN_EXCEPTION, e); |
556 |
0 |
return null; |
557 |
|
} |
558 |
|
} |
559 |
|
|
560 |
|
|
561 |
|
|
562 |
|
|
563 |
|
|
564 |
|
@param@link@link |
565 |
|
@param |
566 |
|
@param |
567 |
|
@return |
568 |
|
@see |
569 |
|
@see |
570 |
|
@see |
571 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
572 |
0 |
public SyndFeed getDocumentFeed(List<Object> list, Map<String, Object> params, Map<String, Object> metadata)... |
573 |
|
{ |
574 |
0 |
return getFeed(list, getSyndEntryDocumentSource(), params, metadata); |
575 |
|
} |
576 |
|
|
577 |
|
|
578 |
|
|
579 |
|
|
580 |
|
|
581 |
|
|
582 |
|
@param |
583 |
|
@param |
584 |
|
@return |
585 |
|
@see |
586 |
|
@see |
587 |
|
@see |
588 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
589 |
0 |
public SyndFeed getArticleFeed(List<Object> list, Map<String, Object> metadata)... |
590 |
|
{ |
591 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
592 |
0 |
return getFeed(list, getSyndEntryArticleSource(), params, metadata); |
593 |
|
} |
594 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
595 |
0 |
private static boolean keyHasValue(Map<String, Object> map, String key, Object defaultValue)... |
596 |
|
{ |
597 |
0 |
Object value = map.get(key); |
598 |
0 |
return value != null && !value.equals(defaultValue); |
599 |
|
} |
600 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 3 |
Complexity Density: 0.43 |
|
601 |
0 |
private Map<String, Object> fillWebFeedMetadata(Map<String, Object> metadata)... |
602 |
|
{ |
603 |
|
|
604 |
0 |
String title = "Feed for document changes"; |
605 |
0 |
String description = title; |
606 |
0 |
if (!keyHasValue(metadata, "title", "")) { |
607 |
0 |
metadata.put("title", title); |
608 |
|
} |
609 |
0 |
if (!keyHasValue(metadata, "description", "")) { |
610 |
0 |
metadata.put("description", description); |
611 |
|
} |
612 |
0 |
return metadata; |
613 |
|
} |
614 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 3 |
Complexity Density: 0.38 |
|
615 |
0 |
private Map<String, Object> fillBlogFeedMetadata(Map<String, Object> metadata)... |
616 |
|
{ |
617 |
|
|
618 |
0 |
Map<String, Object> result = new HashMap<String, Object>(metadata); |
619 |
|
|
620 |
|
|
621 |
0 |
String title = "Personal Wiki Blog"; |
622 |
0 |
String description = title; |
623 |
0 |
if (!keyHasValue(result, "title", "")) { |
624 |
0 |
result.put("title", title); |
625 |
|
} |
626 |
0 |
if (!keyHasValue(result, "description", "")) { |
627 |
0 |
result.put("description", description); |
628 |
|
} |
629 |
0 |
return result; |
630 |
|
} |
631 |
|
|
632 |
|
|
633 |
|
|
634 |
|
|
635 |
|
@param@link@link |
636 |
|
@param |
637 |
|
@return |
638 |
|
@see |
639 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
640 |
0 |
public SyndFeed getWebFeed(List<Object> list, Map<String, Object> metadata)... |
641 |
|
{ |
642 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
643 |
0 |
SyndFeed webFeed = getDocumentFeed(list, params, fillWebFeedMetadata(metadata)); |
644 |
0 |
if (webFeed != null) { |
645 |
0 |
webFeed.setImage(getDefaultFeedImage()); |
646 |
|
} |
647 |
0 |
return webFeed; |
648 |
|
} |
649 |
|
|
650 |
|
|
651 |
|
|
652 |
|
|
653 |
|
@param |
654 |
|
@param |
655 |
|
@return |
656 |
|
@see |
657 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
658 |
0 |
public SyndFeed getBlogFeed(List<Object> list, Map<String, Object> metadata)... |
659 |
|
{ |
660 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
661 |
0 |
SyndFeed blogFeed = |
662 |
|
getFeed(list, getSyndEntrySource(SyndEntryDocumentSource.class.getName(), BLOG_FIELDS_MAPPING), params, |
663 |
|
fillBlogFeedMetadata(metadata)); |
664 |
0 |
if (blogFeed != null) { |
665 |
0 |
blogFeed.setImage(getDefaultFeedImage()); |
666 |
|
} |
667 |
0 |
return blogFeed; |
668 |
|
} |
669 |
|
|
670 |
|
|
671 |
|
|
672 |
|
|
673 |
|
|
674 |
|
@param |
675 |
|
@param |
676 |
|
@param |
677 |
|
@param |
678 |
|
@param |
679 |
|
@param |
680 |
|
@return |
681 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
682 |
0 |
public SyndFeed getFeed(String query, int count, int start, SyndEntrySourceApi sourceApi,... |
683 |
|
Map<String, Object> sourceParams, Map<String, Object> metadata) |
684 |
|
{ |
685 |
0 |
getXWikiContext().remove(FEED_PLUGIN_EXCEPTION); |
686 |
0 |
try { |
687 |
0 |
return getProtectedPlugin().getFeed(query, count, start, sourceApi.getSyndEntrySource(), sourceParams, |
688 |
|
metadata, getXWikiContext()); |
689 |
|
} catch (XWikiException e) { |
690 |
0 |
getXWikiContext().put(FEED_PLUGIN_EXCEPTION, e); |
691 |
0 |
return null; |
692 |
|
} |
693 |
|
} |
694 |
|
|
695 |
|
|
696 |
|
|
697 |
|
|
698 |
|
|
699 |
|
@param |
700 |
|
@param |
701 |
|
@param |
702 |
|
@param |
703 |
|
@param |
704 |
|
@return |
705 |
|
@see |
706 |
|
@see |
707 |
|
@see |
708 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
709 |
0 |
public SyndFeed getDocumentFeed(String query, int count, int start, Map<String, Object> params,... |
710 |
|
Map<String, Object> metadata) |
711 |
|
{ |
712 |
0 |
return getFeed(query, count, start, getSyndEntryDocumentSource(), params, metadata); |
713 |
|
} |
714 |
|
|
715 |
|
|
716 |
|
|
717 |
|
|
718 |
|
|
719 |
|
|
720 |
|
@param |
721 |
|
@param |
722 |
|
@param |
723 |
|
@param |
724 |
|
@return |
725 |
|
@see |
726 |
|
@see |
727 |
|
@see |
728 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
729 |
0 |
public SyndFeed getArticleFeed(String query, int count, int start, Map<String, Object> metadata)... |
730 |
|
{ |
731 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
732 |
0 |
return getFeed(query, count, start, getSyndEntryArticleSource(), params, metadata); |
733 |
|
} |
734 |
|
|
735 |
|
|
736 |
|
|
737 |
|
|
738 |
|
@param |
739 |
|
@param |
740 |
|
@param |
741 |
|
@param |
742 |
|
@return |
743 |
|
@see |
744 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 3 |
Complexity Density: 0.43 |
|
745 |
0 |
public SyndFeed getWebFeed(String query, int count, int start, Map<String, Object> metadata)... |
746 |
|
{ |
747 |
0 |
if (query == null) { |
748 |
0 |
query = "where 1=1 order by doc.date desc"; |
749 |
|
} |
750 |
0 |
Map<String, Object> params = new HashMap<String, Object>(); |
751 |
0 |
SyndFeed webFeed = getDocumentFeed(query, count, start, params, fillWebFeedMetadata(metadata)); |
752 |
0 |
if (webFeed != null) { |
753 |
0 |
webFeed.setImage(getDefaultFeedImage()); |
754 |
|
} |
755 |
0 |
return webFeed; |
756 |
|
} |
757 |
|
|
758 |
|
|
759 |
|
|
760 |
|
|
761 |
|
@param |
762 |
|
@param |
763 |
|
@param |
764 |
|
@param |
765 |
|
@return |
766 |
|
@see |
767 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
768 |
0 |
public SyndFeed getBlogFeed(String query, int count, int start, Map<String, Object> metadata)... |
769 |
|
{ |
770 |
0 |
return getBlogFeed(query, count, start, null, metadata); |
771 |
|
} |
772 |
|
|
773 |
|
|
774 |
|
|
775 |
|
|
776 |
|
@param |
777 |
|
@param |
778 |
|
@param |
779 |
|
@param |
780 |
|
|
781 |
|
@param |
782 |
|
@return |
783 |
|
@see |
784 |
|
|
|
|
| 0% |
Uncovered Elements: 28 (28) |
Complexity: 6 |
Complexity Density: 0.3 |
|
785 |
0 |
public SyndFeed getBlogFeed(String query, int count, int start, String blogPostClassName,... |
786 |
|
Map<String, Object> metadata) |
787 |
|
{ |
788 |
0 |
if (query == null) { |
789 |
0 |
XWikiRequest request = getXWikiContext().getRequest(); |
790 |
0 |
String category = request.getParameter("category"); |
791 |
0 |
if (category == null || category.equals("")) { |
792 |
0 |
query = |
793 |
|
", BaseObject as obj where obj.name=doc.fullName and obj.className='" + BLOG_POST_CLASS_NAME |
794 |
|
+ "' and obj.name<>'" + BLOG_POST_TEMPLATE_NAME + "' order by doc.creationDate desc"; |
795 |
|
} else { |
796 |
0 |
query = |
797 |
|
", BaseObject as obj, DBStringListProperty as prop join prop.list list where obj.name=doc.fullName and obj.className='" |
798 |
|
+ BLOG_POST_CLASS_NAME + "' and obj.name<>'" + BLOG_POST_TEMPLATE_NAME |
799 |
|
+ "' and obj.id=prop.id.id and prop.id.name='category' and list = '" + category |
800 |
|
+ "' order by doc.creationDate desc"; |
801 |
|
} |
802 |
|
} |
803 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
804 |
0 |
Map<String, Object> blogMappings = null; |
805 |
0 |
if (blogPostClassName == null) { |
806 |
0 |
blogMappings = BLOG_FIELDS_MAPPING; |
807 |
|
} else { |
808 |
0 |
blogMappings = new HashMap<String, Object>(); |
809 |
0 |
blogMappings.put(SyndEntryDocumentSource.FIELD_TITLE, blogPostClassName + "_title"); |
810 |
0 |
blogMappings.put(SyndEntryDocumentSource.FIELD_DESCRIPTION, blogPostClassName + "_content"); |
811 |
0 |
blogMappings.put(SyndEntryDocumentSource.FIELD_CATEGORIES, blogPostClassName + "_category"); |
812 |
0 |
blogMappings.put(SyndEntryDocumentSource.FIELD_PUBLISHED_DATE, blogPostClassName + "_publishDate"); |
813 |
0 |
blogMappings.put(SyndEntryDocumentSource.CONTENT_LENGTH, new Integer(400)); |
814 |
|
} |
815 |
0 |
SyndFeed blogFeed = |
816 |
|
getFeed(query, count, start, getSyndEntrySource(SyndEntryDocumentSource.class.getName(), blogMappings), |
817 |
|
params, fillBlogFeedMetadata(metadata)); |
818 |
0 |
if (blogFeed != null) { |
819 |
0 |
blogFeed.setImage(getDefaultFeedImage()); |
820 |
|
} |
821 |
0 |
return blogFeed; |
822 |
|
} |
823 |
|
|
824 |
|
|
825 |
|
|
826 |
|
|
827 |
|
@param@link |
828 |
|
@param |
829 |
|
|
830 |
|
@return |
831 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
832 |
0 |
public String getFeedOutput(SyndFeed feed, String type)... |
833 |
|
{ |
834 |
0 |
return getProtectedPlugin().getFeedOutput(feed, type, getXWikiContext()); |
835 |
|
} |
836 |
|
|
837 |
|
|
838 |
|
@see |
839 |
|
@see |
840 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
841 |
0 |
public String getFeedOutput(List<Object> list, SyndEntrySourceApi sourceApi, Map<String, Object> sourceParams,... |
842 |
|
Map<String, Object> metadata, String type) |
843 |
|
{ |
844 |
0 |
getXWikiContext().remove(FEED_PLUGIN_EXCEPTION); |
845 |
0 |
try { |
846 |
0 |
return getProtectedPlugin().getFeedOutput(list, sourceApi.getSyndEntrySource(), sourceParams, metadata, |
847 |
|
type, getXWikiContext()); |
848 |
|
} catch (XWikiException e) { |
849 |
0 |
getXWikiContext().put(FEED_PLUGIN_EXCEPTION, e); |
850 |
0 |
return null; |
851 |
|
} |
852 |
|
} |
853 |
|
|
854 |
|
|
855 |
|
@see |
856 |
|
@see |
857 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
858 |
0 |
public String getDocumentFeedOutput(List<Object> list, Map<String, Object> params, Map<String, Object> metadata,... |
859 |
|
String type) |
860 |
|
{ |
861 |
0 |
return getFeedOutput(list, getSyndEntryDocumentSource(), params, metadata, type); |
862 |
|
} |
863 |
|
|
864 |
|
|
865 |
|
@see |
866 |
|
@see |
867 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
868 |
0 |
public String getArticleFeedOutput(List<Object> list, Map<String, Object> metadata, String type)... |
869 |
|
{ |
870 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
871 |
0 |
return getFeedOutput(list, getSyndEntryArticleSource(), params, metadata, type); |
872 |
|
} |
873 |
|
|
874 |
|
|
875 |
|
@see |
876 |
|
@see |
877 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
878 |
0 |
public String getWebFeedOutput(List<Object> list, Map<String, Object> metadata, String type)... |
879 |
|
{ |
880 |
0 |
return getFeedOutput(getWebFeed(list, metadata), type); |
881 |
|
} |
882 |
|
|
883 |
|
|
884 |
|
@see |
885 |
|
@see |
886 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
887 |
0 |
public String getBlogFeedOutput(List<Object> list, Map<String, Object> metadata, String type)... |
888 |
|
{ |
889 |
0 |
return getFeedOutput(getBlogFeed(list, metadata), type); |
890 |
|
} |
891 |
|
|
892 |
|
|
893 |
|
@see |
894 |
|
@see |
895 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
896 |
0 |
public String getFeedOutput(String query, int count, int start, SyndEntrySourceApi sourceApi,... |
897 |
|
Map<String, Object> sourceParams, Map<String, Object> metadata, String type) |
898 |
|
{ |
899 |
0 |
getXWikiContext().remove(FEED_PLUGIN_EXCEPTION); |
900 |
0 |
try { |
901 |
0 |
return getProtectedPlugin().getFeedOutput(query, count, start, sourceApi.getSyndEntrySource(), |
902 |
|
sourceParams, metadata, type, getXWikiContext()); |
903 |
|
} catch (XWikiException e) { |
904 |
0 |
getXWikiContext().put(FEED_PLUGIN_EXCEPTION, e); |
905 |
0 |
return null; |
906 |
|
} |
907 |
|
} |
908 |
|
|
909 |
|
|
910 |
|
@see |
911 |
|
@see |
912 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
913 |
0 |
public String getDocumentFeedOutput(String query, int count, int start, Map<String, Object> params,... |
914 |
|
Map<String, Object> metadata, String type) |
915 |
|
{ |
916 |
0 |
return getFeedOutput(query, count, start, getSyndEntryDocumentSource(), params, metadata, type); |
917 |
|
} |
918 |
|
|
919 |
|
|
920 |
|
@see |
921 |
|
@see |
922 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
923 |
0 |
public String getArticleFeedOutput(String query, int count, int start, Map<String, Object> metadata, String type)... |
924 |
|
{ |
925 |
0 |
Map<String, Object> params = Collections.emptyMap(); |
926 |
0 |
return getFeedOutput(query, count, start, getSyndEntryArticleSource(), params, metadata, type); |
927 |
|
} |
928 |
|
|
929 |
|
|
930 |
|
@see |
931 |
|
@see |
932 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
933 |
0 |
public String getWebFeedOutput(String query, int count, int start, Map<String, Object> metadata, String type)... |
934 |
|
{ |
935 |
0 |
return getFeedOutput(getWebFeed(query, count, start, metadata), type); |
936 |
|
} |
937 |
|
|
938 |
|
|
939 |
|
@see |
940 |
|
@see |
941 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
942 |
0 |
public String getBlogFeedOutput(String query, int count, int start, Map<String, Object> metadata, String type)... |
943 |
|
{ |
944 |
0 |
return getFeedOutput(getBlogFeed(query, count, start, metadata), type); |
945 |
|
} |
946 |
|
|
947 |
|
|
948 |
|
@see |
949 |
|
@see |
950 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
951 |
0 |
public String getBlogFeedOutput(String query, int count, int start, String blogPostClassName,... |
952 |
|
Map<String, Object> metadata, String type) |
953 |
|
{ |
954 |
0 |
SyndFeed feed = getBlogFeed(query, count, start, blogPostClassName, metadata); |
955 |
0 |
String ret = getFeedOutput(feed, type); |
956 |
0 |
return ret; |
957 |
|
} |
958 |
|
} |