public static class EmptyInventory.FeedsReadWrite extends Object implements Feeds.ReadWrite
| Constructor and Description |
|---|
FeedsReadWrite() |
| Modifier and Type | Method and Description |
|---|---|
Feeds.Single |
create(Feed.Blueprint blueprint)
Registers a new feed.
|
void |
delete(String id)
Deletes an entity with the provided id from the current position in the inventory traversal.
|
Feeds.Single |
get(String id)
Tries to find a single entity in the current position in the inventory traversal.
|
Feeds.Multiple |
getAll(Filter... filters)
Returns access interface to all entities conforming to provided filters in the current position in the inventory
traversal.
|
void |
update(String id,
Feed.Update update)
Persists the provided entity on the current position in the inventory traversal.
|
public Feeds.Single create(Feed.Blueprint blueprint)
Feeds.ReadWritecreate in interface Feeds.ReadWriteblueprint - the blueprint of the feedpublic void update(String id, Feed.Update update) throws EntityNotFoundException
WriteInterfaceid - the id of the entity to updateupdate - the updates to the entityEntityNotFoundException - if the entity is not found in the databasepublic void delete(String id) throws EntityNotFoundException
WriteInterfaceid - the id of the entity to deleteEntityNotFoundException - if an entity with given ID doesn't exist on the current postion in the inventory
traversalpublic Feeds.Multiple getAll(Filter... filters)
ResolvingToMultiplefilters - the (possibly empty) list of filters to apply.public Feeds.Single get(String id) throws EntityNotFoundException
ResolvingToSingleid - the id of the entity to find in the current traversal positionEntityNotFoundExceptionCopyright © 2015 Red Hat, Inc.. All rights reserved.