public Feed getRunFeed()

in taverna-server-webapp/src/main/java/org/apache/taverna/server/master/interaction/InteractionFeedSupport.java [221:251]


	public Feed getRunFeed(TavernaRun run) throws FilesystemAccessException,
			NoDirectoryEntryException {
		URI feedURI = getFeedURI(run);
		Feed feed = factory.newFeed();
		feed.setTitle("Interactions for Taverna Run \"" + run.getName() + "\"");
		feed.addLink(new IRI(feedURI).toString(), "self");
		feed.addLink(getRunURL(run), "workflowrun");
		boolean fetchedDate = false;
		for (DirectoryEntry de : listPossibleEntries(run)) {
			if (!(de instanceof File))
				continue;
			try {
				Entry e = getEntryFromFile((File) de);
				if (STRIP_CONTENTS)
					e.setContentElement(null);
				feed.addEntry(e);
				if (fetchedDate)
					continue;
				Date last = e.getUpdated();
				if (last == null)
					last = e.getPublished();
				if (last == null)
					last = de.getModificationDate();
				feed.setUpdated(last);
				fetchedDate = true;
			} catch (FilesystemAccessException e) {
				// Can't do anything about it, so we'll just drop the entry.
			}
		}
		return feed;
	}