org.zeroexchange.web.navigation.breadcrumb
Class DefaultBreadcrumbsStore

java.lang.Object
  extended by org.zeroexchange.web.navigation.breadcrumb.DefaultBreadcrumbsStore
All Implemented Interfaces:
Serializable, BreadcrumbsStore

public class DefaultBreadcrumbsStore
extends Object
implements BreadcrumbsStore, Serializable

The breadcrumbs store default implementation. NOTE: should be used in the session scope.

Author:
black
See Also:
Serialized Form

Constructor Summary
DefaultBreadcrumbsStore()
           
 
Method Summary
 List<Breadcrumb> getBreadcrumbs()
          Returns unmodifable list of the breadcrumbs.
 List<Breadcrumb> getPath()
          Returns the current path.
 void putBreadcrumb(Breadcrumb breadcrumb)
          Appends breadcrumb to the path.
 void removeLast()
          Removes last breadcrumb.
 void setDuplicatesDeep(int duplicatesDeep)
          Injector for the duplicatesDeep parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBreadcrumbsStore

public DefaultBreadcrumbsStore()
Method Detail

setDuplicatesDeep

public void setDuplicatesDeep(int duplicatesDeep)
Injector for the duplicatesDeep parameter.


putBreadcrumb

public void putBreadcrumb(Breadcrumb breadcrumb)
Appends breadcrumb to the path.

Specified by:
putBreadcrumb in interface BreadcrumbsStore

getPath

public List<Breadcrumb> getPath()
Returns the current path.

Specified by:
getPath in interface BreadcrumbsStore

getBreadcrumbs

public List<Breadcrumb> getBreadcrumbs()
Returns unmodifable list of the breadcrumbs.

Specified by:
getBreadcrumbs in interface BreadcrumbsStore

removeLast

public void removeLast()
Removes last breadcrumb.

Specified by:
removeLast in interface BreadcrumbsStore


Copyright © 2013. All Rights Reserved.