it.eng.spago.navigation
Class LightNavigationManager

java.lang.Object
  extended by it.eng.spago.navigation.LightNavigationManager

public class LightNavigationManager
extends java.lang.Object

The Class LightNavigationManager.


Field Summary
static java.lang.String LIGHT_NAVIGATOR_BACK_TO
          The Constant LIGHT_NAVIGATOR_BACK_TO.
static java.lang.String LIGHT_NAVIGATOR_BACK_TO_MARK
          The Constant LIGHT_NAVIGATOR_BACK_TO_MARK.
static java.lang.String LIGHT_NAVIGATOR_DISABLED
          The Constant LIGHT_NAVIGATOR_DISABLED.
static java.lang.String LIGHT_NAVIGATOR_MARK
          The Constant LIGHT_NAVIGATOR_MARK.
static java.lang.String LIGHT_NAVIGATOR_REPLACE_LAST
          The Constant LIGHT_NAVIGATOR_REPLACE_LAST.
static java.lang.String LIGHT_NAVIGATOR_RESET
          The Constant LIGHT_NAVIGATOR_RESET.
 
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)
          Control light navigation.
 
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
The Constant LIGHT_NAVIGATOR_RESET.

See Also:
Constant Field Values

LIGHT_NAVIGATOR_DISABLED

public static final java.lang.String LIGHT_NAVIGATOR_DISABLED
The Constant LIGHT_NAVIGATOR_DISABLED.

See Also:
Constant Field Values

LIGHT_NAVIGATOR_BACK_TO

public static final java.lang.String LIGHT_NAVIGATOR_BACK_TO
The Constant LIGHT_NAVIGATOR_BACK_TO.

See Also:
Constant Field Values

LIGHT_NAVIGATOR_REPLACE_LAST

public static final java.lang.String LIGHT_NAVIGATOR_REPLACE_LAST
The Constant 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
The Constant LIGHT_NAVIGATOR_BACK_TO_MARK.

See Also:
Constant Field Values

LIGHT_NAVIGATOR_MARK

public static final java.lang.String LIGHT_NAVIGATOR_MARK
The Constant 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
Control light navigation.

Parameters:
request - the request
serviceRequest - the service request
Returns:
the source bean
Throws:
java.lang.Exception - the 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_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:
serviceRequest - The original service request SourceBean
request - the request
Returns:
the service request SourceBean
Throws:
java.lang.Exception - the exception