public class Acl extends PoolElement
AclPool.getById(int)client, id, xml, xpath| Modifier | Constructor and Description |
|---|---|
protected |
Acl(org.w3c.dom.Node xmlElement,
Client client) |
| Modifier and Type | Method and Description |
|---|---|
static OneResponse |
allocate(Client client,
long user,
long resource,
long rights)
Allocates a new ACl rule in OpenNebula
|
static OneResponse |
allocate(Client client,
java.lang.String rule)
Allocates a new ACl rule in OpenNebula
|
static OneResponse |
allocate(Client client,
java.lang.String user,
java.lang.String resource,
java.lang.String rights)
Allocates a new ACl rule in OpenNebula
|
OneResponse |
delete()
Deletes the ACL rule from OpenNebula.
|
static OneResponse |
delete(Client client,
int id)
Deletes an ACL rule from OpenNebula.
|
static java.lang.String[] |
parseRule(java.lang.String rule)
Parses a rule string, e.g.
|
long |
resource() |
long |
rights() |
java.lang.String |
toString() |
long |
user() |
protected Acl(org.w3c.dom.Node xmlElement, Client client)
PoolElementpublic static OneResponse allocate(Client client, java.lang.String user, java.lang.String resource, java.lang.String rights)
client - XML-RPC Client.user - A string containing a hex number, e.g. 0x100000001resource - A string containing a hex number, e.g. 0x2100000001rights - A string containing a hex number, e.g. 0x10public static OneResponse allocate(Client client, long user, long resource, long rights)
client - XML-RPC Client.user - 64b encoded userresource - 64b encoded userrights - 64b encoded userpublic static OneResponse allocate(Client client, java.lang.String rule) throws RuleParseException
client - XML-RPC Client.rule - a rule string, e.g. "#5 HOST+VM/@12 INFO+CREATE+DELETE"RuleParseException - If the rule syntax is wrong.public static OneResponse delete(Client client, int id)
client - XML-RPC Client.id - The ACL rule id.public OneResponse delete()
delete(Client, int)public long user()
public long resource()
public long rights()
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String[] parseRule(java.lang.String rule)
throws RuleParseException
rule - an ACL rule in string formatRuleParseException - If the rule syntax is wrong.Visit OpenNebula.org
Copyright 2002-2013 ©
OpenNebula Project (OpenNebula.org), C12G Labs.