com.stratelia.silverpeas.peasCore.servlets
Class NavigationContext.NavigationStep

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.servlets.NavigationContext.NavigationStep
Enclosing class:
NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>

public class NavigationContext.NavigationStep
extends Object

Class that represents the data of a navigation step. This class is used for automatically set informatons to a browse bar element.


Method Summary
 String getContextIdentifier()
          Gets the identifier of a context associated to the navigation step.
 String getIdentifier()
          Gets the identifier of the navigation step.
 String getLabel()
          Gets a functional label of the navigation step.
 NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> getNavigationContext()
          Gets the navigation context the navigation step is associated to.
 NavigationContext.NavigationStep getNext()
          Gets the next navigation step.
 NavigationContext.NavigationStep getPrevious()
          Gets the previous navigation step.
 URI getUri()
          Gets the URI associated to the navigation step.
 boolean isUriMustBeUsedByBrowseBar()
          Indicates if the URI of the navigation step must be used by the browsbar mechanism.
 NavigationContext.NavigationStep setUriMustBeUsedByBrowseBar(boolean uriMustBeUsedByBrowseBar)
          Sets if the URI of the navigation step must be used by the browsbar mechanism.
 NavigationContext.NavigationStep withContextIdentifier(String contextIdentifier)
          Sets the identifier of a context associated to the navigation step.
 NavigationContext.NavigationStep withFullUri(String fullUri)
          Sets the URI associated to the navigation step.
 NavigationContext.NavigationStep withLabel(String label)
          Sets a functional label of the navigation step.
 NavigationContext.NavigationStep withSuffixUri(String suffixUri)
          Sets the URI associated to the navigation step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNavigationContext

public NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> getNavigationContext()
Gets the navigation context the navigation step is associated to.

Returns:

getIdentifier

public String getIdentifier()
Gets the identifier of the navigation step.

Returns:
the above described identifier.

getContextIdentifier

public String getContextIdentifier()
Gets the identifier of a context associated to the navigation step.

Returns:
the above described identifier.

withContextIdentifier

public NavigationContext.NavigationStep withContextIdentifier(String contextIdentifier)
Sets the identifier of a context associated to the navigation step.

Parameters:
contextIdentifier - a context identifier.
Returns:
itself.

getLabel

public String getLabel()
Gets a functional label of the navigation step. It is especially used by BrowseBarTag tag.

Returns:
the above described label.

withLabel

public NavigationContext.NavigationStep withLabel(String label)
Sets a functional label of the navigation step. It is especially used by BrowseBarTag tag.

Parameters:
label - a label.
Returns:
itself.

getUri

public URI getUri()
Gets the URI associated to the navigation step. It is normally the URI performed when the navigation step has been created or reset. But in some cases, it has been modified manually from Web Controller.

Returns:
the above described URI.

withFullUri

public NavigationContext.NavigationStep withFullUri(String fullUri)
Sets the URI associated to the navigation step.

Parameters:
fullUri - the URI to set.
Returns:
itself.

withSuffixUri

public NavigationContext.NavigationStep withSuffixUri(String suffixUri)
Sets the URI associated to the navigation step.

Parameters:
suffixUri - the suffic URI that will be added to the prefix composed with WebComponentRequestContext.getComponentUriBase() information.
Returns:
itself.

getPrevious

public NavigationContext.NavigationStep getPrevious()
Gets the previous navigation step.

Returns:
the previous navigation step if any, null otherwise.

getNext

public NavigationContext.NavigationStep getNext()
Gets the next navigation step.

Returns:
the next navigation step if any, null otherwise.

isUriMustBeUsedByBrowseBar

public boolean isUriMustBeUsedByBrowseBar()
Indicates if the URI of the navigation step must be used by the browsbar mechanism. True by default.

Returns:
true if must be used, false otherwise.

setUriMustBeUsedByBrowseBar

public NavigationContext.NavigationStep setUriMustBeUsedByBrowseBar(boolean uriMustBeUsedByBrowseBar)
Sets if the URI of the navigation step must be used by the browsbar mechanism. True by default.

Parameters:
uriMustBeUsedByBrowseBar - true if must be used, false otherwise.
Returns:
itself.


Copyright © 2016 Silverpeas. All Rights Reserved.