Package akka.javasdk.annotations
Enum Class Acl.Scope
- All Implemented Interfaces:
Serializable,Comparable<Acl.Scope>,Constable
- Enclosing class:
Acl
Where a service matched by
Acl.Matcher.service() is deployed.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA service in the same project.A service in the project that the platform service is enabled in. -
Method Summary
-
Enum Constant Details
-
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
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 = falseorTestKit.Settings.withAclDisabled(), or add aLOCALrule with the same service name. ALOCALrule also admits a service with that name in the same platform service when deployed.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-