public class SecurityGroup extends PoolElement
client, id, xml, xpath
Modifier | Constructor and Description |
---|---|
|
SecurityGroup(int id,
Client client)
Creates a new security group representation.
|
protected |
SecurityGroup(org.w3c.dom.Node xmlElement,
Client client) |
Modifier and Type | Method and Description |
---|---|
static OneResponse |
allocate(Client client,
java.lang.String description)
Allocates a new security group in OpenNebula.
|
OneResponse |
chgrp(int gid)
Changes the group
|
static OneResponse |
chmod(Client client,
int id,
int octet)
Changes the permissions
|
static OneResponse |
chmod(Client client,
int id,
int owner_u,
int owner_m,
int owner_a,
int group_u,
int group_m,
int group_a,
int other_u,
int other_m,
int other_a)
Changes the security group permissions
|
static OneResponse |
chmod(Client client,
int id,
java.lang.String octet)
Changes the permissions
|
OneResponse |
chmod(int octet)
Changes the permissions
|
OneResponse |
chmod(int owner_u,
int owner_m,
int owner_a,
int group_u,
int group_m,
int group_a,
int other_u,
int other_m,
int other_a)
Changes the security group permissions
|
OneResponse |
chmod(java.lang.String octet)
Changes the permissions
|
static OneResponse |
chown(Client client,
int id,
int uid,
int gid)
Changes the owner/group
|
OneResponse |
chown(int uid)
Changes the owner
|
OneResponse |
chown(int uid,
int gid)
Changes the owner/group
|
static OneResponse |
clone(Client client,
int id,
java.lang.String name)
Clones this security group into a new one
|
OneResponse |
clone(java.lang.String name)
Clones this security group into a new one
|
OneResponse |
delete()
Deletes the security group from OpenNebula.
|
static OneResponse |
delete(Client client,
int id)
Deletes a security group from OpenNebula.
|
OneResponse |
info()
Loads the xml representation of the security group.
|
static OneResponse |
info(Client client,
int id)
Retrieves the information of the given security group
|
static OneResponse |
rename(Client client,
int id,
java.lang.String name)
Renames this security group
|
OneResponse |
rename(java.lang.String name)
Renames this security group
|
static OneResponse |
update(Client client,
int id,
java.lang.String new_template,
boolean append)
Replaces the security group template contents.
|
OneResponse |
update(java.lang.String new_template)
Replaces the security group template contents.
|
OneResponse |
update(java.lang.String new_template,
boolean append)
Replaces the security group template contents.
|
public SecurityGroup(int id, Client client)
id
- The security group id.client
- XML-RPC Client.protected SecurityGroup(org.w3c.dom.Node xmlElement, Client client)
PoolElement
public static OneResponse allocate(Client client, java.lang.String description)
client
- XML-RPC Client.description
- A string containing the template
of the security group.public static OneResponse info(Client client, int id)
client
- XML-RPC Client.id
- the id for the security group to
retrieve the information from.public static OneResponse delete(Client client, int id)
client
- XML-RPC Client.id
- The id of the target security group.public static OneResponse chown(Client client, int id, int uid, int gid)
client
- XML-RPC Client.id
- The id of the target security group.uid
- The new owner user ID. Set it to -1 to leave the current one.gid
- The new group ID. Set it to -1 to leave the current one.public static OneResponse chmod(Client client, int id, int owner_u, int owner_m, int owner_a, int group_u, int group_m, int group_a, int other_u, int other_m, int other_a)
client
- XML-RPC Client.id
- The id of the target security group.owner_u
- 1 to allow, 0 deny, -1 do not changeowner_m
- 1 to allow, 0 deny, -1 do not changeowner_a
- 1 to allow, 0 deny, -1 do not changegroup_u
- 1 to allow, 0 deny, -1 do not changegroup_m
- 1 to allow, 0 deny, -1 do not changegroup_a
- 1 to allow, 0 deny, -1 do not changeother_u
- 1 to allow, 0 deny, -1 do not changeother_m
- 1 to allow, 0 deny, -1 do not changeother_a
- 1 to allow, 0 deny, -1 do not changepublic static OneResponse chmod(Client client, int id, java.lang.String octet)
client
- XML-RPC Client.id
- The id of the target object.octet
- Permissions octed , e.g. 640public static OneResponse chmod(Client client, int id, int octet)
client
- XML-RPC Client.id
- The id of the target object.octet
- Permissions octed , e.g. 640public static OneResponse update(Client client, int id, java.lang.String new_template, boolean append)
client
- XML-RPC Client.id
- The id of the target security group we want to modify.new_template
- New template contents.append
- True to append new attributes instead of replace the whole templatepublic static OneResponse clone(Client client, int id, java.lang.String name)
client
- XML-RPC Client.id
- The id of the target security group.name
- Name for the new template.public static OneResponse rename(Client client, int id, java.lang.String name)
client
- XML-RPC Client.id
- The id of the target security group.name
- New name for the security group.public OneResponse info()
info(Client, int)
public OneResponse delete()
public OneResponse chown(int uid, int gid)
uid
- The new owner user ID. Set it to -1 to leave the current one.gid
- The new group ID. Set it to -1 to leave the current one.public OneResponse chown(int uid)
uid
- The new owner user ID.public OneResponse chgrp(int gid)
gid
- The new group ID.public OneResponse chmod(int owner_u, int owner_m, int owner_a, int group_u, int group_m, int group_a, int other_u, int other_m, int other_a)
owner_u
- 1 to allow, 0 deny, -1 do not changeowner_m
- 1 to allow, 0 deny, -1 do not changeowner_a
- 1 to allow, 0 deny, -1 do not changegroup_u
- 1 to allow, 0 deny, -1 do not changegroup_m
- 1 to allow, 0 deny, -1 do not changegroup_a
- 1 to allow, 0 deny, -1 do not changeother_u
- 1 to allow, 0 deny, -1 do not changeother_m
- 1 to allow, 0 deny, -1 do not changeother_a
- 1 to allow, 0 deny, -1 do not changepublic OneResponse chmod(java.lang.String octet)
octet
- Permissions octed , e.g. 640public OneResponse chmod(int octet)
octet
- Permissions octed , e.g. 640public OneResponse update(java.lang.String new_template)
new_template
- New template contents.public OneResponse update(java.lang.String new_template, boolean append)
new_template
- New template contents.append
- True to append new attributes instead of replace the whole templatepublic OneResponse clone(java.lang.String name)
name
- Name for the new security group.public OneResponse rename(java.lang.String name)
name
- New name for the security group.Visit OpenNebula.org
Copyright 2002-2015 ©
OpenNebula Project (OpenNebula.org), C12G Labs.