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
ConstructorsConstructorDescriptionCreateScheduleActionServiceImpl(EntityExplorerActionSelectionService selectionService, RuleScheduleReservationService ruleScheduleReservationService, QueryBuilderFactory queryBuilderFactory, Context context, ClientQuestionService clientQuestionService, TextResources textResources) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.checks that the selected Events have a Rule_schedule relatedvoidgenerateReservations(EntityExplorerActionSelection selection, CreateScheduleActionService.RuleScheduleData data) Deprecated.calculates start date from given date and and Events and gathersOfftime_eventto pass them toRuleScheduleReservationService.generateReservations(Entity, LocalDate, Iterable)start date is calculated from the latest date of: -CreateScheduleActionService.RuleScheduleData.getStartDate()- thedate_fromof the firstReservationfrom eachCreateScheduleActionService.RuleScheduleData.getStartEventKeys()- thedate_rillof the lastReservationfrom eachCreateScheduleActionService.RuleScheduleData.getEndEventKeys()Offtime_events are gathered fromCreateScheduleActionService.RuleScheduleData.getCalendarKeys()and the relatedRule_scheduleevent
-
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:CreateScheduleActionServicechecks that the selected Events have a Rule_schedule related- Specified by:
checkIfRuleScheduleExistsin interfaceCreateScheduleActionService- Parameters:
selection- the selected events
-
generateReservations
public void generateReservations(EntityExplorerActionSelection selection, CreateScheduleActionService.RuleScheduleData data) Deprecated.Description copied from interface:CreateScheduleActionServicecalculates start date from given date and and Events and gathersOfftime_eventto pass them toRuleScheduleReservationService.generateReservations(Entity, LocalDate, Iterable)start date is calculated from the latest date of: -CreateScheduleActionService.RuleScheduleData.getStartDate()- thedate_fromof the firstReservationfrom eachCreateScheduleActionService.RuleScheduleData.getStartEventKeys()- thedate_rillof the lastReservationfrom eachCreateScheduleActionService.RuleScheduleData.getEndEventKeys()Offtime_events are gathered fromCreateScheduleActionService.RuleScheduleData.getCalendarKeys()and the relatedRule_scheduleevent- Specified by:
generateReservationsin interfaceCreateScheduleActionService- Parameters:
selection- the selected Eventsdata- the bean containing start date, event keys and calendars
-