// Path: src/main/java/business/customer/Customer.java
// public class Customer  {
// 
//     private long customerId;
// 
//     private String name;
// 
//     private String email;
// 
//     private String phone;
// 
//     private String address;
// 
//     private String cityRegion;
// 
//     private String ccNumber;
// 
//     public Customer(long customerId, String name, String email,
//                     String phone, String address, String cityRegion, String ccNumber) {
//         this.customerId = customerId;
//         this.name = name;
//         this.email = email;
//         this.phone = phone;
//         this.address = address;
//         this.cityRegion = cityRegion;
//         this.ccNumber = ccNumber;
//     }
// 
//     public long getCustomerId() {
//         return customerId;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String getEmail() {
//         return email;
//     }
// 
//     public String getPhone() {
//         return phone;
//     }
// 
//     public String getAddress() {
//         return address;
//     }
// 
//     public String getCityRegion() {
//         return cityRegion;
//     }
// 
//     public String getCcNumber() {
//         return ccNumber;
//     }
// 
//     @Override
//     public String toString() {
//         return "business.customer.Customer[customerId=" + customerId + "]";
//     }
// 
// }
// 
// Path: src/main/java/business/order/CustomerOrder.java
// public class CustomerOrder {
// 
//     private long customerOrderId;
//     private long customerId;
//     private int amount;
//     private Date dateCreated;
//     private int confirmationNumber;
// 
// 
//     public CustomerOrder() {
//     }
// 
// 
//     public CustomerOrder(long customerOrderId, long customerId, int amount, Date dateCreated, int confirmationNumber) {
//         this.customerOrderId = customerOrderId;
//         this.customerId = customerId;
//         this.amount = amount;
//         this.dateCreated = dateCreated;
//         this.confirmationNumber = confirmationNumber;
//     }
// 
//     public long getCustomerOrderId() {
//         return customerOrderId;
//     }
// 
//     public long getCustomerId() {
//         return customerId;
//     }
// 
//     public int getAmount() {
//         return amount;
//     }
// 
//     public Date getDateCreated() {
//         return dateCreated;
//     }
// 
//     public int getConfirmationNumber() {
//         return confirmationNumber;
//     }
// 
// 
//     @Override
//     public String toString() {
//         return "business.order.CustomerOrder[customerOrderId=" + customerOrderId + "]";
//     }
// 
// }
// 
// Path: src/main/java/viewmodel/admin/BaseAdminViewModel.java
// public class BaseAdminViewModel {
// 
//     // The relative path to product images
// //    private static final String PRODUCT_IMAGE_PATH = "/img/products/";
//     private static final String PRODUCT_IMAGE_PATH = BaseViewModel.PRODUCT_IMAGE_PATH;
// 
//     // Every view model knows the request and session
//     protected HttpServletRequest request;
//     protected HttpSession session;
// 
//     // All customer/order pages need the following service objects
//     protected CustomerService customerService;
//     protected CustomerOrderService customerOrderService;
// 
//     // Delivery surcharge
//     protected int deliverySurcharge;
// 
//     @SuppressWarnings("unchecked")
//     public BaseAdminViewModel(HttpServletRequest request) {
//         ApplicationContext applicationContext = ApplicationContext.INSTANCE;
//         customerService = applicationContext.getCustomerService();
//         customerOrderService = applicationContext.getCustomerOrderService();
// 
//         this.request = request;
//         this.session = request.getSession(true);
//         this.deliverySurcharge = Integer.valueOf(request.getServletContext().getInitParameter("deliverySurcharge"));
//     }
// 
//     public HttpSession getSession() {
//         return session;
//     }
// 
//     public CustomerService getCustomerService() {
//         return customerService;
//     }
// 
//     public CustomerOrderService getCustomerOrderService() {
//         return customerOrderService;
//     }
// 
//     public String getProductImagePath() {
//         return PRODUCT_IMAGE_PATH;
//     }
// 
//     public int getDeliverySurcharge() {
//         return deliverySurcharge;
//     }
// 
// }


import business.customer.Customer;
import business.order.CustomerOrder;
import viewmodel.BaseAdminViewModel;
import javax.servlet.http.HttpServletRequest;
/**
 * BSD 3-Clause License
 *
 * Copyright (C) 2018 Steven Atkinson <steven@nowucca.com>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * * Redistributions of source code must retain the above copyright notice, this
 *   list of conditions and the following disclaimer.
 *
 * * Redistributions in binary form must reproduce the above copyright notice,
 *   this list of conditions and the following disclaimer in the documentation
 *   and/or other materials provided with the distribution.
 *
 * * Neither the name of the copyright holder nor the names of its
 *   contributors may be used to endorse or promote products derived from
 *   this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package viewmodel.admin;



public class AdminCustomerViewModel extends BaseAdminViewModel {

    private String customerId;
// Path: src/main/java/business/customer/Customer.java
// public class Customer  {
// 
//     private long customerId;
// 
//     private String name;
// 
//     private String email;
// 
//     private String phone;
// 
//     private String address;
// 
//     private String cityRegion;
// 
//     private String ccNumber;
// 
//     public Customer(long customerId, String name, String email,
//                     String phone, String address, String cityRegion, String ccNumber) {
//         this.customerId = customerId;
//         this.name = name;
//         this.email = email;
//         this.phone = phone;
//         this.address = address;
//         this.cityRegion = cityRegion;
//         this.ccNumber = ccNumber;
//     }
// 
//     public long getCustomerId() {
//         return customerId;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String getEmail() {
//         return email;
//     }
// 
//     public String getPhone() {
//         return phone;
//     }
// 
//     public String getAddress() {
//         return address;
//     }
// 
//     public String getCityRegion() {
//         return cityRegion;
//     }
// 
//     public String getCcNumber() {
//         return ccNumber;
//     }
// 
//     @Override
//     public String toString() {
//         return "business.customer.Customer[customerId=" + customerId + "]";
//     }
// 
// }
// 
// Path: src/main/java/business/order/CustomerOrder.java
// public class CustomerOrder {
// 
//     private long customerOrderId;
//     private long customerId;
//     private int amount;
//     private Date dateCreated;
//     private int confirmationNumber;
// 
// 
//     public CustomerOrder() {
//     }
// 
// 
//     public CustomerOrder(long customerOrderId, long customerId, int amount, Date dateCreated, int confirmationNumber) {
//         this.customerOrderId = customerOrderId;
//         this.customerId = customerId;
//         this.amount = amount;
//         this.dateCreated = dateCreated;
//         this.confirmationNumber = confirmationNumber;
//     }
// 
//     public long getCustomerOrderId() {
//         return customerOrderId;
//     }
// 
//     public long getCustomerId() {
//         return customerId;
//     }
// 
//     public int getAmount() {
//         return amount;
//     }
// 
//     public Date getDateCreated() {
//         return dateCreated;
//     }
// 
//     public int getConfirmationNumber() {
//         return confirmationNumber;
//     }
// 
// 
//     @Override
//     public String toString() {
//         return "business.order.CustomerOrder[customerOrderId=" + customerOrderId + "]";
//     }
// 
// }
// 
// Path: src/main/java/viewmodel/admin/BaseAdminViewModel.java
// public class BaseAdminViewModel {
// 
//     // The relative path to product images
// //    private static final String PRODUCT_IMAGE_PATH = "/img/products/";
//     private static final String PRODUCT_IMAGE_PATH = BaseViewModel.PRODUCT_IMAGE_PATH;
// 
//     // Every view model knows the request and session
//     protected HttpServletRequest request;
//     protected HttpSession session;
// 
//     // All customer/order pages need the following service objects
//     protected CustomerService customerService;
//     protected CustomerOrderService customerOrderService;
// 
//     // Delivery surcharge
//     protected int deliverySurcharge;
// 
//     @SuppressWarnings("unchecked")
//     public BaseAdminViewModel(HttpServletRequest request) {
//         ApplicationContext applicationContext = ApplicationContext.INSTANCE;
//         customerService = applicationContext.getCustomerService();
//         customerOrderService = applicationContext.getCustomerOrderService();
// 
//         this.request = request;
//         this.session = request.getSession(true);
//         this.deliverySurcharge = Integer.valueOf(request.getServletContext().getInitParameter("deliverySurcharge"));
//     }
// 
//     public HttpSession getSession() {
//         return session;
//     }
// 
//     public CustomerService getCustomerService() {
//         return customerService;
//     }
// 
//     public CustomerOrderService getCustomerOrderService() {
//         return customerOrderService;
//     }
// 
//     public String getProductImagePath() {
//         return PRODUCT_IMAGE_PATH;
//     }
// 
//     public int getDeliverySurcharge() {
//         return deliverySurcharge;
//     }
// 
// }


// Path: src/main/java/viewmodel/admin/AdminCustomerViewModel.java
import business.customer.Customer;
import business.order.CustomerOrder;
import viewmodel.BaseAdminViewModel;
import javax.servlet.http.HttpServletRequest;

/**
 * BSD 3-Clause License
 *
 * Copyright (C) 2018 Steven Atkinson <steven@nowucca.com>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * * Redistributions of source code must retain the above copyright notice, this
 *   list of conditions and the following disclaimer.
 *
 * * Redistributions in binary form must reproduce the above copyright notice,
 *   this list of conditions and the following disclaimer in the documentation
 *   and/or other materials provided with the distribution.
 *
 * * Neither the name of the copyright holder nor the names of its
 *   contributors may be used to endorse or promote products derived from
 *   this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package viewmodel.admin;



public class AdminCustomerViewModel extends BaseAdminViewModel {

    private String customerId;
    private Customer customerRecord;