public static class EmptyInventory.EnvironmentsSingle extends EmptyInventory.SingleBase<Environment,Environment.Update> implements Environments.Single
| Constructor and Description |
|---|
EnvironmentsSingle() |
| Modifier and Type | Method and Description |
|---|---|
Metrics.Read |
allMetrics()
Returns access to all metrics in this environment regardless of whether they are under some feed or
directly under the environment.
|
Resources.Read |
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) |
delete, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, exists, updatepublic Feeds.ReadWrite feeds()
public Resources.ReadWrite feedlessResources()
public Metrics.ReadWrite feedlessMetrics()
public Resources.Read allResources()
public Metrics.Read 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()
relationships in interface Relatable<Relationships.ReadWrite>public Relationships.ReadWrite relationships(Relationships.Direction direction)
relationships in interface Relatable<Relationships.ReadWrite>direction - the direction of the relation (aka edge) This is needed because relationships are not
bidirectional.public Environment entity() throws EntityNotFoundException, RelationNotFoundException
ResolvableToSingleentity in interface ResolvableToSingle<Environment,Environment.Update>entity in class EmptyInventory.SingleBase<Environment,Environment.Update>EntityNotFoundException - 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.