Class CreateCalendarEventTaskFactoryImpl
java.lang.Object
ch.tocco.nice2.optional.calendar.impl.entitylistener.calendarevent.CreateCalendarEventTaskFactoryImpl
- All Implemented Interfaces:
CreateCalendarEventTaskFactory
@Component
public class CreateCalendarEventTaskFactoryImpl
extends Object
implements CreateCalendarEventTaskFactory
-
Constructor Summary
ConstructorDescriptionCreateCalendarEventTaskFactoryImpl
(EntityDefaultValueService defaultValueService, CalendarEventLabelService calendarEventLabelService, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptiongetTask
(Entity calendarEventData, Entity calendar, CalendarEventContribution contribution) get a task to create Calendar_event entities with the source being the same as the data entitygetTask
(Entity calendarEventData, Entity calendarSourceData, Entity calendar, CalendarEventContribution contribution) get a task to create Calendar_event entities
-
Constructor Details
-
CreateCalendarEventTaskFactoryImpl
public CreateCalendarEventTaskFactoryImpl(EntityDefaultValueService defaultValueService, CalendarEventLabelService calendarEventLabelService, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
getTask
public CreateCalendarEventTask getTask(Entity calendarEventData, Entity calendar, CalendarEventContribution contribution) Description copied from interface:CreateCalendarEventTaskFactory
get a task to create Calendar_event entities with the source being the same as the data entity- Specified by:
getTask
in interfaceCreateCalendarEventTaskFactory
- Parameters:
calendarEventData
- the entity that all data for the Calendar_event gets pulled fromcalendar
- the calendar the new Calendar_event gets related tocontribution
- the contribution to use- Returns:
- the created Calendar_event
-
getTask
public CreateCalendarEventTask getTask(Entity calendarEventData, Entity calendarSourceData, Entity calendar, CalendarEventContribution contribution) Description copied from interface:CreateCalendarEventTaskFactory
get a task to create Calendar_event entities- Specified by:
getTask
in interfaceCreateCalendarEventTaskFactory
- Parameters:
calendarEventData
- the entity that all data for the Calendar_event gets pulled fromcalendarSourceData
- the entity the new Calendar_event gets related tocalendar
- the calendar the new Calendar_event gets related tocontribution
- the contribution to use- Returns:
- the created Calendar_event
-