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)
Adds User object.
|
User |
add(User user,
String expect,
String correlationId)
Adds User object.
|
User |
get(UUID id)
Fetches User object by id.
|
User |
getById(String id)
Fetches User object by id.
|
List<User> |
list()
Lists User objects.
|
List<User> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists User objects.
|
getpublic Users(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<User> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<User,Users,User>Userorg.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 idUserorg.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 getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<User,Users,User>id - entity idUserorg.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]
Userorg.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
Userorg.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) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
user - User
user.user_name
user.domain.id|name
expect -
[201-created]
Userorg.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]
Userorg.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