Interface DateRegistrationPropagationActionService
- All Known Implementing Classes:
DateRegistrationPropagationActionServiceImpl
public interface DateRegistrationPropagationActionService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkEvent
(EntityExplorerActionSelection selection) if the selected Event has no related Reservations or Registrations or the Registration_propagation_status is "manually" anTextInformationException
is thrownload
(EntityExplorerActionSelection selection, String excludedRegistrations) loads the related Registrations into aMap<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 valuevoid
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
if the selected Event has no related Reservations or Registrations or the Registration_propagation_status is "manually" anTextInformationException
is thrown- Parameters:
selection
- the selected Event Entity
-
load
List<Map<String,String>> load(EntityExplorerActionSelection selection, String excludedRegistrations) throws PersistException, RpcExecutionException loads the related Registrations into aMap<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 Reservationto
- the date of the last Reservationamount
- the amount of Reservation_registration to create from the startregistrations
- the selected Registration keysselection
- the selected Event Entity
-