Interface DateRegistrationPropagationActionService

All Known Implementing Classes:
DateRegistrationPropagationActionServiceImpl

public interface DateRegistrationPropagationActionService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    if the selected Event has no related Reservations or Registrations or the Registration_propagation_status is "manually" an TextInformationException is thrown
    load(EntityExplorerActionSelection selection, String excludedRegistrations)
    loads the related Registrations into a Map<String, String> with the PrimaryKey as key and the label ({DefaultDisplay of User} / {earliest Reservation_registration} - {latest Reservation_registration ({number of Reservation_registrations})) as the value
    void
    save(org.joda.time.LocalDate from, @Nullable org.joda.time.LocalDate to, @Nullable Integer amount, String[] registrations, EntityExplorerActionSelection selection)
    creates for each selected Registration Reservation_registration Entities starting on the from date and continue to the to-date if it is set.
  • Method Details

    • checkEvent

      void checkEvent(EntityExplorerActionSelection selection)
      if the selected Event has no related Reservations or Registrations or the Registration_propagation_status is "manually" an TextInformationException is thrown
      Parameters:
      selection - the selected Event Entity
    • load

      loads the related Registrations into a Map<String, String> with the PrimaryKey as key and the label ({DefaultDisplay of User} / {earliest Reservation_registration} - {latest Reservation_registration ({number of Reservation_registrations})) as the value
      Parameters:
      selection - the selected Event Entity
      Returns:
      a List of the related Registrations
      Throws:
      PersistException
      RpcExecutionException
    • save

      void save(org.joda.time.LocalDate from, @Nullable @Nullable org.joda.time.LocalDate to, @Nullable @Nullable Integer amount, String[] registrations, EntityExplorerActionSelection selection)
      creates for each selected Registration Reservation_registration Entities starting on the from date and continue to the to-date if it is set. If the amount field is set, it creates this amount of Reservation_registrations for each Registration
      Parameters:
      from - the date of the earliest Reservation
      to - the date of the last Reservation
      amount - the amount of Reservation_registration to create from the start
      registrations - the selected Registration keys
      selection - the selected Event Entity