Package alluxio.security.authorization
Class AclEntry.Builder
- java.lang.Object
-
- alluxio.security.authorization.AclEntry.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new builder where type is null, subject is an empty string, and no action is permitted.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.String subject)
Sets subject of this entry.AclEntry.Builder
setType(AclEntryType type)
Sets the type of the entry.
-
-
-
Method Detail
-
setType
public AclEntry.Builder setType(AclEntryType type)
Sets the type of the entry.- Parameters:
type
- the type of the entry- Returns:
- the builder
-
setSubject
public AclEntry.Builder setSubject(java.lang.String subject)
Sets subject of this entry. If the entry is of type OWNING_USER or NAMED_USER, then the subject is the username. If the entry is of type OWNING_GROUP or NAMED_GROUP, then the subject is the group name. For other types, the subject should be an empty string.- Parameters:
subject
- the subject- Returns:
- the builder
-
setActions
public AclEntry.Builder setActions(AclActions actions)
Sets a copy of actions for this entry.- Parameters:
actions
- the actions to be copied from- Returns:
- the builder
-
addAction
public AclEntry.Builder addAction(AclAction action)
Adds a permitted action.- Parameters:
action
- the permitted action- Returns:
- the builder
-
setIsDefault
public AclEntry.Builder setIsDefault(boolean isDefault)
Set this AclEntry to be for default ACL.- Parameters:
isDefault
- whether this entry is default- Returns:
- the builder
-
-