Overview

Summary

ContactDonateImprint


Appendix E-21: DONATION CAMPAIGN (UI prompt)


DonationCampaignOrganizationModuleZeppelinFlight

Properties (8)

PropertyTypeEntityReferenceModule
(1) AmountRaisedSTRINGDonationCampaign
(2) BeneficiaryOrganizationINTDonationCampaignOrganizationOrganizationModule
(3) CurrencySTRINGDonationCampaign
(4) DescriptionSTRINGDonationCampaign
(5) EndDateDATEDonationCampaign
(6) NameSTRINGDonationCampaign
(7) RelatedEventINTDonationCampaignEventOrganizationModule
(8) StartDateDATEDonationCampaign


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /donationcampaignfindAllDonationCampaign()OrganizationModuleGETDonationCampaign
(2) /donationcampaigninsertDonationCampaign(donationcampaign)OrganizationModulePOSTDonationCampaign
(3) /donationcampaign/relatedevent/{id}findAllDonationCampaignOfRelatedEvent(id)OrganizationModuleGETEvent DonationCampaign
(4) /donationcampaign/{id}deleteDonationCampaignById(id)OrganizationModuleDELETEDonationCampaign
(5) /donationcampaign/{id}findDonationCampaignById(id)OrganizationModuleGETDonationCampaign
(6) /donationcampaign/{id}updateDonationCampaignById(donationcampaign)OrganizationModulePUTDonationCampaign
(7) /donationcampaign/beneficiaryorganization/{id}findAllDonationCampaignOfBeneficiaryOrganization(id)OrganizationModuleGETOrganization DonationCampaign





Example:

final DonationCampaign donationcampaign = (DonationCampaign) invokeModule(ORGANIZATION_MODULE + "/donationcampaign/" + id, DonationCampaign.class);
if (donationcampaign != null) {
    final Organization beneficiaryorganization1 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + donationcampaign.getBeneficiaryOrganization().getId(), Organization.class);
    if (beneficiaryorganization1 != null) {
        final Location headquarterslocation2 = (Location) invokeModule(LOCATION_MODULE + "/location/" + beneficiaryorganization1.getHeadquartersLocation().getId(), Location.class);
        if (headquarterslocation2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
    }
    final Event relatedevent4 = (Event) invokeModule(ORGANIZATION_MODULE + "/event/" + donationcampaign.getRelatedEvent().getId(), Event.class);
    if (relatedevent4 != null) {
        final Zeppelin relatedzeppelin5 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + relatedevent4.getRelatedZeppelin().getId(), Zeppelin.class);
        if (relatedzeppelin5 != null) {
            final ZeppelinClass zeppelinclass6 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + relatedzeppelin5.getZeppelinClass().getId(), ZeppelinClass.class);
            if (zeppelinclass6 != null) {
                final Organization manufacturer7 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass6.getManufacturer().getId(), Organization.class);
                if (manufacturer7 != null) {
                    final Location headquarterslocation8 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer7.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation8 != null) {
                        final Country country9 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation8.getCountry().getId(), Country.class);
                        if (country9 != null) {
                        }
                    }
                }
            }
            final Location homebaselocation10 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedzeppelin5.getHomeBaseLocation().getId(), Location.class);
            if (homebaselocation10 != null) {
                final Country country11 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation10.getCountry().getId(), Country.class);
                if (country11 != null) {
                }
            }
            final Organization operator12 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + relatedzeppelin5.getOperator().getId(), Organization.class);
            if (operator12 != null) {
                final Location headquarterslocation13 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator12.getHeadquartersLocation().getId(), Location.class);
                if (headquarterslocation13 != null) {
                    final Country country14 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation13.getCountry().getId(), Country.class);
                    if (country14 != null) {
                    }
                }
            }
        }
        final Organization relatedorganization15 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + relatedevent4.getRelatedOrganization().getId(), Organization.class);
        if (relatedorganization15 != null) {
            final Location headquarterslocation16 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedorganization15.getHeadquartersLocation().getId(), Location.class);
            if (headquarterslocation16 != null) {
                final Country country17 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation16.getCountry().getId(), Country.class);
                if (country17 != null) {
                }
            }
        }
        final Location location18 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedevent4.getLocation().getId(), Location.class);
        if (location18 != null) {
            final Country country19 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location18.getCountry().getId(), Country.class);
            if (country19 != null) {
            }
        }
    }
}
return donationcampaign;


Overview

Summary

ContactDonateImprint