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
ConstructorsConstructorDescriptionRuleScheduleReservationServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, EntityDefaultValueService entityDefaultValueService, TimezoneResolverService timezoneResolverService) -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateReservations(Entity event, @Nullable org.joda.time.LocalDate startDate, Iterable<Entity> offTimeEvents) generatesReservationentities based onRule_scheduleandOfftime_eventReservations are not generated during Offtime_events, but are rather moved forwards to the next valid point in timevoidsetRelationsToTransferFromRuleReservation(List<String> relationsToTransferFromRuleReservation) voidsetRuleScheduleCreateReservationContributions(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:RuleScheduleReservationServicegeneratesReservationentities based onRule_scheduleandOfftime_eventReservations are not generated during Offtime_events, but are rather moved forwards to the next valid point in time- Specified by:
generateReservationsin 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)
-