コード例 #1
0
 public String providerAddress(Long id) {
   this.address = providerFacade.getProvider(id).getAddress();
   return "providerAddress";
 }
コード例 #2
0
  public String deleteProviderFromCatalog(Long id) {
    providerFacade.deleteProvider(id);
    this.providers = providerFacade.getAllProviders();

    return "providers";
  }
コード例 #3
0
 public String findProvider(Long id) {
   this.provider = providerFacade.getProvider(id);
   return "provider";
 }
コード例 #4
0
 public String catalogProvider() {
   this.providers = providerFacade.getAllProviders();
   return "providers";
 }
コード例 #5
0
  public String createProvider() {
    this.address = new Address(street, city, zipcode, country);
    this.provider = providerFacade.createProvider(name, phoneNumber, email, vatin, address);

    return "provider";
  }