Enum Class Acl.Scope

Object
Enum<Acl.Scope>
akka.javasdk.annotations.Acl.Scope
All Implemented Interfaces:
Serializable, Comparable<Acl.Scope>, Constable
Enclosing class:
Acl

public static enum Acl.Scope extends Enum<Acl.Scope>
Where a service matched by Acl.Matcher.service() is deployed.
  • Enum Constant Details

    • LOCAL

      public static final Acl.Scope LOCAL
      A service in the same project. For a service deployed as part of a platform service, a service in the same platform service.
    • PARENT_PROJECT

      public static final Acl.Scope PARENT_PROJECT
      A service in the project that the platform service is enabled in. Only valid for a service deployed as part of a platform service. A deployed user service fails at start with such a rule.

      The rule never matches in dev mode, in the test kit or in a standalone deployment, where ACL checks are on by default. To call such a method there, disable ACL checks with akka.javasdk.dev-mode.acl.enabled = false or TestKit.Settings.withAclDisabled(), or add a LOCAL rule with the same service name. A LOCAL rule also admits a service with that name in the same platform service when deployed.

  • Method Details

    • values

      public static Acl.Scope[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Acl.Scope valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null