AclEntry.Builder
Stay organized with collections
Save and categorize content based on your preferences.
A builder of AclEntry
objects.
A Builder
object is obtained by invoking one of the newBuilder
methods defined by the AclEntry
class.
Builder objects are mutable and are not safe for use by multiple
concurrent threads without appropriate synchronization.
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long timeout)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
Public Methods
Constructs an AclEntry
from the components of this builder.
The type and who components are required to have been set in order
to construct an AclEntry
.
Sets the flags component of this builder. On return, the flags
component of this builder is a copy of the given set.
Parameters
flags |
the flags component |
Sets the flags component of this builder. On return, the flags
component of this builder is a copy of the flags in the given
array.
Parameters
flags |
the flags component |
Sets the permissions component of this builder. On return, the
permissions component of this builder is a copy of the given set.
Parameters
perms |
the permissions component |
Sets the permissions component of this builder. On return, the
permissions component of this builder is a copy of the permissions in
the given array.
Parameters
perms |
the permissions component |
Sets the principal component of this builder.
Parameters
who |
the principal component |
Sets the type component of this builder.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eAclEntry.Builder\u003c/code\u003e objects are used to construct \u003ccode\u003eAclEntry\u003c/code\u003e objects, which define access control rules for files and directories.\u003c/p\u003e\n"],["\u003cp\u003eYou can set permissions, flags, principal, and type using the builder's methods before building the final \u003ccode\u003eAclEntry\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAclEntry.Builder\u003c/code\u003e is not thread-safe and requires synchronization for concurrent use.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method creates an \u003ccode\u003eAclEntry\u003c/code\u003e instance but requires the type and principal components to have been set beforehand.\u003c/p\u003e\n"],["\u003cp\u003eBuilder methods like \u003ccode\u003esetFlags\u003c/code\u003e and \u003ccode\u003esetPermissions\u003c/code\u003e accept sets or arrays of corresponding types to configure the \u003ccode\u003eAclEntry\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `AclEntry.Builder` class facilitates the creation of `AclEntry` objects. Key actions include setting the builder's components: `setFlags`, `setPermissions`, `setPrincipal`, and `setType`. The `build()` method constructs an `AclEntry` from these components, requiring the type and principal to be set beforehand. The builder is mutable and not thread-safe. It copies given sets or arrays when setting flags and permissions. Inherited methods are available from the Object class.\n"],null,[]]