Interface CustomerManager

  • All Superinterfaces:
    java.rmi.Remote
    All Known Implementing Classes:
    CustomerManagerServer

    public interface CustomerManager
    extends java.rmi.Remote
    Customer Manager - interface for customer persistence service, implemented by the customer manager server for finding customers
    Author:
    Karl Eilebrecht
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addCustomer​(java.lang.String customerId, java.lang.String lastName, java.lang.String firstName, java.lang.String street, java.lang.String zipCode, java.lang.String city)
      For testing, adds a customer to the manager's database
      Customer findCustomer​(java.lang.String customerId)
      Returns the remote interface for the customer entity
      Customer findCustomerReturnDto​(java.lang.String customerId)
      Returns the DATA TRANSFER OBJECT for the customer entity
    • Method Detail

      • addCustomer

        void addCustomer​(java.lang.String customerId,
                         java.lang.String lastName,
                         java.lang.String firstName,
                         java.lang.String street,
                         java.lang.String zipCode,
                         java.lang.String city)
                  throws java.rmi.RemoteException
        For testing, adds a customer to the manager's database
        Parameters:
        customerId - identifier
        lastName - person's last name
        firstName - person's first name
        street - address field
        zipCode - address field
        city - address field
        Throws:
        java.rmi.RemoteException - on communication error
      • findCustomer

        Customer findCustomer​(java.lang.String customerId)
                       throws java.rmi.RemoteException
        Returns the remote interface for the customer entity
        Parameters:
        customerId - identifier
        Returns:
        entity or null if not found
        Throws:
        java.rmi.RemoteException - on communication error
      • findCustomerReturnDto

        Customer findCustomerReturnDto​(java.lang.String customerId)
                                throws java.rmi.RemoteException
        Returns the DATA TRANSFER OBJECT for the customer entity
        Parameters:
        customerId - identifier
        Returns:
        dto or null if not found
        Throws:
        java.rmi.RemoteException - on communication error