Overview

Summary

ContactDonateImprint


Appendix E-9: CAR RENTAL BOOKING (UI prompt)


CarRentalBookingCarRentalLocationModuleBookingCom

Properties (8)

PropertyTypeEntityReferenceModule
(1) BookingINTCarRentalBookingBookingBookingModule
(2) CarRentalProductINTCarRentalBookingCarRentalProductCarCategoryModule
(3) CurrencyINTCarRentalBookingCurrencyCurrencyModule
(4) DropoffDateTimeDATECarRentalBooking
(5) DropoffLocationINTCarRentalBookingCarRentalLocationCarRentalLocationModule
(6) PickupDateTimeDATECarRentalBooking
(7) PickupLocationINTCarRentalBookingCarRentalLocationCarRentalLocationModule
(8) TotalAmountSTRINGCarRentalBooking


Module Interfaces (10)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /carrentalbooking/booking/{id}findAllCarRentalBookingOfBooking(id)CarRentalLocationModuleGETBooking CarRentalBooking
(2) /carrentalbookingfindAllCarRentalBooking()CarRentalLocationModuleGETCarRentalBooking
(3) /carrentalbookinginsertCarRentalBooking(carrentalbooking)CarRentalLocationModulePOSTCarRentalBooking
(4) /carrentalbooking/{id}deleteCarRentalBookingById(id)CarRentalLocationModuleDELETECarRentalBooking
(5) /carrentalbooking/{id}findCarRentalBookingById(id)CarRentalLocationModuleGETCarRentalBooking
(6) /carrentalbooking/carrentalproduct/{id}findAllCarRentalBookingOfCarRentalProduct(id)CarRentalLocationModuleGETCarRentalProduct CarRentalBooking
(7) /carrentalbooking/currency/{id}findAllCarRentalBookingOfCurrency(id)CarRentalLocationModuleGETCurrency CarRentalBooking
(8) /carrentalbooking/{id}updateCarRentalBookingById(carrentalbooking)CarRentalLocationModulePUTCarRentalBooking
(9) /carrentalbooking/dropofflocation/{id}findAllCarRentalBookingOfDropoffLocation(id)CarRentalLocationModuleGETCarRentalLocation CarRentalBooking
(10) /carrentalbooking/pickuplocation/{id}findAllCarRentalBookingOfPickupLocation(id)CarRentalLocationModuleGETCarRentalLocation CarRentalBooking





Example:

final CarRentalBooking carrentalbooking = (CarRentalBooking) invokeModule(CAR_RENTAL_LOCATION_MODULE + "/carrentalbooking/" + id, CarRentalBooking.class);
if (carrentalbooking != null) {
    final CarRentalProduct carrentalproduct1 = (CarRentalProduct) invokeModule(CAR_CATEGORY_MODULE + "/carrentalproduct/" + carrentalbooking.getCarRentalProduct().getId(), CarRentalProduct.class);
    if (carrentalproduct1 != null) {
        final CarRentalLocation carrentallocation2 = (CarRentalLocation) invokeModule(CAR_RENTAL_LOCATION_MODULE + "/carrentallocation/" + carrentalproduct1.getCarRentalLocation().getId(), CarRentalLocation.class);
        if (carrentallocation2 != null) {
            final LocationCity locationcity3 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + carrentallocation2.getLocationCity().getId(), LocationCity.class);
            if (locationcity3 != null) {
                final LocationRegion locationregion4 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity3.getLocationRegion().getId(), LocationRegion.class);
                if (locationregion4 != null) {
                    final LocationCountry locationcountry5 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion4.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry5 != null) {
                    }
                }
                final LocationCountry locationcountry6 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity3.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry6 != null) {
                }
            }
            final PartnerAccount partneraccount7 = (PartnerAccount) invokeModule(PARTNER_ACCOUNT_MODULE + "/partneraccount/" + carrentallocation2.getPartnerAccount().getId(), PartnerAccount.class);
            if (partneraccount7 != null) {
            }
        }
        final CarCategory carcategory8 = (CarCategory) invokeModule(CAR_CATEGORY_MODULE + "/carcategory/" + carrentalproduct1.getCarCategory().getId(), CarCategory.class);
        if (carcategory8 != null) {
        }
    }
    final CarRentalLocation dropofflocation9 = (CarRentalLocation) invokeModule(CAR_RENTAL_LOCATION_MODULE + "/carrentallocation/" + carrentalbooking.getDropoffLocation().getId(), CarRentalLocation.class);
    if (dropofflocation9 != null) {
        final LocationCity locationcity10 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + dropofflocation9.getLocationCity().getId(), LocationCity.class);
        if (locationcity10 != null) {
            final LocationRegion locationregion11 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity10.getLocationRegion().getId(), LocationRegion.class);
            if (locationregion11 != null) {
                final LocationCountry locationcountry12 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion11.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry12 != null) {
                }
            }
            final LocationCountry locationcountry13 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity10.getLocationCountry().getId(), LocationCountry.class);
            if (locationcountry13 != null) {
            }
        }
        final PartnerAccount partneraccount14 = (PartnerAccount) invokeModule(PARTNER_ACCOUNT_MODULE + "/partneraccount/" + dropofflocation9.getPartnerAccount().getId(), PartnerAccount.class);
        if (partneraccount14 != null) {
        }
    }
    final Booking booking15 = (Booking) invokeModule(BOOKING_MODULE + "/booking/" + carrentalbooking.getBooking().getId(), Booking.class);
    if (booking15 != null) {
        final UserAccount useraccount16 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + booking15.getUserAccount().getId(), UserAccount.class);
        if (useraccount16 != null) {
            final Currency defaultcurrency17 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + useraccount16.getDefaultCurrency().getId(), Currency.class);
            if (defaultcurrency17 != null) {
            }
            final Language defaultlanguage18 = (Language) invokeModule(LANGUAGE_MODULE + "/language/" + useraccount16.getDefaultLanguage().getId(), Language.class);
            if (defaultlanguage18 != null) {
            }
        }
        final Currency currency19 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + booking15.getCurrency().getId(), Currency.class);
        if (currency19 != null) {
        }
    }
    final CarRentalLocation pickuplocation20 = (CarRentalLocation) invokeModule(CAR_RENTAL_LOCATION_MODULE + "/carrentallocation/" + carrentalbooking.getPickupLocation().getId(), CarRentalLocation.class);
    if (pickuplocation20 != null) {
        final LocationCity locationcity21 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + pickuplocation20.getLocationCity().getId(), LocationCity.class);
        if (locationcity21 != null) {
            final LocationRegion locationregion22 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity21.getLocationRegion().getId(), LocationRegion.class);
            if (locationregion22 != null) {
                final LocationCountry locationcountry23 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion22.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry23 != null) {
                }
            }
            final LocationCountry locationcountry24 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity21.getLocationCountry().getId(), LocationCountry.class);
            if (locationcountry24 != null) {
            }
        }
        final PartnerAccount partneraccount25 = (PartnerAccount) invokeModule(PARTNER_ACCOUNT_MODULE + "/partneraccount/" + pickuplocation20.getPartnerAccount().getId(), PartnerAccount.class);
        if (partneraccount25 != null) {
        }
    }
    final Currency currency26 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + carrentalbooking.getCurrency().getId(), Currency.class);
    if (currency26 != null) {
    }
}
return carrentalbooking;


Overview

Summary

ContactDonateImprint