Interface CalendarEventColorService

All Known Implementing Classes:
CalendarEventColorServiceImpl

public interface CalendarEventColorService
  • Method Summary

    Modifier and Type
    Method
    Description
    getColor(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 of CalendarEventContribution and returns the first one to actually find a non-null, non-empty value
     
  • Method Details

    • getColor

      String getColor(CalendarEventContribution contribution, @Nullable @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 of CalendarEventContribution and returns the first one to actually find a non-null, non-empty value
      Parameters:
      contribution - the contribution to use as fallback
      calendarEvent - the Calendar_event to find the color for, fallback is used if null
      Returns:
      the color we found in no particular format
    • getColorRelations

      Set<String> getColorRelations()
      Returns:
      a set of relations that should be checked for colors