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 Details

  • Method Details

    • generateReservations

      public void generateReservations(Entity event, @Nullable @Nullable org.joda.time.LocalDate startDate, Iterable<Entity> offTimeEvents)
      Description copied from interface: RuleScheduleReservationService
      generates Reservation entities based on Rule_schedule and Offtime_event Reservations are not generated during Offtime_events, but are rather moved forwards to the next valid point in time
      Specified by:
      generateReservations in interface RuleScheduleReservationService
      Parameters:
      event - the event to create Reservations for
      startDate - the date to start the Reservations from
      offTimeEvents - the Offtime_events to consider
    • setRelationsToTransferFromRuleReservation

      @Autowired(required=false) public void setRelationsToTransferFromRuleReservation(List<String> relationsToTransferFromRuleReservation)
    • setRuleScheduleCreateReservationContributions

      @Autowired(required=false) public void setRuleScheduleCreateReservationContributions(List<RuleScheduleCreateReservationContribution> contributions)