Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

price itinerary use case

 
Giju George
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The price Itinerary use case seems to be so simple to me, that I really don't know what to put in the sequence diagram. Well I assume it calculates the total price for all the segments. So it can be like: prepare itinerary sends a segmentVO to a DAO, which then calculates the total price. So there is'nt much components that I can add to this diagram.

Guys, what's your thought on this one ???
 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah..price itinerary is great respite(at least it appears at the moment) from others like prepare/pay for itinerary.
 
Steven Wong
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Giju,

You are right - but does it even go to DAO? It's just calculating and summing up the total segment prices.
 
Giju George
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steven,
The reason why I want to use a DAO there is because, the prices can change ANY time. So when the customer selects the itinerary, the segment prices are not yet displayed (most of the online booking sites work the same way). It's only when the user confirms the seat does it actually go and get the latest price.

This is just a little idea that I put in my work, but I am sure you can design it it anyway you want. But still I am concerned about the number of components in that SD.

Ajai and Steven.. how many components do u have in price Itinerary SD ???
 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Giju,

I have similar approach as yours.So no of components are same.


Thanks
 
rottscha rotti
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't forget to check that the user is logged in.
(See precondition of usecase)

rottscha
 
Sarbur sar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding the user login, is that done will be done at front controller? If yes means, if the user is not logged means will it invoke the login jsp directly or will invoke the front controller of login usecase.

Any suggestion?

Thanks,
Sarbur
 
ravindra janapreddy
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

The system sends the Prepare Iterinary to Price Iterinary use case and the system checks whether the user is logged in or the user has a valid profile in Prepare Iterinary use case so if none of these cases is satisfied the user will never come to price iterinary use case.

Thanks

-- Ravi
 
chao cai
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About user login ,I think put the login check in a fiter just like petstore is much better.
 
Giju George
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am planning to use JAAS for authentication and authorization, both for the customers and travel agent. So I actually don't need any filters or front controllers to do this job. And I am NOT planning to include it it any of the sequence diagram. Will just mention in the document how this can be implemented.
 
chao cai
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think using JAAS make problem easy, the JAAS mechanism is provided by J2EE server,so it is very easy to integrate with web tie,but it is quite different to swing client.
 
Giju George
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by chao cai:
I don't think using JAAS make problem easy, the JAAS mechanism is provided by J2EE server,so it is very easy to integrate with web tie,but it is quite different to swing client.


Yes, the actual implementation of it is different for both clients. But from a high level architecture point of view, it should be able to solve the issue : authentication and authorization
 
Luiz Reginaldo Curado
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

You can use the JAAS to control the acess to your ejb components. Putting it in this way, I think you can get the authorization needed.
 
b deb
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

How are you guys taking care of the alternate flow for Price Itinerary in sequence diagram ?

What exactly is meant by "additional payment" ? Is it some additional payment that customer has to pay after can in segment (though Change Itinerary) ? Does that mean that paid itinerary can also be changed ?

Thanks,
BDeb
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic