public class Role extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Role.Record
Represents all the fields in a Role
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
ref
The XenAPI reference to this object.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
static Set<Role> |
getByPermissionNameLabel(Connection c,
String label)
This call returns a list of roles given a permission name
|
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
|
Set<String> |
getPermissionsNameLabel(Connection c)
This call returns a list of permission names given a role
|
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() |
protected final String ref
public String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(Object obj)
public Role.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Role getByUuid(Connection c, String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - UUID of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Set<Role> getByNameLabel(Connection c, String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label - label of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic String getNameLabel(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic String getNameDescription(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Set<Role> getSubroles(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Set<Role> getPermissions(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Set<String> getPermissionsNameLabel(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Set<Role> getByPermission(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Set<Role> getByPermissionNameLabel(Connection c, String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label - The short friendly name of the roleTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Set<Role> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Map<Role,Role.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException