public class InteractionFeedSupport extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FEED_DIR
The name of the directory below the run working directory that will
contain the entries of the interaction feed.
|
static String |
FEED_URL_DIR
The name of the resource within the run resource that is the run's
interaction feed resource.
|
Constructor and Description |
---|
InteractionFeedSupport() |
Modifier and Type | Method and Description |
---|---|
org.apache.abdera.model.Entry |
addRunFeedEntry(TavernaRun run,
org.apache.abdera.model.Entry entry)
Given a partial feed entry, store a complete feed entry in the filesystem
for a particular run.
|
URI |
getEntryURI(TavernaRun run,
String id) |
URI |
getFeedURI(TavernaRun run) |
URL |
getLocalFeedBase(URI feedURI) |
org.apache.abdera.model.Feed |
getRunFeed(TavernaRun run)
Get the interaction feed for a partciular run.
|
org.apache.abdera.model.Entry |
getRunFeedEntry(TavernaRun run,
String entryID)
Gets the contents of a particular feed entry.
|
void |
removeRunFeedEntry(TavernaRun run,
String entryID)
Deletes an entry from a feed.
|
void |
setAbdera(org.apache.abdera.Abdera abdera) |
void |
setSupport(TavernaServerSupport support) |
void |
setUriBuilder(UriBuilderFactory uriBuilder) |
void |
setUtils(FilenameUtils utils) |
public static final String FEED_URL_DIR
public static final String FEED_DIR
public void setSupport(TavernaServerSupport support)
public void setUtils(FilenameUtils utils)
public void setAbdera(org.apache.abdera.Abdera abdera)
public void setUriBuilder(UriBuilderFactory uriBuilder)
public URI getFeedURI(TavernaRun run)
run
- The workflow run that defines which feed we are operating on.public URI getEntryURI(TavernaRun run, String id)
run
- The workflow run that defines which feed we are operating on.id
- The ID of the entry.public org.apache.abdera.model.Feed getRunFeed(TavernaRun run) throws FilesystemAccessException, NoDirectoryEntryException
run
- The workflow run that defines which feed we are operating on.FilesystemAccessException
- If the feed directory can't be read for some reason.NoDirectoryEntryException
- If the feed directory doesn't exist or an entry is
unexpectedly removed.public org.apache.abdera.model.Entry getRunFeedEntry(TavernaRun run, String entryID) throws FilesystemAccessException, NoDirectoryEntryException
run
- The workflow run that defines which feed we are operating on.entryID
- The identifier (from the path) of the entry to read.FilesystemAccessException
- If the entry can't be read or is too large.NoDirectoryEntryException
- If the entry can't be found.public org.apache.abdera.model.Entry addRunFeedEntry(TavernaRun run, org.apache.abdera.model.Entry entry) throws FilesystemAccessException, NoDirectoryEntryException, NoUpdateException
run
- The workflow run that defines which feed we are operating on.entry
- The partial entry to storeFilesystemAccessException
- If the entry can't be stored.NoDirectoryEntryException
- If the run is improperly configured.NoUpdateException
- If the user isn't allowed to do the write.MalformedURLException
- If a generated URL is illegal (shouldn't happen).public void removeRunFeedEntry(TavernaRun run, String entryID) throws FilesystemAccessException, NoDirectoryEntryException, NoUpdateException
run
- The workflow run that defines which feed we are operating on.entryID
- The ID of the entry to delete.FilesystemAccessException
- If the entry can't be deletedNoDirectoryEntryException
- If the entry can't be found.NoUpdateException
- If the current user is not permitted to modify the run's
characteristics.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.