Class CreateScheduleActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.ruleschedule.impl.actions.CreateScheduleActionServiceImpl
- All Implemented Interfaces:
CreateScheduleActionService
@Deprecated
public class CreateScheduleActionServiceImpl
extends Object
implements CreateScheduleActionService
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.ruleschedule.impl.actions.CreateScheduleActionService
CreateScheduleActionService.RuleScheduleData
-
Constructor Summary
ConstructorDescriptionCreateScheduleActionServiceImpl
(EntityExplorerActionSelectionService selectionService, RuleScheduleReservationService ruleScheduleReservationService, QueryBuilderFactory queryBuilderFactory, Context context, ClientQuestionService clientQuestionService, TextResources textResources) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.checks that the selected Events have a Rule_schedule relatedvoid
generateReservations
(EntityExplorerActionSelection selection, CreateScheduleActionService.RuleScheduleData data) Deprecated.calculates start date from given date and and Events and gathersOfftime_event
to pass them toRuleScheduleReservationService.generateReservations(Entity, LocalDate, Iterable)
start date is calculated from the latest date of: -CreateScheduleActionService.RuleScheduleData.getStartDate()
- thedate_from
of the firstReservation
from eachCreateScheduleActionService.RuleScheduleData.getStartEventKeys()
- thedate_rill
of the lastReservation
from eachCreateScheduleActionService.RuleScheduleData.getEndEventKeys()
Offtime_events are gathered fromCreateScheduleActionService.RuleScheduleData.getCalendarKeys()
and the relatedRule_schedule
event
-
Constructor Details
-
CreateScheduleActionServiceImpl
public CreateScheduleActionServiceImpl(EntityExplorerActionSelectionService selectionService, RuleScheduleReservationService ruleScheduleReservationService, QueryBuilderFactory queryBuilderFactory, Context context, ClientQuestionService clientQuestionService, TextResources textResources) Deprecated.
-
-
Method Details
-
checkIfRuleScheduleExists
Deprecated.Description copied from interface:CreateScheduleActionService
checks that the selected Events have a Rule_schedule related- Specified by:
checkIfRuleScheduleExists
in interfaceCreateScheduleActionService
- Parameters:
selection
- the selected events
-
generateReservations
public void generateReservations(EntityExplorerActionSelection selection, CreateScheduleActionService.RuleScheduleData data) Deprecated.Description copied from interface:CreateScheduleActionService
calculates start date from given date and and Events and gathersOfftime_event
to pass them toRuleScheduleReservationService.generateReservations(Entity, LocalDate, Iterable)
start date is calculated from the latest date of: -CreateScheduleActionService.RuleScheduleData.getStartDate()
- thedate_from
of the firstReservation
from eachCreateScheduleActionService.RuleScheduleData.getStartEventKeys()
- thedate_rill
of the lastReservation
from eachCreateScheduleActionService.RuleScheduleData.getEndEventKeys()
Offtime_events are gathered fromCreateScheduleActionService.RuleScheduleData.getCalendarKeys()
and the relatedRule_schedule
event- Specified by:
generateReservations
in interfaceCreateScheduleActionService
- Parameters:
selection
- the selected Eventsdata
- the bean containing start date, event keys and calendars
-