public class ACLAugment extends Object
| Constructor and Description |
|---|
ACLAugment(org.apache.zookeeper.data.ACL initACL)
Construct ACLAugment from ACL object.
|
ACLAugment(String stringACL)
Construct ACLAugment from "scheme:id:permissions" string.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static List<ACLAugment> |
generateACLAugmentList(List<org.apache.zookeeper.data.ACL> aclList)
Return List of ACLAugment elements from a list from ACL.
|
static String |
generateACLStringList(List<org.apache.zookeeper.data.ACL> aclList)
Create String from ACL list.
|
org.apache.zookeeper.data.ACL |
getACL()
Get the ACL object.
|
String |
getId()
Get id field of ACL.
|
int |
getPerms()
Get perm field of ACL.
|
String |
getScheme()
Get scheme field of ACL.
|
String |
getStringFromACL()
Get ACL element in scheme:id:permissions String format.
|
boolean |
hasAdmin()
Check if this ACL provides ADMIN permission.
|
boolean |
hasCreate()
Check if this ACL provides CREATE permission.
|
boolean |
hasDelete()
Check if this ACL provides DELETE permission.
|
int |
hashCode() |
boolean |
hasRead()
Check if this ACL provides READ permission.
|
boolean |
hasWrite()
Check if this ACL provides WRITE permission.
|
public ACLAugment(org.apache.zookeeper.data.ACL initACL)
initACL - ZooKeeper ACL object.public ACLAugment(String stringACL) throws IllegalArgumentException
stringACL - String in scheme:id:permissions formatIllegalArgumentExceptionpublic boolean hasRead()
public boolean hasWrite()
public boolean hasCreate()
public boolean hasDelete()
public boolean hasAdmin()
public String getScheme()
public String getId()
public int getPerms()
public org.apache.zookeeper.data.ACL getACL()
public String getStringFromACL()
public static List<ACLAugment> generateACLAugmentList(List<org.apache.zookeeper.data.ACL> aclList)
aclList - ACL List from ZooKeeperpublic static String generateACLStringList(List<org.apache.zookeeper.data.ACL> aclList)
aclList - protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.