@NotThreadSafe public final class AclActions extends Object implements Serializable
AccessControlList
.Constructor and Description |
---|
AclActions()
Creates a new instance where no action is permitted.
|
AclActions(AclActions actions)
Creates a copy of actions.
|
AclActions(Set<AclAction> actions)
Creats a new instance with initial permitted actions.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AclAction action)
Adds a permitted action.
|
boolean |
contains(AclAction action) |
boolean |
equals(Object o) |
Set<AclAction> |
getActions() |
int |
hashCode() |
void |
mask(AclActions actions)
Mask the actions.
|
void |
merge(AclActions actions)
Merges the actions.
|
String |
toCliString() |
Mode.Bits |
toModeBits() |
String |
toString() |
void |
updateByModeBits(Mode.Bits bits)
Updates permitted actions based on the mode bits.
|
public AclActions()
public AclActions(AclActions actions)
actions
- the actions to be copied frompublic void updateByModeBits(Mode.Bits bits)
bits
- the mode bitspublic void add(AclAction action)
action
- the permitted actionpublic void merge(AclActions actions)
actions
- the actions to be merged frompublic void mask(AclActions actions)
actions
- the acl maskpublic boolean contains(AclAction action)
action
- the action to be checkedpublic String toCliString()
Copyright © 2023. All Rights Reserved.