@Immutable public class Contexts extends Object
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVER_KEY
The context key used to denote the subjects server
|
static String |
WORLD_KEY
The context key used to denote the subjects world
|
| Constructor and Description |
|---|
Contexts(ContextSet context,
boolean includeGlobal,
boolean includeGlobalWorld,
boolean applyGroups,
boolean applyGlobalGroups,
boolean applyGlobalWorldGroups,
boolean op) |
| Modifier and Type | Method and Description |
|---|---|
static Contexts |
allowAll()
Gets the
FullySatisfiedContexts instance. |
boolean |
equals(Object o) |
ContextSet |
getContexts()
Gets the contexts that apply for this lookup
|
static Contexts |
global()
A contexts instance with no defined context.
|
int |
hashCode() |
boolean |
isApplyGlobalGroups()
Gets if global or non server specific group memberships should be applied
|
boolean |
isApplyGlobalWorldGroups()
Gets if global or non world specific group memberships should be applied
|
boolean |
isApplyGroups()
Gets if parent groups should be applied
|
boolean |
isIncludeGlobal()
Gets if global or non server specific nodes should be applied
|
boolean |
isIncludeGlobalWorld()
Gets if global or non world specific nodes should be applied
|
boolean |
isOp()
Gets if the target subject is OP.
|
static Contexts |
of(ContextSet context,
boolean includeGlobal,
boolean includeGlobalWorld,
boolean applyGroups,
boolean applyGlobalGroups,
boolean applyGlobalWorldGroups,
boolean op) |
String |
toString() |
public static final String SERVER_KEY
public static final String WORLD_KEY
public Contexts(@Nonnull ContextSet context, boolean includeGlobal, boolean includeGlobalWorld, boolean applyGroups, boolean applyGlobalGroups, boolean applyGlobalWorldGroups, boolean op)
@Nonnull public static Contexts allowAll()
FullySatisfiedContexts instance.@Nonnull public static Contexts global()
@Nonnull public static Contexts of(@Nonnull ContextSet context, boolean includeGlobal, boolean includeGlobalWorld, boolean applyGroups, boolean applyGlobalGroups, boolean applyGlobalWorldGroups, boolean op)
@Nonnull public ContextSet getContexts()
public boolean isOp()
public boolean isIncludeGlobal()
public boolean isIncludeGlobalWorld()
public boolean isApplyGroups()
public boolean isApplyGlobalGroups()
public boolean isApplyGlobalWorldGroups()
Copyright © 2018. All rights reserved.