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