it.eng.spago.navigation
Class LightNavigationManager

java.lang.Object
  extended byit.eng.spago.navigation.LightNavigationManager

public class LightNavigationManager
extends java.lang.Object


Field Summary
static java.lang.String LIGHT_NAVIGATOR_BACK_TO
           
static java.lang.String LIGHT_NAVIGATOR_BACK_TO_MARK
           
static java.lang.String LIGHT_NAVIGATOR_DISABLED
           
static java.lang.String LIGHT_NAVIGATOR_MARK
           
static java.lang.String LIGHT_NAVIGATOR_REPLACE_LAST
           
static java.lang.String LIGHT_NAVIGATOR_RESET
           
 
Constructor Summary
LightNavigationManager()
           
 
Method Summary
static SourceBean controlLightNavigation(PortletRequest portletRequest, SourceBean serviceRequest)
          This method is responsible for the requests stack (the LightNavigator) modification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIGHT_NAVIGATOR_RESET

public static final java.lang.String LIGHT_NAVIGATOR_RESET
See Also:
Constant Field Values

LIGHT_NAVIGATOR_DISABLED

public static final java.lang.String LIGHT_NAVIGATOR_DISABLED
See Also:
Constant Field Values

LIGHT_NAVIGATOR_BACK_TO

public static final java.lang.String LIGHT_NAVIGATOR_BACK_TO
See Also:
Constant Field Values

LIGHT_NAVIGATOR_REPLACE_LAST

public static final java.lang.String LIGHT_NAVIGATOR_REPLACE_LAST
See Also:
Constant Field Values

LIGHT_NAVIGATOR_BACK_TO_MARK

public static final java.lang.String LIGHT_NAVIGATOR_BACK_TO_MARK
See Also:
Constant Field Values

LIGHT_NAVIGATOR_MARK

public static final java.lang.String LIGHT_NAVIGATOR_MARK
See Also:
Constant Field Values
Constructor Detail

LightNavigationManager

public LightNavigationManager()
Method Detail

controlLightNavigation

public static SourceBean controlLightNavigation(PortletRequest portletRequest,
                                                SourceBean serviceRequest)
                                         throws java.lang.Exception
This method is responsible for the requests stack (the LightNavigator) modification. It controls if there is one of the following attributes in the service request: LIGHT_NAVIGATOR_RESET (requests stack is resetted); LIGHT_NAVIGATOR_DISABLED (the navigator is disabled: the stack is not modified and the original request is returned); LIGHT_NAVIGATOR_BACK_TO (the request in the stack at position represented by this attribute is returned); LIGHT_NAVIGATOR_BACK_TO_MARK (the request in the stack marked by the string represented by this attribute is returned); LIGHT_NAVIGATOR_MARK (the request at input is marked with the string represented by this attribute and put in the stack). LIGHT_NAVIGATOR_REPLACE_LAST (the more recent request is replaced by the request at input). If any errors occur, the original request is returned.

Parameters:
portletRequest - The PortletRequest object
serviceRequest - The original service request SourceBean
Returns:
the service request SourceBean
Throws:
java.lang.Exception