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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayLabelForCalendarEvent(CalendarEvent calendarEvent) helper method that callsCalendarEventLabelService.getDisplayLabelForCalendarEvent(Entity)with the entity contained in theCalendarEventgetDisplayLabelForCalendarEvent(Entity calendarEvent) run through allCalendarEventLabelContributionuntil 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 stringvoidsetContributions(List<CalendarEventLabelContribution> contributions)
-
Constructor Details
-
CalendarEventLabelServiceImpl
-
-
Method Details
-
getDisplayLabelForCalendarEvent
Description copied from interface:CalendarEventLabelServicerun through allCalendarEventLabelContributionuntil 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:
getDisplayLabelForCalendarEventin 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:CalendarEventLabelServicehelper method that callsCalendarEventLabelService.getDisplayLabelForCalendarEvent(Entity)with the entity contained in theCalendarEvent- Specified by:
getDisplayLabelForCalendarEventin interfaceCalendarEventLabelService- Parameters:
calendarEvent- the calendar event to find a label for- Returns:
- the label that was found, empty string if none were found
-
setContributions
-