|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.xensource.xenapi.XenAPIObject
com.xensource.xenapi.Role
public class Role
A set of permissions associated with a subject First published in XenServer 5.6.
| Nested Class Summary | |
|---|---|
static class |
Role.Record
Represents all the fields in a Role |
| Field Summary | |
|---|---|
protected String |
ref
The XenAPI reference (OpaqueRef) to this object. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
If obj is a Role, compares XenAPI references for equality. |
static Set<Role> |
getAll(Connection c)
Return a list of all the roles known to the system. |
static Map<Role,Role.Record> |
getAllRecords(Connection c)
Return a map of role references to role records for all roles known to the system. |
static Set<Role> |
getByNameLabel(Connection c,
String label)
Get all the role instances with the given label. |
Set<Role> |
getByPermission(Connection c)
This call returns a list of roles given a permission First published in XenServer 5.6. |
static Set<Role> |
getByPermissionNameLabel(Connection c,
String label)
This call returns a list of roles given a permission name First published in XenServer 5.6. |
static Role |
getByUuid(Connection c,
String uuid)
Get a reference to the role instance with the specified UUID. |
String |
getNameDescription(Connection c)
Get the name/description field of the given role. |
String |
getNameLabel(Connection c)
Get the name/label field of the given role. |
Set<Role> |
getPermissions(Connection c)
This call returns a list of permissions given a role First published in XenServer 5.6. |
Set<String> |
getPermissionsNameLabel(Connection c)
This call returns a list of permission names given a role First published in XenServer 5.6. |
Role.Record |
getRecord(Connection c)
Get a record containing the current state of the given role. |
Set<Role> |
getSubroles(Connection c)
Get the subroles field of the given role. |
String |
getUuid(Connection c)
Get the uuid field of the given role. |
int |
hashCode()
|
String |
toWireString()
|
| Methods inherited from class com.xensource.xenapi.XenAPIObject |
|---|
isNull |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String ref
| Method Detail |
|---|
public String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
public Role.Record getRecord(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Role getByUuid(Connection c,
String uuid)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
uuid - UUID of object to return
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Set<Role> getByNameLabel(Connection c,
String label)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
label - label of object to return
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public String getUuid(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public String getNameLabel(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public String getNameDescription(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Set<Role> getSubroles(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Set<Role> getPermissions(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Set<String> getPermissionsNameLabel(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Set<Role> getByPermission(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Set<Role> getByPermissionNameLabel(Connection c,
String label)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
label - The short friendly name of the role
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Set<Role> getAll(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Map<Role,Role.Record> getAllRecords(Connection c)
throws Types.BadServerResponse,
Types.XenAPIException,
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||