Interface PermissionProvider
public interface PermissionProvider
-
Method Summary
Modifier and TypeMethodDescriptionintclear(@NotNull PermissionTarget target) @NotNull Optional<Permission> findPermission(@NotNull PermissionTarget target, @NotNull String permission) @NotNull @Unmodifiable List<Permission> findPermissions(@NotNull PermissionTarget target) intstatic @NotNull PermissionProviderof(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval) voidintremove(@NotNull PermissionTarget target, @NotNull String permission) @NotNull Optional<Permission> upsert(@NotNull PermissionTarget target, @NotNull String permission, long duration, int executorId)
-
Method Details
-
refreshCache
void refreshCache() -
findPermission
@NotNull @NotNull Optional<Permission> findPermission(@NotNull @NotNull PermissionTarget target, @NotNull @NotNull String permission) -
findPermissions
@NotNull @NotNull @Unmodifiable List<Permission> findPermissions(@NotNull @NotNull PermissionTarget target) -
upsert
@NotNull @NotNull Optional<Permission> upsert(@NotNull @NotNull PermissionTarget target, @NotNull @NotNull String permission, long duration, int executorId) -
remove
-
clear
-
loadExpired
int loadExpired() -
of
@Internal @NotNull static @NotNull PermissionProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)
-