wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Travel Agent and a Web Customer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Travel Agent and a Web Customer" Watch "Travel Agent and a Web Customer" New topic
Author

Travel Agent and a Web Customer

Manny Pacman Pacquiao
Ranch Hand

Joined: Oct 04, 2006
Posts: 36
How do you "fit" these two in the system? I'm doing a card modeling system to identify all the potential models/class for the system. In my modeling I've identified both to have distinct responsibilities. For now I've extended both from the Customer class/object in the BDM. Customer is associated with a Profile class/object w/ multiplicity 1 to 1. Profile is associated to CreditCard as 1 to 0..*. The 0 in the 0..* is for a Travel Agent(no credit card). I've put enough notes inside my Class Diagram to explain this.
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Manny,

For me a travel agent is a kind of USER. Profiles do not apply to users, but to customers. When a TA books a flight on behalf a customer, he will use this customer�s profile.

To model a TA as a Customer without profile is not a good practice. They are different entities. The only thing they have in common is the fact that both are USERS.


Cleuton Sampaio<br />Systems Architect<br />(SCEA,SCWCD,SCBCD,MCSE,MCSD)
Manny Pacman Pacquiao
Ranch Hand

Joined: Oct 04, 2006
Posts: 36
This is what's pushing me to distinguish two kinds of users.

In a web scenario it is absolutely true that when a customer logs in, he/she will have a profile. However, for an application scenario it is a travel agent who does the booking for the customer. The moment a TA logs in he'd have a profile, isn't it? But once a customer comes in and ask for a booking then that is when another kind of profile is created, one that is for the current customer being serve. The profile for the TA is one that is pass around application events.

I'm following this:
ClassResponsibility/Operation
=============================
Web Customer book own flight
Travel Agent book flight for a customer


Thank you!
 
Don't get me started about those stupid light bulbs.
 
subject: Travel Agent and a Web Customer
 
Similar Threads
Clarifications on Requirements for - Part II
Login/customer account topic questions
Travel Agent Login
Travel Agent login
Tasks about Travel Agent