Constructor and Description |
---|
Builder()
Creates a new builder where type is null, subject is an empty string, and no action is
permitted.
|
Modifier and Type | Method and Description |
---|---|
AclEntry.Builder |
addAction(AclAction action)
Adds a permitted action.
|
AclEntry |
build() |
AclEntry.Builder |
setActions(AclActions actions)
Sets a copy of actions for this entry.
|
AclEntry.Builder |
setIsDefault(boolean isDefault)
Set this AclEntry to be for default ACL.
|
AclEntry.Builder |
setSubject(String subject)
Sets subject of this entry.
|
AclEntry.Builder |
setType(AclEntryType type)
Sets the type of the entry.
|
public Builder()
public AclEntry.Builder setType(AclEntryType type)
type
- the type of the entrypublic AclEntry.Builder setSubject(String subject)
subject
- the subjectpublic AclEntry.Builder setActions(AclActions actions)
actions
- the actions to be copied frompublic AclEntry.Builder addAction(AclAction action)
action
- the permitted actionpublic AclEntry.Builder setIsDefault(boolean isDefault)
isDefault
- whether this entry is defaultpublic AclEntry build()
AclEntry
IllegalStateException
- if type if null, or if type is either NAMED_USER or NAMED_GROUP
while subject is emptyCopyright © 2023. All Rights Reserved.