Interface GroupColorProvider


public interface GroupColorProvider
Represents a color associated with a group in the MurmelAPI.

This interface is used to define a color that can be managed by the MurmelAPI. It is a marker interface and does not contain any methods.

The GroupColorProviderImpl interface extends this interface to provide additional functionality.

  • Method Details

    • refreshCache

      void refreshCache()
    • findGroupColor

      @NotNull @NotNull Optional<GroupColor> findGroupColor(int groupId, int typeId)
    • findGroupColors

      @NotNull @NotNull @Unmodifiable List<GroupColor> findGroupColors(int groupId)
    • findGroupColors

      @NotNull @NotNull @Unmodifiable List<GroupColor> findGroupColors()
    • upsert

      @NotNull @NotNull Optional<GroupColor> upsert(int groupId, int typeId, @NotNull @NotNull String value, int executorId)
    • upsert

      @NotNull @NotNull Optional<GroupColor> upsert(@NotNull @NotNull GroupColor groupColor, int executorId)
    • remove

      int remove(int groupId, int typeId)
    • clear

      int clear(int groupId)
    • of

      @Internal @NotNull static @NotNull GroupColorProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)