Package com.fauna.client
Class FaunaRole
- java.lang.Object
-
- com.fauna.client.FaunaRole
-
public final class FaunaRole extends java.lang.Object
Built-in roles defined at: docs.fauna.com.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FaunaRole
named(java.lang.String name)
Creates aFaunaRole
with the desired name prepended with@role/
.java.lang.String
toString()
static void
validateRoleName(java.lang.String name)
Validates a role name.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- A
String
representation of theFaunaRole
.
-
validateRoleName
public static void validateRoleName(java.lang.String name)
Validates a role name.- Parameters:
name
- The name of the role to validate.
-
named
public static FaunaRole named(java.lang.String name)
Creates aFaunaRole
with the desired name prepended with@role/
.- Parameters:
name
- The name of the role to use.- Returns:
- A
FaunaRole
instance.
-
-