ACL

com.loopfor.zookeeper.ACL$
See theACL companion class
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.

Attributes

See also:
Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ACL.type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

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.

Attributes

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

Attributes

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.

Attributes

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

Attributes

An ACL in which Anyone is granted All permissions.

An ACL in which Anyone is granted All permissions.

Attributes

An ACL in which Anyone is granted Read permission only.

An ACL in which Anyone is granted Read permission only.

Attributes

val Create: Int

A permission to create.

A permission to create.

Attributes

An ACL in which the Creator is granted All permissions.

An ACL in which the Creator is granted All permissions.

Attributes

val Delete: Int

A permission to delete.

A permission to delete.

Attributes

val Read: Int

A permission to read.

A permission to read.

Attributes

val Write: Int

A permission to write.

A permission to write.

Attributes