public class PermissionsResolver extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PermissionsResolver.ResolvingMode |
Modifier and Type | Field and Description |
---|---|
List<PermissionsPostProcessor> |
postprocessors |
List<PermissionsPreProcessor> |
preprocessors |
Constructor and Description |
---|
PermissionsResolver() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
hasNormalBestMatch(List<BPPermission> perms,
String perm) |
static Boolean |
hasNormalSequential(List<BPPermission> perms,
String perm) |
Boolean |
hasPerm(List<BPPermission> perms,
String perm) |
static Boolean |
hasRegexBestMatch(List<BPPermission> perms,
String perm) |
static Boolean |
hasRegexSequential(List<BPPermission> perms,
String perm) |
Boolean |
postprocess(String perm,
Boolean result,
Sender s) |
List<BPPermission> |
preprocess(List<BPPermission> perms,
Sender s) |
void |
registerProcessor(PermissionsPostProcessor processor) |
void |
registerProcessor(PermissionsPreProcessor processor) |
static List<BPPermission> |
sortNormalBest(List<BPPermission> perms) |
static List<BPPermission> |
sortRegexBest(List<BPPermission> perms) |
void |
unregisterProcessor(PermissionsPostProcessor processor) |
void |
unregisterProcessor(PermissionsPreProcessor processor) |
public final List<PermissionsPreProcessor> preprocessors
public final List<PermissionsPostProcessor> postprocessors
public void registerProcessor(PermissionsPreProcessor processor)
public void unregisterProcessor(PermissionsPreProcessor processor)
public void registerProcessor(PermissionsPostProcessor processor)
public void unregisterProcessor(PermissionsPostProcessor processor)
public List<BPPermission> preprocess(List<BPPermission> perms, Sender s)
public Boolean hasPerm(List<BPPermission> perms, String perm)
public static Boolean hasNormalSequential(List<BPPermission> perms, String perm)
public static Boolean hasNormalBestMatch(List<BPPermission> perms, String perm)
public static Boolean hasRegexSequential(List<BPPermission> perms, String perm)
public static Boolean hasRegexBestMatch(List<BPPermission> perms, String perm)
public static List<BPPermission> sortNormalBest(List<BPPermission> perms)
public static List<BPPermission> sortRegexBest(List<BPPermission> perms)
Copyright © 2019. All rights reserved.