public static enum BaasUser.Scope extends java.lang.Enum<BaasUser.Scope>
Enum Constant and Description |
---|
FRIEND
Scope used to access a
JsonObject
whose fields are accessible by the friends of the user |
PRIVATE
Scope used to access a
JsonObject
of user private data |
PUBLIC
Scope used to access a
JsonObject
whose fields are accessible by anyone without authentication |
REGISTERED
Scope used to access a
JsonObject
whose fields are accessible by any registered user. |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
visibility
The actual name of the scope
|
Modifier and Type | Method and Description |
---|---|
static BaasUser.Scope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BaasUser.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaasUser.Scope PRIVATE
JsonObject
of user private datapublic static final BaasUser.Scope FRIEND
JsonObject
whose fields are accessible by the friends of the userpublic static final BaasUser.Scope REGISTERED
JsonObject
whose fields are accessible by any registered user.public static final BaasUser.Scope PUBLIC
JsonObject
whose fields are accessible by anyone without authenticationpublic static BaasUser.Scope[] values()
for (BaasUser.Scope c : BaasUser.Scope.values()) System.out.println(c);
public static BaasUser.Scope valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null