|
OpenNebula Cloud API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennebula.client.PoolElement
org.opennebula.client.user.User
public class User
This class represents an OpenNebula User. It also offers static XML-RPC call wrappers.
Field Summary |
---|
Fields inherited from class org.opennebula.client.PoolElement |
---|
client, id, xml, xpath |
Constructor Summary | |
---|---|
|
User(int id,
Client client)
Creates a new User representation. |
protected |
User(org.w3c.dom.Node xmlElement,
Client client)
|
Method Summary | |
---|---|
static OneResponse |
allocate(Client client,
java.lang.String username,
java.lang.String password)
Allocates a new user in OpenNebula. |
static OneResponse |
chgrp(Client client,
int id,
int gid)
Changes the main group of the given user |
OneResponse |
chgrp(int gid)
Changes the main group of the given user |
OneResponse |
delete()
Deletes the user from OpenNebula. |
static OneResponse |
delete(Client client,
int id)
Deletes a user from OpenNebula. |
OneResponse |
info()
Loads the xml representation of the user. |
static OneResponse |
info(Client client,
int id)
Retrieves the information of the given user. |
boolean |
isEnabled()
Returns true if the user is enabled. |
static OneResponse |
passwd(Client client,
int id,
java.lang.String password)
Changes the password for the given user. |
OneResponse |
passwd(java.lang.String password)
Changes the password for the user. |
Methods inherited from class org.opennebula.client.PoolElement |
---|
getId, getName, gid, id, processInfo, state, uid, xpath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public User(int id, Client client)
id
- The user id (uid).client
- XML-RPC Client.protected User(org.w3c.dom.Node xmlElement, Client client)
PoolElement
Method Detail |
---|
public static OneResponse allocate(Client client, java.lang.String username, java.lang.String password)
client
- XML-RPC Client.username
- Username for the new user.password
- Password for the new user
public static OneResponse info(Client client, int id)
client
- XML-RPC Client.id
- The user id (uid) for the user to
retrieve the information from.
public static OneResponse delete(Client client, int id)
client
- XML-RPC Client.id
- The user id (uid) of the target user we want to delete.
public static OneResponse passwd(Client client, int id, java.lang.String password)
client
- XML-RPC Client.id
- The user id (uid) of the target user we want to modify.password
- The new password.
public static OneResponse chgrp(Client client, int id, int gid)
client
- XML-RPC Client.id
- The user id (uid) of the target user we want to modify.gid
- The new group ID.
public OneResponse info()
info(Client, int)
public OneResponse delete()
delete(Client, int)
public OneResponse passwd(java.lang.String password)
password
- The new password.
public OneResponse chgrp(int gid)
gid
- The new group ID.
public boolean isEnabled()
|
OpenNebula Cloud API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |