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 Summary
Modifier and TypeMethodDescriptionintclear(int groupId) @NotNull Optional<GroupColor> findGroupColor(int groupId, int typeId) @NotNull @Unmodifiable List<GroupColor> @NotNull @Unmodifiable List<GroupColor> findGroupColors(int groupId) static @NotNull GroupColorProviderof(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval) voidintremove(int groupId, int typeId) @NotNull Optional<GroupColor> @NotNull Optional<GroupColor> upsert(@NotNull GroupColor groupColor, int executorId)
-
Method Details
-
refreshCache
void refreshCache() -
findGroupColor
-
findGroupColors
-
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)
-