The following document contains the results of PMD's CPD 4.2.5.
File | Line |
---|---|
info/magnolia/module/rssaggregator/templates/components/FeedStatisticsModel.java | 105 |
info/magnolia/module/rssaggregator/templates/components/FeedSubscriptionsModel.java | 84 |
log.debug(query); Query q = qm.createQuery(query, "xpath"); QueryResult res = q.execute(); Collection<Content> col = res.getContent(NodeTypes.Content.NAME); int resCount = 0; for (Content c : col) { resCount++; if (resCount <= maxResults) { results.add(new NodeMapWrapper(c, c.getHandle())); } else { break; } } log.debug("returning collection with {} items.", "" + results.size()); return results; } catch (RepositoryException e) { log.error(e.getLocalizedMessage(), e); } return null; } /** * Retrieve the title attribute of an individual feed subscription. * * @param feedLink Link to the feed. * @return Assigned title of a feed if defined in the dialog or null. */ public String getFeedTitle(String feedLink) { try { if (content.hasProperty("feed")) { Node rssParent = SessionUtil.getNodeByIdentifier(RSSAggregatorConstants.WORKSPACE, content.getProperty("feed").getString()); return getFeedProperty(rssParent, FEEDS_NODE, "link", feedLink, "title"); } } catch (RepositoryException e) { log.error("Problem while fetching feed title: " + e.getMessage()); |