Interface CachedPermissionData

  • All Superinterfaces:
    CachedData

    public interface CachedPermissionData
    extends CachedData
    Holds cached permission lookup data for a specific set of contexts.
    • Method Detail

      • checkPermission

        @NonNull Tristate checkPermission​(@NonNull String permission)
        Gets a permission check result for the given permission node.
        Parameters:
        permission - the permission node
        Returns:
        a tristate result
        Throws:
        NullPointerException - if permission is null
      • invalidateCache

        void invalidateCache()
        Invalidates the underlying permission calculator cache.

        Can be called to allow for an update in defaults.

      • getPermissionMap

        @NonNull @Unmodifiable Map<String,​Boolean> getPermissionMap()
        Gets an immutable copy of the permission map backing the permission calculator
        Returns:
        an immutable set of permissions