File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Travel Agent and a Web Customer" Watch "Travel Agent and a Web Customer" New topic

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

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:
Web Customer book own flight
Travel Agent book flight for a customer

Thank you!
I agree. Here's the link:
subject: Travel Agent and a Web Customer
It's not a secret anymore!