public static class EmptyInventory.EnvironmentReadWrite extends Object implements Environments.ReadWrite
| Constructor and Description |
|---|
EnvironmentReadWrite() |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(String sourceEnvironmentId,
String targetEnvironmentId) |
Environments.Single |
create(Environment.Blueprint blueprint)
Creates a new entity at the current position in the inventory traversal.
|
void |
delete(String id)
Deletes an entity with the provided id from the current position in the inventory traversal.
|
Environments.Single |
get(String id)
Tries to find a single entity in the current position in the inventory traversal.
|
Environments.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,
Environment.Update update)
Persists the provided entity on the current position in the inventory traversal.
|
public void copy(String sourceEnvironmentId, String targetEnvironmentId)
copy in interface Environments.ReadWritepublic Environments.Multiple getAll(Filter... filters)
ResolvingToMultiplefilters - the (possibly empty) list of filters to apply.public Environments.Single get(String id) throws EntityNotFoundException
ResolvingToSingleid - the id of the entity to find in the current traversal positionEntityNotFoundExceptionpublic Environments.Single create(Environment.Blueprint blueprint) throws EntityAlreadyExistsException
WriteInterfaceblueprint - the blueprint to be used to create the new entityEntityAlreadyExistsException - if the entity already existspublic void update(String id, Environment.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
traversalCopyright © 2015 Red Hat, Inc.. All rights reserved.