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
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )