Overview

Summary

ContactDonateImprint


Appendix E-7: PHOTO RATING (UI prompt)


PhotoRatingPhotoModuleMarineTraffic

Properties (4)

PropertyTypeEntityReferenceModule
(1) PhotoLONGPhotoRatingPhotoPhotoModule
(2) RatedUtcDATEPhotoRating
(3) RatingValueLONGPhotoRating
(4) UserAccountLONGPhotoRatingUserAccountUserAccountModule


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /photoratingfindAllPhotoRating()PhotoModuleGETPhotoRating
(2) /photorating/useraccount/{id}findAllPhotoRatingOfUserAccount(id)PhotoModuleGETUserAccount PhotoRating
(3) /photorating/photo/{id}findAllPhotoRatingOfPhoto(id)PhotoModuleGETPhoto PhotoRating
(4) /photorating/{id}findPhotoRatingById(id)PhotoModuleGETPhotoRating
(5) /photorating/{id}updatePhotoRatingById(photorating)PhotoModulePUTPhotoRating
(6) /photorating/{id}deletePhotoRatingById(id)PhotoModuleDELETEPhotoRating
(7) /photoratinginsertPhotoRating(photorating)PhotoModulePOSTPhotoRating





Example:

final PhotoRating photorating = (PhotoRating) invokeModule(PHOTO_MODULE + "/photorating/" + id, PhotoRating.class);
if (photorating != null) {
    final Photo photo1 = (Photo) invokeModule(PHOTO_MODULE + "/photo/" + photorating.getPhoto().getId(), Photo.class);
    if (photo1 != null) {
        final Vessel vessel2 = (Vessel) invokeModule(VESSEL_MODULE + "/vessel/" + photo1.getVessel().getId(), Vessel.class);
        if (vessel2 != null) {
            final VesselType vesseltype3 = (VesselType) invokeModule(VESSEL_MODULE + "/vesseltype/" + vessel2.getVesselType().getId(), VesselType.class);
            if (vesseltype3 != null) {
            }
            final Country flagcountry4 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + vessel2.getFlagCountry().getId(), Country.class);
            if (flagcountry4 != null) {
            }
            final VesselStatus vesselstatus5 = (VesselStatus) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/vesselstatus/" + vessel2.getVesselStatus().getId(), VesselStatus.class);
            if (vesselstatus5 != null) {
            }
        }
        final UserAccount useraccount6 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + photo1.getUserAccount().getId(), UserAccount.class);
        if (useraccount6 != null) {
            final Country country7 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + useraccount6.getCountry().getId(), Country.class);
            if (country7 != null) {
            }
        }
    }
    final UserAccount useraccount8 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + photorating.getUserAccount().getId(), UserAccount.class);
    if (useraccount8 != null) {
        final Country country9 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + useraccount8.getCountry().getId(), Country.class);
        if (country9 != null) {
        }
    }
}
return photorating;


Overview

Summary

ContactDonateImprint