Overview

Summary

ContactDonateImprint


Appendix E-8: PRODUCT (UI prompt)


ProductProductModuleLinkedIn

Properties (7)

PropertyTypeEntityReferenceModule
(1) AverageRatingDOUBLEProduct
(2) CompanyLONGProductCompanyCompanyModule
(3) DescriptionSTRINGProduct
(4) NameSTRINGProduct
(5) ProductCategoryLONGProductProductCategoryProductModule
(6) ReviewsCountINTProduct
(7) UrlSTRINGProduct


Module Interfaces (8)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /product/{id}updateProductById(product)ProductModulePUTProduct
(2) /product/{id}deleteProductById(id)ProductModuleDELETEProduct
(3) /productfindAllProduct()ProductModuleGETProduct
(4) /product/productcategory/{id}findAllProductOfProductCategory(id)ProductModuleGETProductCategory Product
(5) /productinsertProduct(product)ProductModulePOSTProduct
(6) /productreview/product/{id}findAllProductReviewOfProduct(id)ProductModuleGETProduct ProductReview
(7) /product/company/{id}findAllProductOfCompany(id)ProductModuleGETCompany Product
(8) /product/{id}findProductById(id)ProductModuleGETProduct





Example:

final Product product = (Product) invokeModule(PRODUCT_MODULE + "/product/" + id, Product.class);
if (product != null) {
    final Company company1 = (Company) invokeModule(COMPANY_MODULE + "/company/" + product.getCompany().getId(), Company.class);
    if (company1 != null) {
    }
    final ProductCategory productcategory2 = (ProductCategory) invokeModule(PRODUCT_MODULE + "/productcategory/" + product.getProductCategory().getId(), ProductCategory.class);
    if (productcategory2 != null) {
    }
}
return product;


Overview

Summary

ContactDonateImprint