Interface UserExcuseProvider
public interface UserExcuseProvider
-
Method Summary
Modifier and TypeMethodDescription@NotNull Optional<UserExcuse> create(int userId, @NotNull LocalDateTime startAt, @NotNull LocalDateTime endAt, @Nullable String reason, int createdBy) @NotNull @Unmodifiable List<UserExcuse> findAll()@NotNull Optional<UserExcuse> findById(int id) @NotNull @Unmodifiable List<UserExcuse> findByUserId(int userId) static @NotNull UserExcuseProviderof(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval) void@NotNull Optional<UserExcuse> update(int id, @NotNull LocalDateTime startAt, @NotNull LocalDateTime endAt, @Nullable String reason, int changedBy)
-
Method Details
-
refreshCache
void refreshCache() -
findById
-
findByUserId
-
findAll
-
create
@NotNull @NotNull Optional<UserExcuse> create(int userId, @NotNull @NotNull LocalDateTime startAt, @NotNull @NotNull LocalDateTime endAt, @Nullable @Nullable String reason, int createdBy) -
update
@NotNull @NotNull Optional<UserExcuse> update(int id, @NotNull @NotNull LocalDateTime startAt, @NotNull @NotNull LocalDateTime endAt, @Nullable @Nullable String reason, int changedBy) -
of
@Internal @NotNull static @NotNull UserExcuseProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)
-