public enum Context extends Enum<Context>
Enum Constant and Description |
---|
GLOBAL
GLOBAL: Settings should impact all users in the underlying scope.
|
USER
USER: Each user should be able to save his own settings.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets a context Id.
|
Context |
id(String id)
Creates a context with a specified Id.
|
static Context |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Context[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Context GLOBAL
public static final Context USER
public static Context[] values()
for (Context c : Context.values()) System.out.println(c);
public static Context valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Context id(String id)
id
- The Id that is displayed as username.public String getId()
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.