|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.User
public class User
A user of the system
Nested Class Summary | |
---|---|
static class |
User.Record
Represents all the fields in a User |
Field Summary | |
---|---|
protected String |
ref
The XenAPI reference to this object. |
Method Summary | |
---|---|
static User |
create(User.Record record)
Create a new user instance, and return its handle. |
void |
destroy()
Destroy the specified user instance. |
static Map<User,User.Record> |
getAllRecords()
Get all the User Records at once, in a single XML RPC call |
static User |
getByUuid(String uuid)
Get a reference to the user instance with the specified UUID. |
String |
getFullname()
Get the fullname field of the given user. |
protected static User |
getInstFromRef(String ref)
|
User.Record |
getRecord()
Get a record containing the current state of the given user. |
String |
getShortName()
Get the short_name field of the given user. |
String |
getUuid()
Get the uuid field of the given user. |
void |
setFullname(String fullname)
Set the fullname field of the given user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String ref
Method Detail |
---|
protected static User getInstFromRef(String ref)
public User.Record getRecord() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static User getByUuid(String uuid) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
uuid
- UUID of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static User create(User.Record record) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
record
- All constructor arguments
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void destroy() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getUuid() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getShortName() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getFullname() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setFullname(String fullname) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
fullname
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Map<User,User.Record> getAllRecords() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |