com.loopfor.zookeeper

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ACL
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val Admin: Int

    A permission to perform administrative functions.

  7. 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
  8. val AnyoneAll: Seq[ACL]

    An ACL in which Anyone is granted All permissions.

  9. val AnyoneRead: Seq[ACL]

    An ACL in which Anyone is granted Read permission only.

  10. val Create: Int

    A permission to create.

  11. val CreatorAll: Seq[ACL]

    An ACL in which the Creator is granted All permissions.

  12. val Delete: Int

    A permission to delete.

  13. val Read: Int

    A permission to read.

  14. val Write: Int

    A permission to write.

  15. 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

    See also

    parse

  16. def apply(scheme: String, id: String, permission: Int): ACL

    Constructs a new ACL using the given identity and permission.

    Constructs a new ACL using the given identity and permission.

    scheme

    a string representing the scheme

    id

    a string representing the id

    permission

    the bitwise union of permissions that apply to the ACL

    returns

    an ACL with the given scheme, id and permission, where scheme and id collectively represent the identity

  17. def apply(id: Id, permission: Int): ACL

    Constructs a new ACL using the given identity and permission.

    Constructs a new ACL using the given identity and permission.

    id

    the identity to which permissions apply

    permission

    the bitwise union of permissions that apply to the ACL

    returns

    an ACL with the given id and permission

  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def parse(s: String): Option[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 scheme and id may be empty and any of rwcda* may be repeated zero or more times.

    s

    a string representing the ACL

    returns

    a Some containing the ACL in s if it conforms to the specified syntax, otherwise None

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. implicit def tupleToIdentity(id: (String, String)): Id

  33. def unapply(acl: ACL): Option[(Id, Int)]

    Used in pattern matching to deconstruct an ACL

    Used in pattern matching to deconstruct an ACL

    acl

    selector value

    returns

    a Some containing id and permission if the selector value is not null, otherwise None

  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped