it.eng.spago.navigation
Class LightNavigationManager
java.lang.Object
it.eng.spago.navigation.LightNavigationManager
- public class LightNavigationManager
- extends java.lang.Object
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 |
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
LightNavigationManager
public LightNavigationManager()
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
objectserviceRequest
- The original service request SourceBean
- Returns:
- the service request
SourceBean
- Throws:
java.lang.Exception