ACL

object ACL

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:
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
ACL.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(s: String): ACL

Constructs a new ACL from the input string s.

Constructs a new ACL from the input string s.

Value parameters:
s

a string representing the ACL

Returns:

the ACL in s if it conforms to the specific syntax

Throws:
IllegalArgumentException

if s does not conform to the proper syntax

See also:
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
Value parameters:
s

a string representing the ACL

Returns:

a Success containing the ACL in s if it conforms to the proper syntax, otherwise a Failure containing the offending exception

Concrete fields

val Admin: Int

A permission to perform administrative functions.

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

An ACL in which Anyone is granted All permissions.

An ACL in which Anyone is granted All permissions.

An ACL in which Anyone is granted Read permission only.

An ACL in which Anyone is granted Read permission only.

val Create: Int

A permission to create.

A permission to create.

An ACL in which the Creator is granted All permissions.

An ACL in which the Creator is granted All permissions.

val Delete: Int

A permission to delete.

A permission to delete.

val Read: Int

A permission to read.

A permission to read.

val Write: Int

A permission to write.

A permission to write.