Interface CalendarEventColorService
- All Known Implementing Classes:
CalendarEventColorServiceImpl
public interface CalendarEventColorService
-
Method Summary
Modifier and TypeMethodDescriptiongetColor(CalendarEventContribution contribution, @Nullable Entity calendarEvent) find the color to use for a given Calendar_event entity typically used in conjunction with the scheduler it is recommended to configure hex values as colors, but there isn't any validator yet to ensure correct values to find a color, this service steps through the list ofCalendarEventContributionand returns the first one to actually find a non-null, non-empty value
-
Method Details
-
getColor
find the color to use for a given Calendar_event entity typically used in conjunction with the scheduler it is recommended to configure hex values as colors, but there isn't any validator yet to ensure correct values to find a color, this service steps through the list ofCalendarEventContributionand returns the first one to actually find a non-null, non-empty value- Parameters:
contribution- the contribution to use as fallbackcalendarEvent- the Calendar_event to find the color for, fallback is used if null- Returns:
- the color we found in no particular format
-
getColorRelations
-