it.eng.spago.navigation
Class LightNavigationManager

java.lang.Object
  extended by it.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_DESTROY
           
static java.lang.String LIGHT_NAVIGATOR_DISABLED
           
static java.lang.String LIGHT_NAVIGATOR_ID
           
static java.lang.String LIGHT_NAVIGATOR_MARK
           
static java.lang.String LIGHT_NAVIGATOR_REPLACE_LAST
           
static java.lang.String LIGHT_NAVIGATOR_RESET
           
static java.lang.String LIGHT_NAVIGATOR_RESET_INSERT
           
 
Constructor Summary
LightNavigationManager()
           
 
Method Summary
static it.eng.spago.base.SourceBean controlLightNavigation(java.lang.Object request, it.eng.spago.base.SourceBean serviceRequest)
          This method is responsible for the requests stack (the LightNavigator) modification.
static it.eng.spago.base.SourceBean controlLightNavigation(javax.portlet.PortletRequest request, it.eng.spago.base.SourceBean serviceRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIGHT_NAVIGATOR_ID

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

LIGHT_NAVIGATOR_DESTROY

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

LIGHT_NAVIGATOR_RESET

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

LIGHT_NAVIGATOR_RESET_INSERT

public static final java.lang.String LIGHT_NAVIGATOR_RESET_INSERT
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 it.eng.spago.base.SourceBean controlLightNavigation(javax.portlet.PortletRequest request,
                                                                  it.eng.spago.base.SourceBean serviceRequest)
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

controlLightNavigation

public static it.eng.spago.base.SourceBean controlLightNavigation(java.lang.Object request,
                                                                  it.eng.spago.base.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_DESTROY (requests stack is destroyed); LIGHT_NAVIGATOR_RESET (requests stack is resetted and current request is not put into stack); LIGHT_NAVIGATOR_RESET_INSERT (requests stack is resetted and current request is put into stack); 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