public static class EmptyInventory.EnvironmentsSingle extends Object implements Environments.Single
| Constructor and Description |
|---|
EnvironmentsSingle() |
| Modifier and Type | Method and Description |
|---|---|
ResolvingToMultiple<Metrics.Multiple> |
allMetrics()
Returns access to all metrics in this environment regardless of whether they are under some feed or
directly under the environment.
|
ResolvingToMultiple<Resources.Multiple> |
allResources()
Returns access to all resources in this environment regardless of whether they are under some feed or
directly under the environment.
|
Environment |
entity()
Resolves the entity and returns it.
|
Metrics.ReadWrite |
feedlessMetrics() |
Resources.ReadWrite |
feedlessResources() |
Feeds.ReadWrite |
feeds() |
Relationships.ReadWrite |
relationships() |
Relationships.ReadWrite |
relationships(Relationships.Direction direction) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexistspublic Feeds.ReadWrite feeds()
public Resources.ReadWrite feedlessResources()
public Metrics.ReadWrite feedlessMetrics()
public ResolvingToMultiple<Resources.Multiple> allResources()
Note that it is not possible to get a single resource from this access interface because the id is not guaranteed to be unique amongst resources under different feeds.
public ResolvingToMultiple<Metrics.Multiple> allMetrics()
Note that it is not possible to get a single metric from this access interface because the id is not guaranteed to be unique amongst metrics under different feeds.
public Relationships.ReadWrite relationships()
public Relationships.ReadWrite relationships(Relationships.Direction direction)
direction - the direction of the relation (aka edge) This is needed because relationships are not
bidirectional.public Environment entity() throws EntityNotFoundException, RelationNotFoundException
ResolvableToSingleEntityNotFoundException - if there is no entity corresponding to the traversalRelationNotFoundException - if there is no relation corresponding to the traversalCopyright © 2015 Red Hat, Inc.. All rights reserved.