no.sesat.search.view.navigation
Class NavigationHelper
java.lang.Object
no.sesat.search.view.navigation.NavigationHelper
public final class NavigationHelper
- extends Object
All public methods require take a datamodel argument. This datamodel must in VIEW_CONSTRUCTION state.
It essentially means that this helper class can only be used from jsp/velocity code.
- Version:
- $Id: NavigationHelper.java 7225 2009-04-09 00:32:20Z ssmiweve $
|
Constructor Summary |
NavigationHelper()
Velocity templates need an instance to put into the context just to call the static methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NavigationHelper
public NavigationHelper()
- Velocity templates need an instance to put into the context just to call the static methods.
removeQuery
public static String removeQuery(String url)
getFirstNotSelected
public static NavigationConfig.Nav getFirstNotSelected(DataModel dm,
NavigationConfig.Nav nav)
- Drill down the navigation hierarchy and find the first Nav that hasn't yet been selected.
Any Nav that has autoNavigation and has only one child will be automatically selected,
(as along as the child has a corresponding NavigationItem).
- Parameters:
dm - the datamodelnav - the current nav
- Returns:
- the first non-selected nav inside the current nav given
getSingleNavigationItem
public static NavigationItem getSingleNavigationItem(DataModel dm,
String navId,
String value)
getResetUrl
public static String getResetUrl(DataModel dm,
String navId)
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.