Class GroupColorProviderImpl
java.lang.Object
de.murmelmeister.murmelapi.group.color.GroupColorProviderImpl
- All Implemented Interfaces:
GroupColorProvider
The GroupColorProvider class provides methods to manage group colors in the database.
It allows creating, deleting, and updating group colors, as well as retrieving their properties.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RefreshTypeprivate final GroupColorCacheprivate final de.murmelmeister.library.database.Databaseprivate final RefreshTypeprivate static final String -
Constructor Summary
ConstructorsConstructorDescriptionGroupColorProviderImpl(de.murmelmeister.library.database.Database database, Long fetchLimit, long cacheCapacity, Duration refreshInterval) -
Method Summary
Modifier and TypeMethodDescriptionintclear(int groupId) voidgetGroupColor(int groupId, int typeId) getGroupColors(int groupId) voidintremove(int groupId, int typeId) static voidsetup(de.murmelmeister.library.database.Database database)
-
Field Details
-
TABLE_NAME
- See Also:
-
database
private final de.murmelmeister.library.database.Database database -
cache
-
all
-
single
-
-
Constructor Details
-
GroupColorProviderImpl
-
-
Method Details
-
setup
public static void setup(de.murmelmeister.library.database.Database database) -
closeCache
public void closeCache()- Specified by:
closeCachein interfaceGroupColorProvider
-
refreshCache
public void refreshCache()- Specified by:
refreshCachein interfaceGroupColorProvider
-
getGroupColor
- Specified by:
getGroupColorin interfaceGroupColorProvider
-
getGroupColors
- Specified by:
getGroupColorsin interfaceGroupColorProvider
-
getGroupColors
- Specified by:
getGroupColorsin interfaceGroupColorProvider
-
add
- Specified by:
addin interfaceGroupColorProvider
-
remove
public int remove(int groupId, int typeId) - Specified by:
removein interfaceGroupColorProvider
-
clear
public int clear(int groupId) - Specified by:
clearin interfaceGroupColorProvider
-
update
- Specified by:
updatein interfaceGroupColorProvider
-