Interface PermissionProcessor
- All Known Implementing Classes:
AbstractOverrideWildcardProcessor, AbstractPermissionProcessor, AbstractSourceBasedProcessor, DirectProcessor, RegexProcessor, SpongeWildcardProcessor, WildcardProcessor
public interface PermissionProcessor
A processor within a
PermissionCalculator.
Processors should not implement any sort of caching. This is handled in the parent calculator.
-
Method Summary
Modifier and TypeMethodDescriptionhasPermission(TristateResult prev, String permission) Returns the permission value determined by this calculator.default voidCalled after the parent calculator has been invalidateddefault voidrefresh()Called after a change has been made to the source mapdefault voidSets the source permissions which should be used by this processor
-
Method Details
-
hasPermission
Returns the permission value determined by this calculator.- Parameters:
prev- the result of the previous calculator in the chainpermission- the permission- Returns:
- a tristate
-
setSource
-
refresh
default void refresh()Called after a change has been made to the source map -
invalidate
default void invalidate()Called after the parent calculator has been invalidated
-