@NotThreadSafe public class ExtendedACLEntries extends Object
Modifier and Type | Field and Description |
---|---|
protected AclActions |
mMaskActions |
protected Map<String,AclActions> |
mNamedGroupActions |
protected Map<String,AclActions> |
mNamedUserActions |
Constructor and Description |
---|
ExtendedACLEntries()
Creates an empty extended ACL.
|
ExtendedACLEntries(ExtendedACLEntries other)
Creates a copy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<AclEntry> |
getEntries()
Returns a list of
AclEntry which represent this ACL instance. |
AclActions |
getMask() |
AclActions |
getNamedGroup(String group) |
Map<String,AclActions> |
getNamedGroupActions() |
AclActions |
getNamedUser(String user) |
Map<String,AclActions> |
getNamedUserActions() |
boolean |
hasExtended() |
int |
hashCode() |
void |
removeEntry(AclEntry entry)
Removes the specified entry.
|
void |
setEntry(AclEntry entry)
Sets an entry into the access control list.
|
void |
updateMask(AclActions groupActions)
Update the mask to be the union of owning group entry, named user entry and named group entry.
|
protected Map<String,AclActions> mNamedUserActions
protected Map<String,AclActions> mNamedGroupActions
protected AclActions mMaskActions
public ExtendedACLEntries()
public ExtendedACLEntries(ExtendedACLEntries other)
other
- the object to copypublic List<AclEntry> getEntries()
AclEntry
which represent this ACL instance. The mask will only be
included if extended ACL entries exist.public Map<String,AclActions> getNamedUserActions()
public Map<String,AclActions> getNamedGroupActions()
public boolean hasExtended()
public void removeEntry(AclEntry entry)
entry
- the entry to be removedpublic void setEntry(AclEntry entry)
entry
- the entry to be added or updatedpublic AclActions getNamedUser(String user)
user
- the user to look uppublic AclActions getNamedGroup(String group)
group
- the group to look uppublic AclActions getMask()
public void updateMask(AclActions groupActions)
groupActions
- the group entry to be integrated into the maskCopyright © 2023. All Rights Reserved.