Class CalendarEventLabelServiceImpl
java.lang.Object
ch.tocco.nice2.optional.calendar.impl.contributions.calendareventlabel.CalendarEventLabelServiceImpl
- All Implemented Interfaces:
CalendarEventLabelService
@Component
public class CalendarEventLabelServiceImpl
extends Object
implements CalendarEventLabelService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDisplayLabelForCalendarEvent
(CalendarEvent calendarEvent) helper method that callsCalendarEventLabelService.getDisplayLabelForCalendarEvent(Entity)
with the entity contained in theCalendarEvent
getDisplayLabelForCalendarEvent
(Entity calendarEvent) run through allCalendarEventLabelContribution
until one of them returns a filled string this method has a default return value of an empty string, but this should never happen because there exists a default contribution that always returns a filled stringvoid
setContributions
(List<CalendarEventLabelContribution> contributions)
-
Constructor Details
-
CalendarEventLabelServiceImpl
-
-
Method Details
-
getDisplayLabelForCalendarEvent
Description copied from interface:CalendarEventLabelService
run through allCalendarEventLabelContribution
until one of them returns a filled string this method has a default return value of an empty string, but this should never happen because there exists a default contribution that always returns a filled string- Specified by:
getDisplayLabelForCalendarEvent
in interfaceCalendarEventLabelService
- Parameters:
calendarEvent
- the calendar event to find a label for- Returns:
- the label that was found, empty string if none were found
-
getDisplayLabelForCalendarEvent
Description copied from interface:CalendarEventLabelService
helper method that callsCalendarEventLabelService.getDisplayLabelForCalendarEvent(Entity)
with the entity contained in theCalendarEvent
- Specified by:
getDisplayLabelForCalendarEvent
in interfaceCalendarEventLabelService
- Parameters:
calendarEvent
- the calendar event to find a label for- Returns:
- the label that was found, empty string if none were found
-
setContributions
-