Class CalendarEventLabelReservationTask
java.lang.Object
ch.tocco.nice2.optional.reservation.impl.contributions.calendareventlabel.CalendarEventLabelReservationTask
- All Implemented Interfaces:
- CalendarEventLabelTask,- OptionalTask<Entity,,- String> - PersistTask<Entity,- String> 
@Component
public class CalendarEventLabelReservationTask
extends Object
implements CalendarEventLabelTask
this task resolves to a 
Reservation and Event
 and returns a label "Event.abbreviation / Event.label / Reservation.label" if the
 event is not set, the reservation has no label or the event has no abbreviation
 the missing part is left out.
 if all parts are missing (no event and no reservation label) this
 task will not return a label.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@Nullable StringdoRun(Entity calendarEvent, CommandContext commandContext) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTaskrunMethods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTaskandThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
- 
Constructor Details- 
CalendarEventLabelReservationTaskpublic CalendarEventLabelReservationTask()
 
- 
- 
Method Details- 
doRun- Specified by:
- doRunin interface- OptionalTask<Entity,- String> 
 
 
-