Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

de.mbohlen.uml2ejb.samples.carrental.customers

Class CustomerService


public class CustomerService

Supports the workflow of customer tasks in the system. Can authenticate a user as a customer, can create customers, add drivers to them and search for customers.


 Method Summary
public String   addDriver(String customerId , DriverData driverData )

Adds a licensed driver to the drivers associated with a particular customer. 

public String   authenticateAsCustomer(String customerNo , String password )

Authenticates a user as a customer. 

public String   createCustomer(String name , String customerNo , String password )

Creates a new customer. 

public Collection   searchAllCustomers()

Searches all customers. 

arrow_up
 

 Method Detail

addDriver

public String addDriver(String customerId , DriverData driverData )

Adds a licensed driver to the drivers associated with a particular customer.

Parameters:
customerId - the id of the Customer object

driverData - the data for the Driver to be created

Returns:
a String with the Driver object's id

 
arrow_up
 
 

authenticateAsCustomer

public String authenticateAsCustomer(String customerNo , String password )

Authenticates a user as a customer.

Parameters:
customerNo - the customer number

password - the customer's password

Returns:
a String with the id of the Customer object.

 
arrow_up
 
 

createCustomer

public String createCustomer(String name , String customerNo , String password )

Creates a new customer.

Parameters:
name - name of the new customer

customerNo - customer number of the new customer

Returns:
String with the customer id

 
arrow_up
 
 

searchAllCustomers

public Collection searchAllCustomers()

Searches all customers.

Returns:
a Collection with CustomerData objects.

 
arrow_up
 

Created  2002 - 12 - 7

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2001 Gentleware AG, Vogt-Kölln-Str.30, 22527 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.