public class Users extends CollectionDecorator<User,Users,User>
Users providing relation and functional services
to Users
.
Constructor and Description |
---|
Users(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
User |
add(User user)
Adds User object.
|
User |
add(User user,
String expect,
String correlationId)
Adds User object.
|
User |
get(UUID id)
Fetches User object by id.
|
List<User> |
list()
Lists User objects.
|
List<User> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists User objects.
|
get
public Users(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<User> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<User,Users,User>
User
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 User get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<User,Users,User>
id
- entity idUser
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 List<User> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
max
- [max results]
User
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 User add(User user) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
user
- User
user.user_name user.domain.id|name
User
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 User add(User user, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
user
- User
user.user_name user.domain.id|name
expect
- [201-created]
correlationId
- [any string]
User
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