object ACL extends Serializable
Constructs and deconstructs ACL values.
The permissions assigned to an ACL are constructed by performing a bitwise union of individual permission attributes: Read, Write, Create, Delete, Admin. In addition, the All permission encompasses all of these attributes.
Several commonly used ACL values have been predefined for sake of convenience: AnyoneAll, AnyoneRead, CreatorAll.
- See also
- Alphabetic
- By Inheritance
- ACL
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Admin: Int
A permission to perform administrative functions.
- val All: Int
A composition of all permissions.
A composition of all permissions.
This is equivalent to the bitwise union of the following permissions:
Read | Write | Create | Delete | Admin
- val AnyoneAll: Seq[ACL]
- val AnyoneRead: Seq[ACL]
- val Create: Int
A permission to create.
- val CreatorAll: Seq[ACL]
- val Delete: Int
A permission to delete.
- val Read: Int
A permission to read.
- val Write: Int
A permission to write.
- def apply(s: String): ACL
Constructs a new ACL from the input string
s
.Constructs a new ACL from the input string
s
.- s
a string representing the ACL
- returns
the ACL in
s
if it conforms to the specific syntax
- Exceptions thrown
IllegalArgumentException
ifs
does not conform to the proper syntax- See also
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parse(s: String): Try[ACL]
Parses the ACL in the input string
s
.Parses the ACL in the input string
s
.The syntax of
s
is"scheme:id=[rwcda*]"
, where the following apply:- the
:
delimiter may be omitted if id is not required rwcda*
may be repeated zero or more times
- s
a string representing the ACL
- returns
a
Success
containing the ACL ins
if it conforms to the proper syntax, otherwise aFailure
containing the offending exception
- the
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()