net.sf.wfnm.web
Class DynamicFactory

java.lang.Object
  extended bynet.sf.wfnm.web.DynamicFactory

public class DynamicFactory
extends Object

The factory for dynamic navigation and info.
It allows to get the following information:

Version:
1.0.6
Author:
Maurizio Albari

Constructor Summary
DynamicFactory()
           
 
Method Summary
static String getCurrentPage(javax.servlet.http.HttpSession session)
          Gets the current page.
static String getCurrentWebflowName(javax.servlet.http.HttpSession session)
          Get the current webflow name
static NavigationManager getNavigationManager(javax.servlet.http.HttpSession session)
          Gets the navigation manager.
static String getPreviousPage(javax.servlet.http.HttpSession session)
          Gets the previous page.
static String getPreviousPage(javax.servlet.http.HttpSession session, boolean currentIfNotExists)
          Gets the previous page.
static String getPreviousWebflow(javax.servlet.http.HttpSession session)
          Gets the previous webflow (top page).
static String getPreviousWebflow(javax.servlet.http.HttpSession session, boolean currentIfNotExists)
          Gets the previous webflow (top page).
static String getPreviousWebflow(javax.servlet.http.HttpSession session, String webflowName)
          Gets a previous webflow (top page) given its name.
static String getPreviousWebflow(javax.servlet.http.HttpSession session, String webflowName, boolean currentIfNotExists)
          Gets a previous webflow (top page) given its name.
static boolean isPageVisited(javax.servlet.http.HttpSession session, String url)
          Returns true if the page has been visited.
static boolean isWebflowVisited(javax.servlet.http.HttpSession session, String webflowName)
          Returns true if the webflow has been visited.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicFactory

public DynamicFactory()
Method Detail

getCurrentPage

public static String getCurrentPage(javax.servlet.http.HttpSession session)
Gets the current page.

Parameters:
session - the http session
Returns:
the url of the current page

getCurrentWebflowName

public static String getCurrentWebflowName(javax.servlet.http.HttpSession session)
Get the current webflow name

Parameters:
session - the http session
Returns:
the current webflow name (null=no webflow opened)

getNavigationManager

public static NavigationManager getNavigationManager(javax.servlet.http.HttpSession session)
Gets the navigation manager.

Parameters:
session - the http session
Returns:
the navigation manager

isPageVisited

public static boolean isPageVisited(javax.servlet.http.HttpSession session,
                                    String url)
Returns true if the page has been visited.

Parameters:
session - the http session
url - the url of the page
Returns:
true if the page has been visited

getPreviousPage

public static String getPreviousPage(javax.servlet.http.HttpSession session,
                                     boolean currentIfNotExists)
Gets the previous page.

Parameters:
session - the http session
currentIfNotExists - indicates to reload the current page if it does not exists
Returns:
the url of the previous page

getPreviousPage

public static String getPreviousPage(javax.servlet.http.HttpSession session)
Gets the previous page.

Parameters:
session - the http session
Returns:
the url of the previous page

getPreviousWebflow

public static String getPreviousWebflow(javax.servlet.http.HttpSession session,
                                        boolean currentIfNotExists)
Gets the previous webflow (top page).

Parameters:
session - the http session
currentIfNotExists - indicates to reload the current page if it does not exists
Returns:
the url of the previous webflow (top page)

getPreviousWebflow

public static String getPreviousWebflow(javax.servlet.http.HttpSession session)
Gets the previous webflow (top page).

Parameters:
session - the http session
Returns:
the url of the previous webflow (top page)

getPreviousWebflow

public static String getPreviousWebflow(javax.servlet.http.HttpSession session,
                                        String webflowName,
                                        boolean currentIfNotExists)
Gets a previous webflow (top page) given its name.

Parameters:
session - the http session
webflowName - the webflow name
currentIfNotExists - indicates to reload the current page if it does not exists
Returns:
the url of the previous webflow (top page) with name 'webflowName'

getPreviousWebflow

public static String getPreviousWebflow(javax.servlet.http.HttpSession session,
                                        String webflowName)
Gets a previous webflow (top page) given its name.

Parameters:
session - the http session
webflowName - the webflow name
Returns:
the url of the previous webflow (top page) with name 'webflowName'

isWebflowVisited

public static boolean isWebflowVisited(javax.servlet.http.HttpSession session,
                                       String webflowName)
Returns true if the webflow has been visited.

Parameters:
session - the http session
webflowName - the webflow name
Returns:
true if the webflow has been visited


Copyright © 2004-2005 Maurizio Albari@SourceForge.net. All Rights Reserved.