public class CpuProfilePermissions extends CollectionDecorator<Permission,Permissions,CpuProfilePermission>
CpuProfilePermissions providing relation and functional services
to Permissions
.
Constructor and Description |
---|
CpuProfilePermissions(HttpProxyBroker proxy,
CpuProfile parent) |
Modifier and Type | Method and Description |
---|---|
CpuProfilePermission |
add(Permission permission)
Adds Permission object.
|
CpuProfilePermission |
add(Permission permission,
String expect)
Adds Permission object.
|
CpuProfilePermission |
add(Permission permission,
String expect,
String correlationId)
Adds Permission object.
|
CpuProfilePermission |
get(UUID id)
Fetches CpuProfilePermission object by id.
|
CpuProfilePermission |
getById(String id)
Fetches CpuProfilePermission object by id.
|
List<CpuProfilePermission> |
list()
Lists CpuProfilePermission objects.
|
List<CpuProfilePermission> |
list(Integer max)
Lists CpuProfilePermission objects.
|
get
public CpuProfilePermissions(HttpProxyBroker proxy, CpuProfile parent)
proxy
- HttpProxyBrokerparent
- CpuProfilepublic List<CpuProfilePermission> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Permission,Permissions,CpuProfilePermission>
CpuProfilePermission
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 CpuProfilePermission get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Permission,Permissions,CpuProfilePermission>
id
- entity idCpuProfilePermission
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 CpuProfilePermission getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Permission,Permissions,CpuProfilePermission>
id
- entity idCpuProfilePermission
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 CpuProfilePermission add(Permission permission) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission
- Permission
Overload 1: add a new user level permission on the cpu profile in the system permission.user.id permission.role.id|name Overload 2: add a new group level permission on the cpu profile in the system permission.group.id permission.role.id|name
CpuProfilePermission
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 CpuProfilePermission add(Permission permission, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission
- Permission
Overload 1: add a new user level permission on the cpu profile in the system permission.user.id permission.role.id|name Overload 2: add a new group level permission on the cpu profile in the system permission.group.id permission.role.id|name
expect
- [201-created]
CpuProfilePermission
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 CpuProfilePermission add(Permission permission, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission
- Permission
Overload 1: add a new user level permission on the cpu profile in the system permission.user.id permission.role.id|name Overload 2: add a new group level permission on the cpu profile in the system permission.group.id permission.role.id|name
expect
- [201-created]
correlationId
- [any string]
CpuProfilePermission
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<CpuProfilePermission> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
CpuProfilePermission
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