public class InteractionFeed extends Object implements InteractionFeedREST, FeedBean
Constructor and Description |
---|
InteractionFeed() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addEntry(org.apache.abdera.model.Entry entry)
Adds an entry to this ATOM feed.
|
String |
deleteEntry(String id)
Delete an entry from this ATOM feed.
|
javax.ws.rs.core.Response |
entryOptions(String id)
Handles the OPTIONS request.
|
javax.ws.rs.core.Response |
feedOptions()
Handles the OPTIONS request.
|
org.apache.abdera.model.Entry |
getEntry(String id)
Gets the content of an entry in this ATOM feed.
|
org.apache.abdera.model.Feed |
getFeed()
Get the feed document for this ATOM feed.
|
void |
setInteractionFeedSupport(InteractionFeedSupport feed) |
public void setInteractionFeedSupport(InteractionFeedSupport feed)
setInteractionFeedSupport
in interface FeedBean
@InvocationCounter.CallCounted @CallTimeLogger.PerfLogged @RolesAllowed(value={"ROLE_tavernauser","ROLE_tavernaworkflow"}) public org.apache.abdera.model.Feed getFeed() throws FilesystemAccessException, NoDirectoryEntryException
InteractionFeedREST
getFeed
in interface InteractionFeedREST
FilesystemAccessException
- If we can't read from the feed directory.NoDirectoryEntryException
- If something changes things under our feet.@InvocationCounter.CallCounted @CallTimeLogger.PerfLogged @RolesAllowed(value={"ROLE_tavernauser","ROLE_tavernaworkflow"}) public javax.ws.rs.core.Response addEntry(org.apache.abdera.model.Entry entry) throws MalformedURLException, FilesystemAccessException, NoDirectoryEntryException, NoUpdateException
InteractionFeedREST
addEntry
in interface InteractionFeedREST
entry
- The entry to create.MalformedURLException
- If we have problems generating the URI of the entry.FilesystemAccessException
- If we can't create the feed entry file.NoDirectoryEntryException
- If things get changed under our feet.NoUpdateException
- If we don't have permission to change things relating to this
run.@InvocationCounter.CallCounted @CallTimeLogger.PerfLogged @RolesAllowed(value={"ROLE_tavernauser","ROLE_tavernaworkflow"}) public org.apache.abdera.model.Entry getEntry(String id) throws FilesystemAccessException, NoDirectoryEntryException
InteractionFeedREST
getEntry
in interface InteractionFeedREST
id
- The ID of the entry to fetch.FilesystemAccessException
- If we have problems reading the entry.NoDirectoryEntryException
- If we can't find the entry to read.@InvocationCounter.CallCounted @CallTimeLogger.PerfLogged @RolesAllowed(value={"ROLE_tavernauser","ROLE_tavernaworkflow"}) public String deleteEntry(String id) throws FilesystemAccessException, NoDirectoryEntryException, NoUpdateException
InteractionFeedREST
deleteEntry
in interface InteractionFeedREST
id
- The ID of the entry to delete.FilesystemAccessException
- If we have problems deleting the entry.NoDirectoryEntryException
- If we can't find the entry to delete.NoUpdateException
- If we don't have permission to alter things relating to this
run.@InvocationCounter.CallCounted public javax.ws.rs.core.Response feedOptions()
InteractionFeedREST
feedOptions
in interface InteractionFeedREST
@InvocationCounter.CallCounted public javax.ws.rs.core.Response entryOptions(String id)
InteractionFeedREST
entryOptions
in interface InteractionFeedREST
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.