Overview

Summary

ContactDonateImprint


Appendix E-35: LOTTERY (UI prompt)


LotteryOrganizationModuleZeppelinFlight

Properties (8)

PropertyTypeEntityReferenceModule
(1) BeneficiaryOrganizationINTLotteryOrganizationOrganizationModule
(2) CurrencySTRINGLottery
(3) DescriptionSTRINGLottery
(4) EndDateDATELottery
(5) NameSTRINGLottery
(6) ProceedsAmountSTRINGLottery
(7) RelatedEventINTLotteryEventOrganizationModule
(8) StartDateDATELottery


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /lottery/{id}findLotteryById(id)OrganizationModuleGETLottery
(2) /lottery/{id}updateLotteryById(lottery)OrganizationModulePUTLottery
(3) /lottery/{id}deleteLotteryById(id)OrganizationModuleDELETELottery
(4) /lottery/beneficiaryorganization/{id}findAllLotteryOfBeneficiaryOrganization(id)OrganizationModuleGETOrganization Lottery
(5) /lotteryinsertLottery(lottery)OrganizationModulePOSTLottery
(6) /lottery/relatedevent/{id}findAllLotteryOfRelatedEvent(id)OrganizationModuleGETEvent Lottery
(7) /lotteryfindAllLottery()OrganizationModuleGETLottery





Example:

final Lottery lottery = (Lottery) invokeModule(ORGANIZATION_MODULE + "/lottery/" + id, Lottery.class);
if (lottery != null) {
    final Event relatedevent1 = (Event) invokeModule(ORGANIZATION_MODULE + "/event/" + lottery.getRelatedEvent().getId(), Event.class);
    if (relatedevent1 != null) {
        final Zeppelin relatedzeppelin2 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + relatedevent1.getRelatedZeppelin().getId(), Zeppelin.class);
        if (relatedzeppelin2 != null) {
            final ZeppelinClass zeppelinclass3 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + relatedzeppelin2.getZeppelinClass().getId(), ZeppelinClass.class);
            if (zeppelinclass3 != null) {
                final Organization manufacturer4 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass3.getManufacturer().getId(), Organization.class);
                if (manufacturer4 != null) {
                    final Location headquarterslocation5 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer4.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation5 != null) {
                        final Country country6 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation5.getCountry().getId(), Country.class);
                        if (country6 != null) {
                        }
                    }
                }
            }
            final Location homebaselocation7 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedzeppelin2.getHomeBaseLocation().getId(), Location.class);
            if (homebaselocation7 != null) {
                final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation7.getCountry().getId(), Country.class);
                if (country8 != null) {
                }
            }
            final Organization operator9 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + relatedzeppelin2.getOperator().getId(), Organization.class);
            if (operator9 != null) {
                final Location headquarterslocation10 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator9.getHeadquartersLocation().getId(), Location.class);
                if (headquarterslocation10 != null) {
                    final Country country11 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation10.getCountry().getId(), Country.class);
                    if (country11 != null) {
                    }
                }
            }
        }
        final Organization relatedorganization12 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + relatedevent1.getRelatedOrganization().getId(), Organization.class);
        if (relatedorganization12 != null) {
            final Location headquarterslocation13 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedorganization12.getHeadquartersLocation().getId(), Location.class);
            if (headquarterslocation13 != null) {
                final Country country14 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation13.getCountry().getId(), Country.class);
                if (country14 != null) {
                }
            }
        }
        final Location location15 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedevent1.getLocation().getId(), Location.class);
        if (location15 != null) {
            final Country country16 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location15.getCountry().getId(), Country.class);
            if (country16 != null) {
            }
        }
    }
    final Organization beneficiaryorganization17 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + lottery.getBeneficiaryOrganization().getId(), Organization.class);
    if (beneficiaryorganization17 != null) {
        final Location headquarterslocation18 = (Location) invokeModule(LOCATION_MODULE + "/location/" + beneficiaryorganization17.getHeadquartersLocation().getId(), Location.class);
        if (headquarterslocation18 != null) {
            final Country country19 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation18.getCountry().getId(), Country.class);
            if (country19 != null) {
            }
        }
    }
}
return lottery;


Overview

Summary

ContactDonateImprint