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 show intercepting filter in sequence diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "show intercepting filter in sequence diagram" Watch "show intercepting filter in sequence diagram" New topic

show intercepting filter in sequence diagram

Lin Sun

Joined: Mar 23, 2012
Posts: 16
I searched past posts about showing JSF in sequence diagram. It appears a common approach is:

JSF page <------> Managed Bean <-----------> SLSB

without showing FacesServlet.

Given that approach, my question is how to show intercepting filter in sequence diagram. For example, if user finishes shopping and checks out, an intercepting filter can check if user is signed on and if not, direct user to sign on first.

With FacesServlet in place, I think the sequence diagram goes something like below:

Some JSF page ----> FacesServlet ---> PhaseListener (as intercepting filter) -----> Signon JSF page--> back to PhaseListener --> back to FaceServlet ----> show Cart JSF page and allow user to check out

How do you show the intercepting filter pattern in sequence diagram without FaceServlet and PhaseListener in place?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32304

You can either show it where it would be called or put it as a note outside the diagram.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: show intercepting filter in sequence diagram
jQuery in Action, 3rd edition