public class NetworkLabels extends CollectionDecorator<Label,Labels,NetworkLabel>
NetworkLabels providing relation and functional services
to Labels
.
Constructor and Description |
---|
NetworkLabels(HttpProxyBroker proxy,
Network parent) |
Modifier and Type | Method and Description |
---|---|
NetworkLabel |
add(Label label)
Adds Label object.
|
NetworkLabel |
get(UUID id)
Fetches NetworkLabel object by id.
|
List<NetworkLabel> |
list()
Lists NetworkLabel objects.
|
get
public NetworkLabels(HttpProxyBroker proxy, Network parent)
proxy
- HttpProxyBrokerparent
- Networkpublic List<NetworkLabel> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Label,Labels,NetworkLabel>
NetworkLabel
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public NetworkLabel get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Label,Labels,NetworkLabel>
id
- entity idNetworkLabel
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public NetworkLabel add(Label label) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
label
- Label
NetworkLabel
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0