Beispiel #1
0
 public List<RecentChangesPageEntry> getLinesApplicableTo(String resource) throws Exception {
   List<RecentChangesPageEntry> filteredLines = new ArrayList<RecentChangesPageEntry>();
   for (RecentChangesPageEntry line : getLines()) {
     if (line.relatesTo(resource)) filteredLines.add(line);
   }
   return filteredLines;
 }
Beispiel #2
0
    public void addItem(RecentChangesPageEntry line) throws Exception {
      Map<String, String> itemProperties = line.getItemProperties();
      Element itemElement = document.createElement("item");
      makeNodes(itemElement, itemProperties);
      linkPrefixBuilder.buildLink(itemElement, itemProperties.get("path"));

      String description = makeDescription(itemProperties);
      XmlUtil.addTextNode(itemElement, "description", description);
      channelElement.appendChild(itemElement);
    }