| 
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.group.Group
public class Group
This class represents an OpenNebula group. It also offers static XML-RPC call wrappers.
| Field Summary | 
|---|
| Fields inherited from class org.opennebula.client.PoolElement | 
|---|
client, id, xml, xpath | 
| Constructor Summary | |
|---|---|
  | 
Group(int id,
      Client client)
Creates a new Group representation.  | 
protected  | 
Group(org.w3c.dom.Node xmlElement,
      Client client)
 | 
| Method Summary | |
|---|---|
static OneResponse | 
allocate(Client client,
         java.lang.String name)
Allocates a new group in OpenNebula  | 
 boolean | 
contains(int uid)
Returns whether or not the user is part of this group  | 
 OneResponse | 
delete()
Deletes the group from OpenNebula.  | 
static OneResponse | 
delete(Client client,
       int id)
Deletes a group from OpenNebula.  | 
 OneResponse | 
info()
Loads the xml representation of the group.  | 
static OneResponse | 
info(Client client,
     int id)
Retrieves the information of the given group.  | 
static OneResponse | 
setQuota(Client client,
         int id,
         java.lang.String quota_template)
Replaces the group quota template contents.  | 
 OneResponse | 
setQuota(java.lang.String quota_template)
Replaces the group quota template contents.  | 
| Methods inherited from class org.opennebula.client.PoolElement | 
|---|
chmod, chmod, chmod, 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 Group(int id,
             Client client)
id - The group id.client - XML-RPC Client.
protected Group(org.w3c.dom.Node xmlElement,
                Client client)
PoolElement| Method Detail | 
|---|
public static OneResponse allocate(Client client,
                                   java.lang.String name)
client - XML-RPC Client.name - Name for the new group.
public static OneResponse info(Client client,
                               int id)
client - XML-RPC Client.id - The group id.
public static OneResponse delete(Client client,
                                 int id)
client - XML-RPC Client.id - The group id.
public static OneResponse setQuota(Client client,
                                   int id,
                                   java.lang.String quota_template)
client - XML-RPC Client.id - The group id of the target group we want to modify.quota_template - New quota template contents.
public OneResponse info()
info(Client, int)public OneResponse delete()
delete(Client, int)public OneResponse setQuota(java.lang.String quota_template)
quota_template - New quota template contents.
public boolean contains(int uid)
uid - The user ID.
  | 
OpenNebula Cloud API  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||