| Package | Description |
|---|---|
| me.lucko.luckperms.api | |
| me.lucko.luckperms.api.caching | |
| me.lucko.luckperms.api.context |
| Modifier and Type | Class and Description |
|---|---|
class |
FullySatisfiedContexts
A special instance of
Contexts, which when passed to: |
| Modifier and Type | Method and Description |
|---|---|
static Contexts |
Contexts.allowAll()
Gets the
FullySatisfiedContexts instance. |
default Contexts |
LuckPermsApi.getContextsForPlayer(Object player)
Gets a Contexts instance for the player using the platforms
ContextCalculators. |
static Contexts |
FullySatisfiedContexts.getInstance() |
static Contexts |
Contexts.global()
Returns a 'global' or default contexts instance.
|
static Contexts |
Contexts.of(ContextSet contextSet,
boolean includeNodesSetWithoutServer,
boolean includeNodesSetWithoutWorld,
boolean resolveInheritance,
boolean applyParentsWithoutServer,
boolean applyParentsWithoutWorld,
boolean isOp)
Creates a new
Contexts instance. |
static Contexts |
Contexts.of(ContextSet contextSet,
Set<LookupSetting> settings)
Creates a new
Contexts instance. |
| Modifier and Type | Method and Description |
|---|---|
default Optional<Contexts> |
LuckPermsApi.getContextForUser(User user)
Gets a calculated context instance for the user using the rules of the platform.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Boolean> |
PermissionHolder.exportNodes(Contexts contexts,
boolean lowerCase)
Converts the output of
PermissionHolder.getAllNodesFiltered(Contexts), and expands shorthand permissions. |
SortedSet<LocalizedNode> |
PermissionHolder.getAllNodes(Contexts contexts)
Gets a mutable sorted set of the nodes that this object has and inherits, filtered by context
|
Set<LocalizedNode> |
PermissionHolder.getAllNodesFiltered(Contexts contexts)
Gets a mutable set of the nodes that this object has and inherits, filtered by context.
|
List<LocalizedNode> |
PermissionHolder.resolveInheritances(Contexts contexts)
Recursively resolves this holders permissions.
|
| Modifier and Type | Method and Description |
|---|---|
Contexts |
MetaContexts.getContexts() |
Contexts |
CachedDataContainer.getContexts()
Gets the contexts this container is holding data for.
|
| Modifier and Type | Method and Description |
|---|---|
MetaData |
CachedData.calculateMeta(Contexts contexts)
Calculates meta data, bypassing the cache.
|
PermissionData |
CachedData.calculatePermissions(Contexts contexts)
Calculates permission data, bypassing the cache.
|
MetaData |
CachedData.getMetaData(Contexts contexts)
Gets MetaData from the cache, given a specified context.
|
PermissionData |
CachedData.getPermissionData(Contexts contexts)
Gets PermissionData from the cache, given a specified context.
|
void |
CachedData.invalidateMeta(Contexts contexts)
|
void |
CachedData.invalidatePermissions(Contexts contexts)
Invalidates any cached
PermissionData instances mapped to the given
Contexts. |
static MetaContexts |
MetaContexts.of(Contexts contexts,
MetaStackDefinition prefixStackDefinition,
MetaStackDefinition suffixStackDefinition)
Creates a new meta contexts instance
|
void |
CachedData.preCalculate(Contexts contexts)
Pre-calculates and caches
PermissionData and MetaData
instances for a given context. |
void |
CachedData.recalculateMeta(Contexts contexts)
(Re)calculates meta data for a given context.
|
void |
CachedData.recalculatePermissions(Contexts contexts)
(Re)calculates permission data for a given context.
|
CompletableFuture<? extends MetaData> |
CachedData.reloadMeta(Contexts contexts)
(Re)loads meta data for a given context.
|
CompletableFuture<? extends PermissionData> |
CachedData.reloadPermissions(Contexts contexts)
(Re)loads permission data for a given context.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
CachedData.preCalculate(Set<Contexts> contexts)
Pre-calculates and caches
PermissionData and MetaData
instances for the given contexts. |
| Constructor and Description |
|---|
MetaContexts(Contexts contexts,
MetaStackDefinition prefixStackDefinition,
MetaStackDefinition suffixStackDefinition)
Creates a new meta contexts instance
|
| Modifier and Type | Method and Description |
|---|---|
Contexts |
ContextManager.formContexts(ImmutableContextSet contextSet)
Forms a
Contexts instance from an ImmutableContextSet. |
Contexts |
ContextManager.formContexts(Object subject,
ImmutableContextSet contextSet)
Forms a
Contexts instance from an ImmutableContextSet. |
Contexts |
ContextManager.getApplicableContexts(Object subject)
Queries the ContextManager for current context values for the subject.
|
Contexts |
ContextManager.getStaticContexts()
Gets the contexts from the static calculators in this manager.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Contexts> |
ContextManager.lookupApplicableContexts(User user)
Queries the ContextManager for current context values for the given User.
|
Copyright © 2018. All rights reserved.