Interface UserExcuseProvider


public interface UserExcuseProvider
  • Method Details

    • refreshCache

      void refreshCache()
    • findById

      @NotNull @NotNull Optional<UserExcuse> findById(int id)
    • findByUserId

      @NotNull @NotNull @Unmodifiable List<UserExcuse> findByUserId(int userId)
    • findAll

      @NotNull @NotNull @Unmodifiable List<UserExcuse> findAll()
    • create

      @NotNull @NotNull Optional<UserExcuse> create(int userId, @NotNull @NotNull LocalDate startDate, int extraDays, @Nullable @Nullable String reason, int createdBy)
    • update

      @NotNull @NotNull Optional<UserExcuse> update(int id, @NotNull @NotNull LocalDate startDate, int extraDays, @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)