java.lang.Object
com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb
All Implemented Interfaces:
DebugDumpable, Serializable

public class Breadcrumb extends Object implements Serializable, DebugDumpable
Breadcrumb object that is stored in the session. It represents the way "back" to the main menu.

We need to be extra careful about the memory references here. This object goes in the session. Therefore we cannot allow models to be stored in the session. The models may have references to (possibly big) pages and other rich objects. The references are there mostly to load the models. But we do not want that. We want to store only the values. Therefore the model values are copied to simple strings on model detach().

Author:
Viliam Repan (lazyman), semancik
See Also:
  • Constructor Details

    • Breadcrumb

      public Breadcrumb()
    • Breadcrumb

      public Breadcrumb(org.apache.wicket.model.IModel<String> labelModel)
    • Breadcrumb

      public Breadcrumb(org.apache.wicket.model.IModel<String> label, Class<? extends org.apache.wicket.markup.html.WebPage> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters parameters)
    • Breadcrumb

      public Breadcrumb(org.apache.wicket.model.IModel<String> labelModel, org.apache.wicket.model.IModel<String> iconModel, Class<? extends org.apache.wicket.markup.html.WebPage> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters parameters)
  • Method Details

    • getPageClass

      public Class<? extends org.apache.wicket.markup.html.WebPage> getPageClass()
    • getParameters

      public org.apache.wicket.request.mapper.parameter.PageParameters getParameters()
    • setParameters

      public void setParameters(org.apache.wicket.request.mapper.parameter.PageParameters parameters)
    • setPageClass

      public void setPageClass(Class<? extends org.apache.wicket.markup.html.WebPage> pageClass)
    • getLabel

      public org.apache.wicket.model.IModel<String> getLabel()
    • setLabel

      public void setLabel(org.apache.wicket.model.IModel<String> label)
    • getIcon

      public org.apache.wicket.model.IModel<String> getIcon()
    • setIcon

      public void setIcon(org.apache.wicket.model.IModel<String> icon)
    • isUseLink

      public boolean isUseLink()
    • setUseLink

      public void setUseLink(boolean useLink)
    • isVisible

      public boolean isVisible()
    • setVisible

      public void setVisible(boolean visible)
    • redirect

      public org.apache.wicket.markup.html.WebPage redirect()
    • getRestartResponseException

      public org.apache.wicket.RestartResponseException getRestartResponseException()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • debugDump

      public String debugDump()
      Description copied from interface: DebugDumpable
      Show the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.
      Specified by:
      debugDump in interface DebugDumpable
      Returns:
      content of the object intended for diagnostics by system administrator.
    • debugDump

      public String debugDump(int indent)
      Specified by:
      debugDump in interface DebugDumpable