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 Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
doRun
(Entity calendarEvent, CommandContext commandContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
CalendarEventLabelReservationTask
public CalendarEventLabelReservationTask()
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Entity,
String>
-