Class RuleScheduleReservationServiceImpl
java.lang.Object
ch.tocco.nice2.optional.ruleschedule.impl.actions.RuleScheduleReservationServiceImpl
- All Implemented Interfaces:
RuleScheduleReservationService
@Component
public class RuleScheduleReservationServiceImpl
extends Object
implements RuleScheduleReservationService
-
Constructor Summary
ConstructorDescriptionRuleScheduleReservationServiceImpl
(Context context, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, EntityDefaultValueService entityDefaultValueService, TimezoneResolverService timezoneResolverService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateReservations
(Entity event, @Nullable org.joda.time.LocalDate startDate, Iterable<Entity> offTimeEvents) generatesReservation
entities based onRule_schedule
andOfftime_event
Reservations are not generated during Offtime_events, but are rather moved forwards to the next valid point in timevoid
setRelationsToTransferFromRuleReservation
(List<String> relationsToTransferFromRuleReservation) void
setRuleScheduleCreateReservationContributions
(List<RuleScheduleCreateReservationContribution> contributions)
-
Constructor Details
-
RuleScheduleReservationServiceImpl
public RuleScheduleReservationServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, EntityDefaultValueService entityDefaultValueService, TimezoneResolverService timezoneResolverService)
-
-
Method Details
-
generateReservations
public void generateReservations(Entity event, @Nullable @Nullable org.joda.time.LocalDate startDate, Iterable<Entity> offTimeEvents) Description copied from interface:RuleScheduleReservationService
generatesReservation
entities based onRule_schedule
andOfftime_event
Reservations are not generated during Offtime_events, but are rather moved forwards to the next valid point in time- Specified by:
generateReservations
in interfaceRuleScheduleReservationService
- Parameters:
event
- the event to create Reservations forstartDate
- the date to start the Reservations fromoffTimeEvents
- the Offtime_events to consider
-
setRelationsToTransferFromRuleReservation
-
setRuleScheduleCreateReservationContributions
@Autowired(required=false) public void setRuleScheduleCreateReservationContributions(List<RuleScheduleCreateReservationContribution> contributions)
-