public enum EWebScope extends Enum<EWebScope>
| Enum Constant and Description |
|---|
GLOBAL
The global scope.
|
REQUEST
The request scope.
|
SESSION
The session scope
|
| Modifier and Type | Method and Description |
|---|---|
IWebScope |
getScope() |
IWebScope |
getScope(boolean bCreateIfNotExisting)
Get the current web scope object of this enum entry.
|
static IWebScope |
getScope(EWebScope eWebScope,
boolean bCreateIfNotExisting)
Resolve the currently matching web scope of the given
EWebScope
value. |
static EWebScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EWebScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EWebScope GLOBAL
public static final EWebScope SESSION
public static final EWebScope REQUEST
public static EWebScope[] values()
for (EWebScope c : EWebScope.values()) System.out.println(c);
public static EWebScope 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 null@Nonnull public IWebScope getScope()
IWebScope object for this enum. Aequivalent to
getScope(true) and therefore never null.@Nullable public IWebScope getScope(boolean bCreateIfNotExisting)
bCreateIfNotExisting - if true the scope is created if it is not existing.null if the scope is not existing yet and should not
be created. Always non-null if the parameter is
true.@Nullable public static IWebScope getScope(@Nonnull EWebScope eWebScope, boolean bCreateIfNotExisting)
EWebScope
value.eWebScope - The web scope to resolve to a real scope. May not be
null.bCreateIfNotExisting - if false and the scope is not existing,
null will be returned. This parameter is only used in
application, session and session application scopes.IWebScope or null if
bCreateIfNotExisting is false and no scope is presentIllegalArgumentException - If an illegal enumeration value is passed.Copyright © 2014–2019 Philip Helger. All rights reserved.