Overview

Summary

ContactDonateImprint


Appendix E-27: ROOM UNIT (UI prompt)


RoomUnitRoomTypeModuleBookingCom

Properties (3)

PropertyTypeEntityReferenceModule
(1) IsActiveBOOLRoomUnit
(2) RoomTypeINTRoomUnitRoomTypeRoomTypeModule
(3) UnitCodeSTRINGRoomUnit


Module Interfaces (6)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /roomunitfindAllRoomUnit()RoomTypeModuleGETRoomUnit
(2) /roomunit/{id}deleteRoomUnitById(id)RoomTypeModuleDELETERoomUnit
(3) /roomunit/roomtype/{id}findAllRoomUnitOfRoomType(id)RoomTypeModuleGETRoomType RoomUnit
(4) /roomunitinsertRoomUnit(roomunit)RoomTypeModulePOSTRoomUnit
(5) /roomunit/{id}findRoomUnitById(id)RoomTypeModuleGETRoomUnit
(6) /roomunit/{id}updateRoomUnitById(roomunit)RoomTypeModulePUTRoomUnit





Example:

final RoomUnit roomunit = (RoomUnit) invokeModule(ROOM_TYPE_MODULE + "/roomunit/" + id, RoomUnit.class);
if (roomunit != null) {
    final RoomType roomtype1 = (RoomType) invokeModule(ROOM_TYPE_MODULE + "/roomtype/" + roomunit.getRoomType().getId(), RoomType.class);
    if (roomtype1 != null) {
        final Property property2 = (Property) invokeModule(PROPERTY_MODULE + "/property/" + roomtype1.getProperty().getId(), Property.class);
        if (property2 != null) {
            final LocationCity locationcity3 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + property2.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 PropertyType propertytype7 = (PropertyType) invokeModule(PROPERTY_MODULE + "/propertytype/" + property2.getPropertyType().getId(), PropertyType.class);
            if (propertytype7 != null) {
            }
            final LocationDistrict locationdistrict8 = (LocationDistrict) invokeModule(PROPERTY_MODULE + "/locationdistrict/" + property2.getLocationDistrict().getId(), LocationDistrict.class);
            if (locationdistrict8 != null) {
                final LocationCity locationcity9 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + locationdistrict8.getLocationCity().getId(), LocationCity.class);
                if (locationcity9 != null) {
                    final LocationRegion locationregion10 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity9.getLocationRegion().getId(), LocationRegion.class);
                    if (locationregion10 != null) {
                        final LocationCountry locationcountry11 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion10.getLocationCountry().getId(), LocationCountry.class);
                        if (locationcountry11 != null) {
                        }
                    }
                    final LocationCountry locationcountry12 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity9.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry12 != null) {
                    }
                }
            }
            final LocationCountry locationcountry13 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + property2.getLocationCountry().getId(), LocationCountry.class);
            if (locationcountry13 != null) {
            }
            final PartnerAccount partneraccount14 = (PartnerAccount) invokeModule(PARTNER_ACCOUNT_MODULE + "/partneraccount/" + property2.getPartnerAccount().getId(), PartnerAccount.class);
            if (partneraccount14 != null) {
            }
        }
        final RoomTypeCategory roomtypecategory15 = (RoomTypeCategory) invokeModule(CAR_RENTAL_LOCATION_MODULE + "/roomtypecategory/" + roomtype1.getRoomTypeCategory().getId(), RoomTypeCategory.class);
        if (roomtypecategory15 != null) {
        }
    }
}
return roomunit;


Overview

Summary

ContactDonateImprint